1.主要对IP Librarie页面Case进行修改和增加 2.修增加改关键字
This commit is contained in:
@@ -46,10 +46,18 @@ Settings-Search
|
||||
... ELSE IF "${search}"=="JA3Hash" run keywords sleep 1
|
||||
... 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[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
... ELSE IF "${search}"=="GeoName" run keywords sleep 1
|
||||
... 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[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
... ELSE IF "${search}"=="CountryandRegion" run keywords sleep 1
|
||||
... 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[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
... ELSE IF "${search}"=="City" run keywords sleep 1
|
||||
... 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[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
sleep 1
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[1]/span/div/i #点击搜索按钮
|
||||
sleep 1
|
||||
|
||||
|
||||
CreateSNATIPPools
|
||||
[Arguments] ${name} ${type} ${ip} ${j}=1
|
||||
@@ -208,6 +216,7 @@ CreateVPNAccounts
|
||||
input xpath=//*[@id="wannat_vpn_password"]/div/div/input ${passwd} #输入密码
|
||||
sleep 1
|
||||
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 20
|
||||
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} #断言
|
||||
@@ -880,7 +889,7 @@ DecryptionKeyringsErrorVerification
|
||||
click ${type1} #选择加密解密类型
|
||||
sleep 1
|
||||
click id=keyringsadd_sub #点击OK缇交
|
||||
Sleep 2
|
||||
Wait Until Element Is Visible xpath=${Positioning} 20
|
||||
${text1} Get Text xpath=${Positioning} #获取点击后页面文本信息
|
||||
Should Be Equal As Strings ${text1} ${Assertion} #断言
|
||||
|
||||
@@ -910,19 +919,41 @@ CreateSSLDecryptionExclusion
|
||||
Sleep 1
|
||||
${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span #获取点击后页面文本信息
|
||||
Should Be Equal As Strings ${text1} ${name} #断言
|
||||
|
||||
Search-Cached Intermediate Certificates
|
||||
[Arguments] ${type} ${enabled} ${search}
|
||||
[Documentation] 引用关键字,填入必填参数
|
||||
... ${type}:为搜索类型的元素(id或sni)
|
||||
... ${enabled}:为enabled开启或关闭按钮的元素
|
||||
|
||||
CreateSSLDecryptionExclusionErrorVerification
|
||||
[Arguments] ${name} ${value} ${AssertionPath} ${AssertionText}
|
||||
[Documentation] 用于SSL Decryption Exclusion创建页面错误提示信息验证
|
||||
... 必填参数:
|
||||
... ${name}:新建页面name输入框里的内容
|
||||
... ${value}:输入内容
|
||||
... ${AssertionPath}:提示信息Xpath定位
|
||||
... ${AssertionText}:错误提示信息文本
|
||||
Sleep 1
|
||||
Settings-Search ${type} ${search}
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[8]/div/div/div/p/i #点击下载
|
||||
Sleep 10
|
||||
click ${enabled} #点击enabled按钮
|
||||
click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities
|
||||
Sleep 2
|
||||
click xpath=//*[@id="proxyTabs"]/div/ul/li[3] #点击SSL Decryption Exclusion按钮
|
||||
sleep 1
|
||||
click id=ssl_create #点击Create
|
||||
Sleep 2
|
||||
input id=sslAdd_name ${name} #输入name
|
||||
Sleep 2
|
||||
input id=sslAdd_itemDesc ${value} #输入内容
|
||||
Sleep 2
|
||||
click id=ssl_ok #点击OK缇交
|
||||
Sleep 2
|
||||
${text} get text xpath=${AssertionPath}
|
||||
Should Be Equal As Strings ${text} ${AssertionText}
|
||||
|
||||
CachedIntermediateCertificatesSearch
|
||||
[Arguments] ${Condition} ${AssertionPath} ${search}
|
||||
sleep 1
|
||||
Settings-Search ${Condition} ${search}
|
||||
sleep 2
|
||||
${text} get text ${AssertionPath}
|
||||
Should Be Equal As Strings ${text} ${Condition}
|
||||
|
||||
|
||||
EditTrustedCertificateAuthorities
|
||||
[Arguments] ${id-name} ${name} ${file} ${search}
|
||||
@@ -978,18 +1009,18 @@ EditDecryptionKeyrings
|
||||
sleep 1
|
||||
input id=keyringsadd_name ${name} #输入name
|
||||
sleep 1
|
||||
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[5]/div/div/div/input ${file} #上传文件
|
||||
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[5]/div/div/div/input ${file} #上传文件
|
||||
Sleep 2
|
||||
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div[2]/div/div/input ${file1} #上传文件
|
||||
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} #上传文件
|
||||
${select} Set Variable ${1or2}
|
||||
Run Keyword If '${select}'=='1' click id=keyringsadd_customized
|
||||
Run Keyword If '${select}'=='1' input id=reissueExpiryDate 10
|
||||
sleep 1
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[9]/div/div/div[1]/span/span/i #点击下拉框
|
||||
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 #点击下拉框
|
||||
sleep 1
|
||||
click ${type} #选择证书类型
|
||||
sleep 1
|
||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[10]/div/div/div[1]/span/span/i #点击下拉框
|
||||
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 #点击下拉框
|
||||
sleep 2
|
||||
click ${type1} #选择加密解密类型
|
||||
sleep 1
|
||||
@@ -1828,7 +1859,7 @@ CreateIpLibraries
|
||||
run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude}
|
||||
... AND sleep 1
|
||||
click id=IP_library_add
|
||||
sleep 2
|
||||
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[1]/span/div/div/div[2]/div/div/div/input 20
|
||||
#验证新建是否成功
|
||||
Switch_IP_Libraries ${type1} ${GeoNameID} ${GeoNameID}
|
||||
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
@@ -1864,6 +1895,48 @@ EditIpLibraries
|
||||
${GeoNameText} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div
|
||||
sleep 2
|
||||
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 1
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarAdvanced
|
||||
sleep 1
|
||||
click id=Advanced/ipLibrary #点击二级目录IP_Libraries
|
||||
Sleep 2
|
||||
click id=tagAdd #点击Create按钮
|
||||
sleep 2
|
||||
run keyword if "${type}"=="Country" Run Keywords click id=security_action_country
|
||||
... AND sleep 1
|
||||
... AND click id=ip_geography_continent
|
||||
... AND sleep 1
|
||||
... AND Switch_Geographic_Locations ${Continent/Country}
|
||||
... AND input id=ip_geography_Country1 ${Country}
|
||||
run keyword if "${type}"=="City" Run Keywords click id=security_action_city
|
||||
... AND sleep 1
|
||||
... AND click id=ip_geography_Country
|
||||
... AND sleep 1
|
||||
... AND Switch_Geographic_Locations ${Continent/Country}
|
||||
sleep 1
|
||||
input id=ip_geography_name ${GeoNameID}
|
||||
sleep 1
|
||||
input id=ip_geography_City ${City}
|
||||
sleep 1
|
||||
click id=ip_geography_IPRange
|
||||
sleep 1
|
||||
input id=ip_input0 ${ip}[0]
|
||||
sleep 1
|
||||
run keyword if "${j}"!="1" Ip_Range_Create ${j} ${ip}
|
||||
run keyword if "${Longitude}"!="null" Run Keywords input id=ip_geography_longitude ${Longitude}
|
||||
... AND sleep 1
|
||||
run keyword if "${Latitude}"!="null" Run Keywords input id=ip_geography_latitude ${Latitude}
|
||||
... AND sleep 1
|
||||
click id=IP_library_add
|
||||
sleep 2
|
||||
${text} get text xpath=${AssertPath}
|
||||
Should Be Equal As Strings ${text} ${AssertText}
|
||||
|
||||
Switch_Geographic_Locations
|
||||
[Arguments] ${Continent/Country}
|
||||
sleep 1
|
||||
@@ -1896,6 +1969,7 @@ Ip_Range_Edit_Create
|
||||
sleep 1
|
||||
|
||||
DeleteIPLibraries
|
||||
sleep 1
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]
|
||||
sleep 2
|
||||
click id=tagDel
|
||||
@@ -1957,7 +2031,7 @@ TurnPage
|
||||
... ${JumpInput} 跳转页面输入框
|
||||
... ${pages} 跳转得页码
|
||||
click xpath=${NextPage}
|
||||
sleep 2
|
||||
sleep 2
|
||||
${text1} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[last()]/div/ul/li[2] class
|
||||
sleep 1
|
||||
Should Be Equal As Strings ${text1} number active
|
||||
@@ -2031,7 +2105,7 @@ DeleteSSLFingerprint
|
||||
click id=Fingerprint_del
|
||||
sleep 2
|
||||
click xpath=/html/body/div/div/div[3]/button[2]
|
||||
sleep 2
|
||||
sleep 3
|
||||
|
||||
|
||||
Policy_Verify_Switch
|
||||
|
||||
Reference in New Issue
Block a user