修改将等待时间改为提取变量

This commit is contained in:
byb11
2021-03-09 11:04:37 +08:00
parent 6123632b8d
commit 2dafd31f93
2 changed files with 18 additions and 18 deletions

View File

@@ -90,11 +90,11 @@ ResponsePagesCreateNullNames
[Tags] Negtive UI Name Settings ResponsePages
OpenPages sidebarProxy_Profiles profilesTabs_Profile_ResponsePages
click id=respinseAdd
sleep 1
sleep ${sleep_min}
Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${path}response_pages_files\\Create-ResponsePages-test.html #上传文件
Sleep 2
sleep ${sleep}
click id=responseAddOk1
sleep 1
sleep ${sleep_min}
${text} get text xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[1]/div/div[3]
Should Be Equal As Strings ${text} Please enter the content
@@ -106,9 +106,9 @@ ResponsePageUploadExceed20MFile
[Tags] Negtive UI File Settings ResponsePages
OpenPages sidebarProxy_Profiles profilesTabs_Profile_ResponsePages
click id=respinseAdd
sleep 1
sleep ${sleep_min}
Choose File xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[2]/div/div/div/input ${path}response_pages_files\\Exceed20MFile.html
sleep 1
sleep ${sleep_min}
${text} get text xpath=/html/body/div[last()]/p
Should Be Equal As Strings ${text} File size upload limit is 20MB

View File

@@ -65,12 +65,12 @@ SNATIPPoolsViewMembers
[Tags] Positive IP Settings SNATIPPools
${iplist} create list 192.168.50.35
CreateSNATIPPools ${TEST NAME} 1 ${iplist}
sleep 1
sleep ${sleep_min}
click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]/td[4]/div/div/div/span
sleep 2
sleep ${sleep}
${text} get text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]/td[4]/div/div/div/span/span
click id=interceptionadd_allcancelobject6
sleep 1
sleep ${sleep_min}
SNATIPDelete 192.168.50.35 IP
Should Be Equal As Strings ${text} 192.168.50.35
@@ -107,9 +107,9 @@ CreateSNATIPPoolsNameNull
[Tags] Negtive UI Settings SNATIPPools
OpenPages sidebarSetting_Wannat ip
click id=app_create
sleep 1
sleep ${sleep_min}
click id=wanAdd_ok
sleep 1
sleep ${sleep_min}
${text} Get Text xpath=//*[@id="wannat_vpn_color"]/form/div[1]/div/div[2]
Should Be Equal As Strings ${text} This item is required
@@ -117,13 +117,13 @@ CreateSNATIPPoolsIpFormatError
[Tags] Negtive UI Settings SNATIPPools
OpenPages sidebarSetting_Wannat ip
click id=app_create
sleep 1
sleep ${sleep_min}
click id=temporary_form #点击添加ip的加号
sleep 2
sleep ${sleep}
input xpath=//*[@id="wannat_vpn_color"]/form/div[3]/div/div/div[2]/div[1]/div/div/div[1]/div[1]/div/div[2]/div/input 192.168.50.256
sleep 1
sleep ${sleep_min}
click id=wanAdd_ok
sleep 1
sleep ${sleep_min}
${text} get text xpath=//*[@id="wannat_vpn_color"]/form/div[3]/div/div/div[2]/div[1]/div/div/div[2]
Should Be Equal As Strings ${text} Please enter the correct ip address
@@ -131,12 +131,12 @@ CreateSNATIPPoolsNoReachabilityTest
[Tags] Negtive UI Settings SNATIPPools
OpenPages sidebarSetting_Wannat ip
click id=app_create
sleep 1
sleep ${sleep_min}
click id=temporary_form #点击添加ip的加号
sleep 2
sleep ${sleep}
input xpath=//*[@id="wannat_vpn_color"]/form/div[3]/div/div/div[2]/div[1]/div/div/div[1]/div[1]/div/div[2]/div/input 192.168.50.25
sleep 1
sleep ${sleep_min}
click id=wanAdd_ok
sleep 1
sleep ${sleep_min}
${text} get text xpath=/html/body/div[last()]/p
Should Be Equal As Strings ${text} Manually add data, and reachability test is required