由于界面改变,维护自动化代码原Setting模块

This commit is contained in:
byb11
2021-07-09 19:07:13 +08:00
parent 802a794234
commit 423ddc256c
15 changed files with 355 additions and 530 deletions

View File

@@ -26,58 +26,52 @@ ui-login
Settings-Search
[Arguments] ${value} ${search}
sleep ${sleep}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div/input #点击搜索框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div/div[1]/input #点击搜索框
sleep ${sleep_min}
#判断是使用name搜索还是id搜索
run keyword if "${search}"=="name" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="id" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="Issuer" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="CommonName" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[5]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="CertificateFingerprint" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[6]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="Source Website" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="JA3Hash" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="GeoName" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="CountryandRegion" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="City" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="ip" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="port" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[5]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
sleep ${sleep}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[1]/span/div/i #点击搜索按钮
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/i #点击搜索按钮
sleep ${sleep}
CreateSNATIPPools
[Arguments] ${name} ${type} ${ip} ${j}=1
Sleep ${sleep_min}
click id=Settings #点击一级目录Settings
Sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[2] #点击wan net
sleep ${sleep_min}
click id=ip #点击SNAT-IP-Pools
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Setting_Wannat/IP_Pool
click id=app_create #点击新建按钮
sleep ${sleep_min}
input xpath=//*[@id="wannat_vpn_color"]/form/div[1]/div/div/div[1]/input ${name} #输入name
@@ -186,20 +180,20 @@ SNATIPRangeCreate
SNATIPSearch
[Arguments] ${value} ${search}
sleep ${sleep}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input #点击搜索框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/div[2]/div/div/div[2]/div/div/div[1]/input #点击搜索框
sleep ${sleep_min}
#判断是使用name搜索还是id搜索
run keyword if "${search}"=="Name" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="ID" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="IP" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4] #xpath=/html/body/div[7]/div[1]/div[1]/ul/li[4]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/i #点击搜索按钮
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/div[2]/div/i #点击搜索按钮
sleep ${sleep_min}
click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]
sleep ${sleep_min}
@@ -229,13 +223,7 @@ SearchHistoryActiveIP
CreateVPNAccounts
[Arguments] ${name} ${passwd} ${search}
Sleep ${sleep_min}
click id=Settings #点击一级目录Settings
Sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[2] #点击wan net
sleep ${sleep_min}
click id=account #点击SNAT-IP-Pools
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Setting_Wannat/VPN_Account
click id=app_create #点击新建按钮
sleep ${sleep_min}
input xpath=//*[@id="wannat_vpn_username"]/div/div/div[1]/input ${name} #输入vpnname
@@ -267,13 +255,13 @@ EditVPNAccounts
VPNAccountsSearch
[Arguments] ${value} ${search}
sleep ${sleep}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input #点击搜索框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/div[2]/div/div/div[2]/div/div/div[1]/input #点击搜索框
sleep ${sleep_min}
click xpath=/html/body/div/div[1]/div[1]/ul/li[2] #点击name
sleep ${sleep_min}
input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value} #输入值
input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value} #输入值
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/i #点击搜索按钮
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/div[2]/div/i #点击搜索按钮
sleep ${sleep_min}
click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]
sleep ${sleep_min}
@@ -310,18 +298,12 @@ FQDN-or-Category-Search
CreateHijackFiles
[Arguments] ${name} ${file} ${type} ${search} ${shift}=1 ${input1}=1
Sleep ${sleep_min}
click id=Settings #点击一级目录Settings
Sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
Sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[3] #点击Hijack Files按钮
Sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_HijackFiles
click id=hijackAdd #点击Create
Sleep ${sleep}
input id=hijack_profileName1 ${name} #输入name
Sleep ${sleep}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div/div/div/div/input ${file} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[2]/div/div/div[1]/input ${file} #上传文件
Sleep ${sleep}
${dow_name} Set Variable ${shift}
${input} Set Variable ${input1}
@@ -341,13 +323,7 @@ CreateHijackFiles
CreateInsertScripts
[Arguments] ${name} ${file} ${type} ${search} ${jstype}=Before Page Load
Sleep ${sleep_min}
click id=Settings #点击一级目录Settings
Sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
Sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[2] #点击Insert Scripts按钮
Sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_Insert
click id=insertAdd #点击Create
Sleep ${sleep}
input id=insert_profileName1 ${name} #输入name
@@ -370,19 +346,13 @@ CreateInsertScripts
Settings-Search ${name} ${search} #搜索框的关键字
log psssssssssssssssssssssssssss
Sleep ${sleep_min}
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
#//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name} #断言
TrafficMirrorProfilesValidationError
[Arguments] ${name} ${type} ${shuru} ${PromptInformation}
Sleep ${sleep_min}
click id=Settings #点击一级目录Settings
Sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
Sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[4] #点击Traffic Mirror Profiles按钮
Sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_TrafficMirrorProfiles
click id=trafficMirrorAdd #点击Create
Sleep ${sleep}
input id=trafficmirror_profileName1 ${name} #输入name
@@ -400,13 +370,7 @@ TrafficMirrorProfilesValidationError
CreateTrafficMirrorProfiles
[Arguments] ${name} ${type} ${shuru} ${search}
Sleep ${sleep_min}
click id=Settings #点击一级目录Settings
Sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
Sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[4] #点击Traffic Mirror Profiles按钮
Sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_TrafficMirrorProfiles
click id=trafficMirrorAdd #点击Create
Sleep ${sleep}
input id=trafficmirror_profileName1 ${name} #输入name
@@ -417,11 +381,11 @@ CreateTrafficMirrorProfiles
Sleep ${sleep}
input id=trafficmirror_addrArray0 ${shuru}
sleep ${sleep}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击OK
click id=trafficMirrorProfile_ok #点击OK
Wait Until Element Is Enabled id=trafficMirrorAdd ${sleep_Wait}
Settings-Search ${name} ${search} #搜索框的关键字
Sleep ${sleep}
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name} #断言
@@ -434,13 +398,10 @@ EditInsertScripts
... ${name1}:为修改页面的name输入框里输入的内容
... ${file}:为修改页面要上传文件的路径
... ${type}:选择文件类型的元素
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[2] #点击Insert files按钮
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_Insert
Settings-Search ${id-name} ${search} #搜索框的关键字
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
sleep ${sleep_min}
click id=insertEdit #点击Edit
sleep ${sleep_min}
@@ -469,7 +430,7 @@ EditInsertScripts
... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min}
... AND Settings-Search ${name1} ${search} #搜索框的关键字
sleep ${sleep_min}
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name1} #断言
@@ -481,11 +442,7 @@ CreateResponsePages
... ${file}:上传文件所在本地的路径
#打开浏览器
#ui-login lyf 111111
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
sleep ${sleep}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_ResponsePages
click id=responseAdd #Response Pages点击Create
sleep ${sleep}
input id=responsepages_profileName1 ${name} #输入name
@@ -507,9 +464,7 @@ Edit-Response-Pages
... ${id-name}:为查询输入框输入内容
... ${name1}:为修改页面的name输入框里输入的内容
... ${file}:为修改页面要上传文件的路径
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
sleep ${sleep}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_ResponsePages
Settings-Search ${id-name} ${search} #搜索框的关键字
sleep ${sleep_min}
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
@@ -542,11 +497,7 @@ EditHijackFiles
... ${name1}:为修改页面的name输入框里输入的内容
... ${file}:为修改页面要上传文件的路径
... ${type}:为文件类型的元素
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[3] #点击Hijack files按钮
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_HijackFiles
Settings-Search ${id-name} ${search} #搜索框的关键字
sleep ${sleep_min}
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
@@ -557,7 +508,7 @@ EditHijackFiles
sleep ${sleep_min}
input id=hijack_profileName1 ${name1} #输入框输入
sleep ${sleep_min}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[5]/div/div/div[1]/input ${file} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[5]/div/div/div[1]/input ${file} #上传文件
sleep ${sleep_min}
${dow_name} Set Variable ${shift}
${input} Set Variable ${input1}
@@ -589,11 +540,7 @@ EditTrafficMirrorProfiles
... ${name1}:为修改页面的name输入框里输入的内容
... ${type}:为选择点击vlan或mac的元素
... ${shuju}:为输入框输入内容
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[4] #点击Traffic Mirror Profiles按钮
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_TrafficMirrorProfiles
Settings-Search ${id-name} ${search} #搜索框的关键字
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1] #点击搜素到的列表
@@ -612,14 +559,14 @@ EditTrafficMirrorProfiles
sleep ${sleep_min}
input id=trafficmirror_addrArray0 ${shuju} #输入内容
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击ok
click id=trafficMirrorProfile_ok #点击ok
Wait Until Element Is Enabled id=trafficMirrorAdd ${sleep_Wait}
run keyword if "${search}"=="id" run keywords sleep ${sleep_min}
... AND Settings-Search ${id-name} ${search} #搜索框的关键字
... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min}
... AND Settings-Search ${name1} ${search} #搜索框的关键字
sleep ${sleep_min}
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name1} #断言
importTrustedCertificateAuthorities
@@ -630,11 +577,7 @@ importTrustedCertificateAuthorities
... ${file}:上传文件所在本地的路径
#打开浏览器
#ui-login lyf 111111
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Trusted Certificate Authorities
sleep ${sleep}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_Authorities
click id=app_create #点击Import
sleep ${sleep}
input id=authoritiesAdd_name1 ${name} #输入name
@@ -689,28 +632,26 @@ CreateDecryptionKeyrings
#打开浏览器
#ui-login lyf 111111
sleep ${sleep}
click id=Settings #点击一级目录Settings
click id=VSidebar1_Home1_App0_anonymousComponent-1_Profiles #点击一级目录Settings
sleep ${sleep}
click xpath=//*[@id="Settings"]/ul/li[3]
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[2] #点击Decryption Keyrings
click id=VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_Keyrings #点击Decryption Keyrings
sleep ${sleep_min}
click id=app_create #点击Create
sleep ${sleep}
input id=keyringsadd_name1 ${name} #输入name
sleep ${sleep}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件
sleep ${sleep}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件
${select} Set Variable ${ExpiryHours1or2}
Run Keyword If '${select}'=='1' click id=keyringsadd_customized
Run Keyword If '${select}'=='1' input id=reissueExpiryDate 10
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框
sleep ${sleep_min}
click ${type} #选择证书类型
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框
sleep ${sleep_min}
click ${type1} #选择加密解密类型
sleep ${sleep_min}
@@ -741,33 +682,30 @@ DecryptionKeyringsErrorVerification
... ${type1}:上传证书加密解密算法的元素
... ${Positioning}:获取文本的xpath定位
... ${Assertion}:断言信息
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Trusted Certificate Authorities
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[2] #点击Decryption Keyrings
click id=VSidebar1_Home1_App0_anonymousComponent-1_Profiles #点击一级目录Settings
sleep ${sleep}
click id=VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_Keyrings #点击Decryption Keyrings
sleep ${sleep_min}
click id=app_create #点击Create
sleep ${sleep}
input id=keyringsadd_name1 ${name} #输入name
sleep ${sleep}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件
sleep ${sleep}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框
sleep ${sleep_min}
click ${type} #选择证书类型
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框
sleep ${sleep_min}
click ${type1} #选择加密解密类型
sleep ${sleep_min}
click id=keyringsadd_sub #点击OK缇交
sleep ${sleep_min}
${text1} Get Text xpath=${Positioning} #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${Assertion} #断言
Page Should Contain ${Assertion} #断言
DecryptionKeyringsSearch
[Arguments] ${id} ${name}
@@ -792,13 +730,7 @@ CreateSSLDecryptionExclusion
... ${name}:新建页面name输入框里的内容
... ${value}:输入内容
... ${naem1}:搜索框填入内容
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Trusted Certificate Authorities
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[3] #点击SSL Decryption Exclusion按钮
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_SSL
click id=ssl_create #点击Create
sleep ${sleep}
input id=sslAdd_name1 ${name} #输入name
@@ -820,13 +752,7 @@ CreateSSLDecryptionExclusionErrorVerification
... ${value}:输入内容
... ${AssertionPath}提示信息Xpath定位
... ${AssertionText}:错误提示信息文本
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Trusted Certificate Authorities
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[3] #点击SSL Decryption Exclusion按钮
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_SSL
click id=ssl_create #点击Create
sleep ${sleep}
input id=sslAdd_name1 ${name} #输入name
@@ -835,8 +761,7 @@ CreateSSLDecryptionExclusionErrorVerification
sleep ${sleep}
click id=ssl_ok #点击OK缇交
sleep ${sleep}
${text} get text xpath=${AssertionPath}
Should Be Equal As Strings ${text} ${AssertionText}
Page Should Contain ${AssertionText}
CachedIntermediateCertificatesSearch
[Arguments] ${Condition} ${AssertionPath} ${search}
@@ -856,7 +781,7 @@ EditTrustedCertificateAuthorities
... ${name}:为修改页面的name输入框里输入的内容
... ${file}:为修改页面要上传文件的路径
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Trusted Certificate Authorities
click id=VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_Authorities #点击二级目录Trusted Certificate Authorities
sleep ${sleep}
Settings-Search ${id-name} ${search}
sleep ${sleep_min}
@@ -886,10 +811,10 @@ EditDecryptionKeyrings
... ${1or2}:填入1 或者其他
... ${type}:上传证书类型的元素
... ${type1}:上传证书加密解密算法的元素
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Trusted Certificate Authorities
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[2] #点击Decryption Keyrings
click id=VSidebar1_Home1_App0_anonymousComponent-1_Profiles #点击一级目录Settings
sleep ${sleep}
click id=VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_Keyrings #点击Decryption Keyrings
sleep ${sleep_min}
Settings-Search ${id-name} ${search}
sleep ${sleep_min}
@@ -901,18 +826,18 @@ EditDecryptionKeyrings
sleep ${sleep_min}
input id=keyringsadd_name1 ${name} #输入name
sleep ${sleep_min}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[5]/div/div/div/input ${file} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[5]/div/div/div/input ${file} #上传文件
sleep ${sleep}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div[2]/div/div/input ${file1} #上传文件
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[6]/div/div[2]/div/div/input ${file1} #上传文件
${select} Set Variable ${1or2}
Run Keyword If '${select}'=='1' click id=keyringsadd_customized
Run Keyword If '${select}'=='1' input id=reissueExpiryDate 10
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[9]/div/div/div[1]/span/span/i #点击下拉框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[9]/div/div/div[1]/span/span/i #点击下拉框
sleep ${sleep_min}
click ${type} #选择证书类型
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[10]/div/div/div[1]/span/span/i #点击下拉框
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[2]/form/div[10]/div/div/div[1]/span/span/i #点击下拉框
sleep ${sleep}
click ${type1} #选择加密解密类型
sleep ${sleep_min}
@@ -933,11 +858,7 @@ EditSSLDecryptionExclusion
... ${id-name}:输入搜索的内容
... ${name}:输入name
... ${calue1}:输入内容
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Trusted Certificate Authorities
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[3] #点击SSL Decryption Exclusion按钮
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_SSL
Settings-Search ${id-name} ${search}
sleep ${sleep_min}
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr #点击搜索列表
@@ -982,13 +903,7 @@ CreateSSLFingerprint
... ${Pinning}是否Pinning(Yes/No)
... ${search}:查询条件
... ${Description}:描述
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Certificate Managements
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[5] #点击SSL Fingerprint
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/SSL_Fingerprint
click id=Fingerprint_create #点击Create
sleep ${sleep_min}
input id=authoritiesAdd_name1 ${Ja3}
@@ -1016,11 +931,7 @@ EditSSLFingerprint
... ${Pinning}是否Pinning(Yes/No)
... ${search}:查询条件 id 或JA3Hash
... ${Description}:描述
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Certificate Managements
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[5] #点击SSL Fingerprint
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/SSL_Fingerprint
Settings-Search ${ID-Ja3} ${search}
sleep ${sleep}
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr
@@ -1055,11 +966,7 @@ SSLFingerprintImportUserAgent
... ${USQuantity} :导入文件对应指纹信息US得数量
... ${AssertionText}断言得US
... ${USXpath}被断言US得xpath定位
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Certificate Managements
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[5] #点击SSL Fingerprint
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/SSL_Fingerprint
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/span[2]/button
sleep ${sleep}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[4]/div/div/div[2]/div/div[1]/input ${file}
@@ -1083,11 +990,7 @@ SSLFingerprintImportJA3
[Arguments] ${file}
[Documentation]
... ${file}:上传文件路径
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Certificate Managements
sleep ${sleep}
click xpath=//*[@id="proxyTabs"]/div/ul/li[5] #点击SSL Fingerprint
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/SSL_Fingerprint
click id=objectImport
sleep ${sleep}
Choose File xpath=/html/body/div/div/div[1]/div/div/div[1]/div/form/div[1]/div/div/div[1]/input ${file}
@@ -1246,12 +1149,7 @@ Min_max_version
CreateDecryptionProfile
[Arguments] ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null ${max1}=null
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[5] #点击Decryption Profile
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_DecryptionProfile
sleep ${sleep_min}
click id=insertAdd #点击Create
sleep ${sleep_min}
@@ -1310,11 +1208,11 @@ Min_max_version
... ELSE log 错误
sleep ${sleep}
click id=decryption-ok
Wait Until Element Is Enabled xpath=//*[@id="profilesTabs"]/li[5] ${sleep_Wait}
Wait Until Element Is Enabled id=VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_DecryptionProfile ${sleep_Wait}
sleep ${sleep_min}
Settings-Search ${name} ${search} #搜索框的关键字
sleep ${sleep}
${name1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
${name1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Should Be Equal As Strings ${name1} ${name}
@@ -1335,17 +1233,12 @@ ButtonSwitch
EditDecryptionProfile
[Arguments] ${id-name} ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null
... ${max1}=null
click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
sleep ${sleep}
click xpath=//*[@id="profilesTabs"]/li[5] #点击Decryption Profile
sleep ${sleep_min}
OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_DecryptionProfile
Settings-Search ${id-name} ${search} #搜索框的关键字
Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span ${sleep_Wait}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span #点击搜索列表
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div/div[2]/div/div[3]/table/tbody/tr #点击搜索列表
sleep ${sleep_min}
click id=insertEdit #点击Edit
sleep ${sleep}
Clear Element Text id=decrytion_profileName1 #清空name输入框
sleep ${sleep_min}
input id=decrytion_profileName1 ${name} #输入name
sleep ${sleep_min}
@@ -1401,16 +1294,16 @@ EditDecryptionProfile
... AND click id=pro_max0
... ELSE log 错误
click id=decryption-ok
Wait Until Element Is Enabled xpath=//*[@id="profilesTabs"]/li[5] ${sleep_Wait}
Wait Until Element Is Enabled id=VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_DecryptionProfile ${sleep_Wait}
Settings-Search ${id-name} ${search} #搜索框的关键字
${name1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
${name1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Should Be Equal As Strings ${name1} ${name}
DecryptionProfileButtonVerification
[Arguments] ${dict1} ${id-name} ${search} ${xpath1}=//*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), "
... ${xpath2}=")]/following-sibling::div/div
... ${open}=el-switch is-checked
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
sleep ${sleep_min}
click id=insertEdit
sleep ${sleep_min}
@@ -1422,7 +1315,7 @@ DecryptionProfileButtonVerification
END
sleep ${sleep_min}
click id=decryption-ok
Wait Until Element Is Enabled xpath=//*[@id="profilesTabs"]/li[5] ${sleep_Wait}
Wait Until Element Is Enabled id=VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_DecryptionProfile ${sleep_Wait}
Settings-Search ${id-name} ${search}
Delete
@@ -1732,13 +1625,7 @@ Req_Res_Body
CreateIpLibraries
[Arguments] ${type1} ${type} ${Continent/Country} ${GeoNameID} ${City} ${ip} ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null
sleep ${sleep}
click id=Settings #点击一级目录Settings
sleep ${sleep}
click xpath=//*[@id="Settings"]/ul/li[5]
sleep ${sleep}
click xpath=//*[@id="Advanced/ipLibrary"] #点击二级目录IP_Libraries
sleep ${sleep}
OpenIpLibraries
click id=tagAdd #点击Create按钮
sleep ${sleep}
run keyword if "${type}"=="Country" Run Keywords click id=security_action_country
@@ -1797,22 +1684,16 @@ EditIpLibraries
run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude}
... AND sleep ${sleep_min}
click id=IP_library_add
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div ${sleep_Wait}
Wait Until Element Is Enabled ID=tagAdd ${sleep_Wait}
#验证修改是否成功
Switch_IP_Libraries ${type} ${GeoNameID} ${GeoNameID}
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div
sleep ${sleep}
Should Be Equal As Strings ${GeoNameText} ${GeoNameID} #断言
CreateIpLibrariesErrorVerification
[Arguments] ${type1} ${type} ${Continent/Country} ${GeoNameID} ${City} ${ip} ${AssertPath} ${AssertText} ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=//*[@id="Settings"]/ul/li[5]
sleep ${sleep_min}
click xpath=//*[@id="Advanced/ipLibrary"] #点击二级目录IP_Libraries
sleep ${sleep}
OpenIpLibraries
click id=tagAdd #点击Create按钮
sleep ${sleep}
run keyword if "${type}"=="Country" Run Keywords click id=security_action_country
@@ -2022,13 +1903,13 @@ CreatePacketCapture
... ${ServerIP}:服务器 IP 默认为空
... ${ServerPort}:服务器端口 默认为空
sleep ${sleep_min}
OpenPages //*[@id="Settings"]/ul/li[4] Proxy_Profiles_Profile_Insert
OpenPacketCapture
click id=packet_create
sleep ${sleep}
input id=PacketCaptureadd_name ${name}
sleep ${sleep_min}
run keyword if "${AddressType}"=="IPV6" run keywords sleep ${sleep_min}
... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[2]/div/div/div/span/span/i
... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[1]/div/div[2]/form/div[2]/div/div/div[1]/span/span/i
... AND sleep ${sleep_min}
... AND click id=select_addrtype1
... AND sleep ${sleep_min}
@@ -2046,7 +1927,7 @@ CreatePacketCapture
... AND input id=PacketCaptureadd_serPort ${ServerPort}
... AND sleep ${sleep_min}
... ELSE log ServerPort不输入
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[7]/div/div/div/span/span/i
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[1]/div/div[2]/form/div[7]/div/div/div[1]/span/span/i
sleep ${sleep_min}
run keyword if "${Protocol}"=="TCP" run keywords sleep ${sleep_min}
... AND click id=select_Protocol0
@@ -2061,8 +1942,8 @@ CreatePacketCapture
input id=PacketCaptureadd_pcapStorageDay ${CaptureDuration}
sleep ${sleep_min}
click id=packetCaptureAdd_ok
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] ${sleep_Wait}
Settings-search ${name} name
sleep ${sleep}
SystemSearch ${name} name
sleep ${sleep_min}
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div/div/p/span
Should Be Equal As Strings ${text} ${name}
@@ -2177,7 +2058,6 @@ PacketCaptureEffectiveDevices
sleep ${sleep_min}
PacketCaptureSerch
[Arguments] ${status}
sleep ${sleep_min}
@@ -2237,25 +2117,25 @@ DeleteIPLibraries
Switch_IP_Libraries
[Arguments] ${type} ${value} ${GeoName}
sleep ${sleep}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/span/div/div/div[2]/div/div/div/input
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div/div[1]/input
sleep ${sleep}
run keyword if "${type}"=="Geo Name" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
... AND sleep ${sleep_min}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
run keyword if "${type}"=="Country and Region" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND sleep ${sleep_min}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
run keyword if "${type}"=="City" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[4]
... AND sleep ${sleep_min}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
run keyword if "${type}"=="Operator" Run Keywords click xpath=/html/body/div/div[1]/div[1]/ul/li[5]
... AND sleep ${sleep_min}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... AND sleep ${sleep_min}
... AND click xpath=/html/body/div[2]/div[1]/div[1]/ul/li[1]
sleep ${sleep_min}
sleep ${sleep_min}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/span/div/i
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/i
sleep ${sleep_min}
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]
sleep ${sleep_min}
@@ -2264,21 +2144,15 @@ Switch_IP_Libraries
Should Be Equal As Strings ${GeoNameText} ${GeoName} #断言
OpenPages
[Arguments] ${SecondaryMenu} ${Three-levelMenu} ${Targeting}=null
[Arguments] ${SecondaryMenu}
[Documentation]
... ${SecondaryMenu}:二级菜单
... ${Three-levelMenu}:三级菜单
... ${Targeting} :三级菜单 定位方式 默认不输入为id
click id=Settings
click id=VSidebar1_Home1_App0_anonymousComponent-1_Profiles
sleep ${sleep}
click xpath=${SecondaryMenu}
sleep ${sleep}
run keyword if "${Targeting}"=="null" run keywords sleep ${sleep_min}
... AND click id=${Three-levelMenu}
run keyword if "${Targeting}"=="xpath" run keywords sleep ${sleep_min}
... AND click ${Targeting}=${Three-levelMenu}
click id=${SecondaryMenu}
sleep ${sleep}
TurnPage
[Arguments] ${NextPage} ${PreviousPage} ${JumpInput} ${pages} ${AssertXpath} ${lastpage}=null ${lastxpath}=null
[Documentation]
@@ -2459,10 +2333,7 @@ UploadFilesSize
... ${file}:上传文件本地
... ${Promptinfor}:页面提示信息
run keyword if "${Page}"=="ResponsePages" run keywords sleep ${sleep_min}
... AND click id=Settings #点击一级目录Settings
... AND sleep ${sleep_min}
... AND click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
... AND sleep ${sleep}
... AND OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_ResponsePages #点击一级目录Settings
... AND click id=responseAdd #Response Pages点击Create
... AND sleep ${sleep}
... AND input id=responsepages_profileName1 ${name} #输入name
@@ -2472,12 +2343,7 @@ UploadFilesSize
... AND click id=responseAddOk1
... AND sleep ${sleep}
run keyword if "${Page}"=="InsertScripts" run keywords sleep ${sleep_min}
... AND click id=Settings #点击一级目录Settings
... AND sleep ${sleep_min}
... AND click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
... AND sleep ${sleep}
... AND click xpath=//*[@id="profilesTabs"]/li[2] #点击Insert Scripts按钮
... AND sleep ${sleep_min}
... AND OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_Insert
... AND click id=insertAdd #点击Create
... AND sleep ${sleep}
... AND input id=insert_profileName1 ${name} #输入name
@@ -2491,17 +2357,12 @@ UploadFilesSize
... AND click id=insertAddOk1 #点击OK
... AND sleep ${sleep}
run keyword if "${Page}"=="HijackFiles" run keywords sleep ${sleep_min}
... AND click id=Settings #点击一级目录Settings
... AND sleep ${sleep_min}
... AND click xpath=//*[@id="Settings"]/ul/li[1] #点击二级目录Proxy Profiles
... AND sleep ${sleep}
... AND click xpath=//*[@id="profilesTabs"]/li[3] #点击Hijack Files按钮
... AND sleep ${sleep_min}
... AND OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_Profiles/Profile_HijackFiles #点击一级目录Settings
... AND click id=hijackAdd #点击Create
... AND sleep ${sleep}
... AND input id=hijack_profileName1 ${name} #输入name
... AND sleep ${sleep}
... AND Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div/div[1]/input ${file} #上传文件
... AND Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[2]/div/div/div[1]/input ${file} #上传文件
... AND sleep ${sleep_min}
... AND click id=hijackAddContentType #点击+ 打开侧滑窗口
... AND sleep ${sleep_min}
@@ -2510,11 +2371,7 @@ UploadFilesSize
... AND click id=hijackAddOk1
... AND sleep ${sleep}
run keyword if "${Page}"=="SSLFingerprint" run keywords sleep ${sleep_min}
... AND click id=Settings #点击一级目录Settings
... AND sleep ${sleep_min}
... AND click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录
... AND sleep ${sleep}
... AND click xpath=//*[@id="proxyTabs"]/div/ul/li[5]
... AND OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/SSL_Fingerprint
... AND sleep ${sleep_min}
... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/span[2]/button
... AND sleep ${sleep_min}
@@ -2523,10 +2380,7 @@ UploadFilesSize
... AND click id=Import_ua_Ok
... AND sleep ${sleep}
run keyword if "${Page}" == "TrustedCertificateAuthorities" run keywords sleep ${sleep_min}
... AND click id=Settings
... AND sleep ${sleep_min}
... AND click xpath=//*[@id="Settings"]/ul/li[3] #点击二级目录Trusted Certificate Authorities
... AND sleep ${sleep}
... AND OpenPages VSidebar1_Home1_App0_anonymousComponent-1_Proxy_CertificateManagement/Certificate_Authorities
... AND click id=app_create #点击Import
... AND sleep ${sleep}
... AND input id=authoritiesAdd_name1 ${name} #输入name
@@ -2561,14 +2415,7 @@ DeleteReferencedData
... ${SecondaryMenu}:二级目录
... ${ID} 查询数据的ID
... ${PromptInformation} :提示信息
... ${Three-levelMenu}:三级菜单
sleep ${sleep_min}
click id=Settings #点击一级目录Settings
sleep ${sleep_min}
click xpath=${SecondaryMenu} #点击二级目录Proxy Profiles
sleep ${sleep}
click xpath=${Three-levelMenu}
sleep ${sleep_min}
OpenPages ${SecondaryMenu}
Settings-Search ${ID} id
sleep ${sleep}
run keyword if "${Page}"=="ResponsePage" run keywords sleep ${sleep_min}
@@ -2584,7 +2431,7 @@ DeleteReferencedData
... AND sleep ${sleep_min}
... AND DeletehijackDel
run keyword if "${Page}"=="TrafficMirrorProfile" run keywords sleep ${sleep_min}
... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]
... AND sleep ${sleep_min}
... AND DeletetrafficMirrorDel
run keyword if "${Page}"=="DecryptionProfile" run keywords sleep ${sleep_min}
@@ -2704,7 +2551,18 @@ ResponsrPageCreateAssert
${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息
SettingsAssertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span ${Name}
OpenIpLibraries
click id=VSidebar1_Home1_App0_anonymousComponent-1_System
sleep ${sleep_min}
click id=VSidebar1_Home1_App0_anonymousComponent-1_Advanced/IP_Libraries
sleep ${sleep}
OpenPacketCapture
click id=VSidebar1_Home1_App0_anonymousComponent-1_System
sleep ${sleep_min}
click id=VSidebar1_Home1_App0_anonymousComponent-1_Trouble_shooting/Packet_Capture
sleep ${sleep}
DeleteresinseDel1
sleep ${sleep}
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span
@@ -2713,3 +2571,49 @@ DeleteresinseDel1
sleep ${sleep}
click xpath=/html/body/div/div/div[3]/button[2]
sleep ${sleep}
SystemSearch
[Arguments] ${value} ${search}
sleep ${sleep}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div/div/input #点击搜索框
sleep ${sleep_min}
#判断是使用name搜索还是id搜索
run keyword if "${search}"=="name" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="id" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="Issuer" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="CommonName" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[5]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="CertificateFingerprint" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[6]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="Source Website" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="JA3Hash" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="GeoName" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="CountryandRegion" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[3]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="City" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="ip" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
... ELSE IF "${search}"=="port" run keywords sleep ${sleep_min}
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[5]
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
sleep ${sleep}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[1]/span/div/i #点击搜索按钮
sleep ${sleep}