修改关键字ID,修改将等待时间改为提取的关键字
This commit is contained in:
@@ -89,7 +89,7 @@ CreateSNATIPPools
|
||||
... AND sleep ${sleep_min}
|
||||
... AND SANTIPIF ${j} ${ip} #判断是添加一个ip还是多个ip
|
||||
... AND click id=wan_reach_test #点击可达性测试按钮
|
||||
... AND Wait Until Element Is Visible id=edit_0 ${sleep_Wait} #等待时间,等待元素出现后在进行后续操作
|
||||
... AND Wait Until Element Is Enabled id=edit_0 ${sleep_Wait} #等待时间,等待元素出现后在进行后续操作
|
||||
run keyword if "${type}"=="2" run keywords sleep ${sleep_min}
|
||||
... AND click id=active-ip #点击 History Active IP按钮
|
||||
... AND sleep ${sleep_min}
|
||||
@@ -129,7 +129,7 @@ EditSNATIPPools
|
||||
... AND sleep ${sleep_min}
|
||||
run keyword if "${type}"=="create" Run Keywords SNATIPRangeCreate ${j} ${ip}
|
||||
... AND click id=wan_reach_test #点击可达性测试按钮
|
||||
... AND Wait Until Element Is Visible id=edit_0 ${sleep_Wait}
|
||||
... AND Wait Until Element Is Enabled id=edit_0 ${sleep_Wait}
|
||||
... AND sleep ${sleep_min}
|
||||
... AND click id=wan_reach_test
|
||||
... AND sleep ${sleep_min}
|
||||
@@ -183,7 +183,7 @@ SNATIPRangeCreate
|
||||
|
||||
SNATIPSearch
|
||||
[Arguments] ${value} ${search}
|
||||
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input ${sleep_Wait}
|
||||
Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input ${sleep_Wait}
|
||||
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 #点击搜索框
|
||||
sleep ${sleep_min}
|
||||
#判断是使用name搜索还是id搜索
|
||||
@@ -241,7 +241,7 @@ CreateVPNAccounts
|
||||
input xpath=//*[@id="wannat_vpn_password"]/div/div/input ${passwd} #输入密码
|
||||
sleep ${sleep_min}
|
||||
click id=wanAdd_ok #点击ok按钮
|
||||
Wait Until Element Is Visible xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span ${sleep_Wait}
|
||||
Wait Until Element Is Enabled xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span ${sleep_Wait}
|
||||
VPNAccountsSearch ${name} ${search}
|
||||
${text1} Get Text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span #获取点击后页面文本信息
|
||||
Should Be Equal As Strings ${text1} ${name} #断言
|
||||
@@ -264,7 +264,7 @@ EditVPNAccounts
|
||||
|
||||
VPNAccountsSearch
|
||||
[Arguments] ${value} ${search}
|
||||
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input ${sleep_Wait}
|
||||
Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input ${sleep_Wait}
|
||||
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 #点击搜索框
|
||||
sleep ${sleep_min}
|
||||
click xpath=/html/body/div/div[1]/div[1]/ul/li[2] #点击name
|
||||
@@ -317,7 +317,7 @@ CreateHijackFiles
|
||||
Sleep ${sleep_min}
|
||||
click id=hijackAdd #点击Create
|
||||
Sleep ${sleep}
|
||||
input id=hijack_profileName ${name} #输入name
|
||||
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[2]/div/div/div[1]/input ${file} #上传文件
|
||||
Sleep ${sleep}
|
||||
@@ -348,7 +348,7 @@ CreateInsertScripts
|
||||
Sleep ${sleep_min}
|
||||
click id=insertAdd #点击Create
|
||||
Sleep ${sleep}
|
||||
input id=insert_profileName ${name} #输入name
|
||||
input id=insert_profileName1 ${name} #输入name
|
||||
Sleep ${sleep}
|
||||
Choose File xpath=//*[@id="insertAddUpload"]/div[1]/input ${file} #上传文件
|
||||
Sleep ${sleep}
|
||||
@@ -407,7 +407,7 @@ CreateTrafficMirrorProfiles
|
||||
Sleep ${sleep_min}
|
||||
click id=trafficMirrorAdd #点击Create
|
||||
Sleep ${sleep}
|
||||
input id=trafficmirror_profileName ${name} #输入name
|
||||
input id=trafficmirror_profileName1 ${name} #输入name
|
||||
Sleep ${sleep_min}
|
||||
click id=addrTypeChoose #点击下拉框
|
||||
Sleep ${sleep}
|
||||
@@ -485,7 +485,7 @@ CreateResponsePages
|
||||
sleep ${sleep}
|
||||
click id=respinseAdd #Response Pages点击Create
|
||||
sleep ${sleep}
|
||||
input id=responsepages_profileName ${name} #输入name
|
||||
input id=responsepages_profileName1 ${name} #输入name
|
||||
sleep ${sleep}
|
||||
Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件
|
||||
sleep ${sleep}
|
||||
@@ -634,7 +634,7 @@ importTrustedCertificateAuthorities
|
||||
sleep ${sleep}
|
||||
click id=app_create #点击Import
|
||||
sleep ${sleep}
|
||||
input id=authoritiesAdd_name ${name} #输入name
|
||||
input id=authoritiesAdd_name1 ${name} #输入name
|
||||
sleep ${sleep}
|
||||
Choose File xpath=//*[@id="upload_dome"]/div/input ${file} #上传文件
|
||||
sleep ${sleep}
|
||||
@@ -762,7 +762,7 @@ DecryptionKeyringsErrorVerification
|
||||
click ${type1} #选择加密解密类型
|
||||
sleep ${sleep_min}
|
||||
click id=keyringsadd_sub #点击OK缇交
|
||||
Wait Until Element Is Visible xpath=${Positioning} ${sleep_Wait}
|
||||
Wait Until Element Is Enabled xpath=${Positioning} ${sleep_Wait}
|
||||
${text1} Get Text xpath=${Positioning} #获取点击后页面文本信息
|
||||
Should Be Equal As Strings ${text1} ${Assertion} #断言
|
||||
|
||||
@@ -803,7 +803,7 @@ CreateSSLDecryptionExclusion
|
||||
input id=sslAdd_itemDesc ${value} #输入内容
|
||||
sleep ${sleep}
|
||||
click id=ssl_ok #点击OK缇交
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span ${sleep_Wait}
|
||||
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span ${sleep_Wait}
|
||||
Settings-Search ${name1} ${search}
|
||||
sleep ${sleep_min}
|
||||
${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span #获取点击后页面文本信息
|
||||
@@ -1252,7 +1252,7 @@ Min_max_version
|
||||
sleep ${sleep_min}
|
||||
click id=insertAdd #点击Create
|
||||
sleep ${sleep_min}
|
||||
input id=insert_profileName ${name}
|
||||
input id=decrytion_profileName1 ${name}
|
||||
sleep ${sleep_min}
|
||||
ButtonSwitch ${dict1} //*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), " ")]/following-sibling::div/div el-switch is-checked el-switch
|
||||
${fail} Set Variable ${fail1}
|
||||
@@ -1337,7 +1337,7 @@ EditDecryptionProfile
|
||||
click id=profilesTabs_Profile_DecryptionProfile #点击Decryption Profile
|
||||
sleep ${sleep_min}
|
||||
Settings-Search ${id-name} ${search} #搜索框的关键字
|
||||
Wait Until Element Is Visible xpath=//*[@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 ${sleep_Wait}
|
||||
Wait Until Element Is Enabled xpath=//*[@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 ${sleep_Wait}
|
||||
click xpath=//*[@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 #点击搜索列表
|
||||
sleep ${sleep_min}
|
||||
click id=insertEdit #点击Edit
|
||||
@@ -1398,7 +1398,7 @@ EditDecryptionProfile
|
||||
... AND click id=pro_max0
|
||||
... ELSE log 错误
|
||||
click id=decryption-ok
|
||||
Wait Until Element Is Visible id=profilesTabs_Profile_DecryptionProfile ${sleep_Wait}
|
||||
Wait Until Element Is Enabled id=profilesTabs_Profile_DecryptionProfile ${sleep_Wait}
|
||||
Settings-Search ${id-name} ${search} #搜索框的关键字
|
||||
${name1} get text xpath=//*[@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 ${name1} ${name}
|
||||
@@ -1419,7 +1419,7 @@ DecryptionProfileButtonVerification
|
||||
END
|
||||
sleep ${sleep_min}
|
||||
click id=decryption-ok
|
||||
Wait Until Element Is Visible id=profilesTabs_Profile_DecryptionProfile ${sleep_Wait}
|
||||
Wait Until Element Is Enabled id=profilesTabs_Profile_DecryptionProfile ${sleep_Wait}
|
||||
Settings-Search ${id-name} ${search}
|
||||
|
||||
Delete
|
||||
@@ -1887,7 +1887,7 @@ SystemUsageChart
|
||||
sleep ${sleep_min}
|
||||
${ChartValueXpath}= SystemUsageGetText ${type}
|
||||
Mouse Over xpath=${ChartSuspension}
|
||||
Wait Until Element Is Visible xpath=/html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span 10
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span 10
|
||||
${text1} get text xpath=${ChartValueXpath} #获取图表上的值
|
||||
[Return] ${text1}
|
||||
|
||||
@@ -1908,7 +1908,7 @@ SystemUsageText
|
||||
sleep ${sleep_min}
|
||||
${TextValueXpath}= SystemUsageGetText ${type}
|
||||
Mouse Over xpath=${TextSuspension}
|
||||
Wait Until Element Is Visible xpath=/html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span 10
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/div[1]/div/div/div[2]/table/tbody/tr[1]/td[2]/div/span 10
|
||||
${text2} get text xpath=${TextValueXpath}
|
||||
[Return] ${text2}
|
||||
|
||||
@@ -2054,7 +2054,7 @@ CreatePacketCapture
|
||||
input id=PacketCaptureadd_pcapStorageDay ${CaptureDuration}
|
||||
sleep ${sleep_min}
|
||||
click id=packetCaptureAdd_ok
|
||||
Wait Until Element is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] ${sleep_Wait}
|
||||
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_min}
|
||||
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div/div/p/span
|
||||
@@ -2119,7 +2119,7 @@ EditPacketCapture
|
||||
input id=PacketCaptureadd_pcapStorageDay ${CaptureDuration}
|
||||
sleep ${sleep_min}
|
||||
click id=packetCaptureAdd_ok
|
||||
Wait Until Element is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] ${sleep_Wait}
|
||||
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}
|
||||
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div/div/p/span
|
||||
@@ -2525,7 +2525,7 @@ UploadFilesSize
|
||||
... AND sleep ${sleep}
|
||||
... AND click id=authoritiesAdd_sub #点击OK缇交
|
||||
... AND sleep ${sleep}
|
||||
${text} get text xpath=/html/body/div[last()]/p
|
||||
${text} get text xpath=/html/body/div/p
|
||||
Should Be Equal As Strings ${text} ${Promptinfor}
|
||||
|
||||
DownLoadFile
|
||||
|
||||
Reference in New Issue
Block a user