1.修改关键字 2.新建TrustedCertificateAuthoritiesCase代替Trusted_Certificate_Authorities_Case3.新增测试文件
This commit is contained in:
@@ -34,10 +34,10 @@ Settings-Search
|
||||
... ELSE IF "${search}"=="Issuer" 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}
|
||||
... ELSE IF "${search}"=="Common Name" run keywords sleep 1
|
||||
... ELSE IF "${search}"=="CommonName" run keywords sleep 1
|
||||
... 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[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
... ELSE IF "${search}"=="Certificate Fingerprint" run keywords sleep 1
|
||||
... ELSE IF "${search}"=="CertificateFingerprint" run keywords sleep 1
|
||||
... 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[3]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||
... ELSE IF "${search}"=="Source Website" run keywords sleep 1
|
||||
@@ -707,7 +707,7 @@ EditTrafficMirrorProfiles
|
||||
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
|
||||
Should Be Equal As Strings ${text1} ${name1} #断言
|
||||
|
||||
import-Trusted Certificate Authorities
|
||||
importTrustedCertificateAuthorities
|
||||
[Arguments] ${name} ${file} ${search}
|
||||
[Documentation] 引用次关键字,填入必填参数
|
||||
... 必填参数:
|
||||
@@ -732,7 +732,32 @@ import-Trusted Certificate Authorities
|
||||
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} #断言
|
||||
|
||||
|
||||
importTrustedCertificateAuthoritiesErrorVerification
|
||||
[Arguments] ${name} ${file} ${PromptInformation}
|
||||
[Documentation] 用于验证导入错误的证书类型
|
||||
... 必填参数:
|
||||
... ${name}:新建页面name输入框里的内容
|
||||
... ${file}:上传文件所在本地的路径
|
||||
... ${PromptInformation}:提示信息
|
||||
#打开浏览器
|
||||
#ui-login lyf 111111
|
||||
Sleep 1
|
||||
click id=children6 #点击一级目录Settings
|
||||
Sleep 1
|
||||
click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities
|
||||
Sleep 2
|
||||
click id=Authorities_create #点击Import
|
||||
Sleep 2
|
||||
input id=authoritiesAdd_name ${name} #输入name
|
||||
Sleep 2
|
||||
Choose File xpath=//*[@id="upload_dome"]/div/input ${file} #上传文件
|
||||
Sleep 2
|
||||
click id=authoritiesAdd_sub #点击OK缇交
|
||||
Sleep 2
|
||||
${text} Get text xpath=/html/body/div[last()]/p
|
||||
Should Be Equal As Strings ${text} ${PromptInformation} #断言
|
||||
|
||||
Create-Decryption Keyrings
|
||||
[Arguments] ${name} ${file} ${file1} ${1or2} ${type} ${type1} ${search}
|
||||
... ${shift}=close
|
||||
@@ -824,7 +849,7 @@ Search-Cached Intermediate Certificates
|
||||
click ${enabled} #点击enabled按钮
|
||||
sleep 1
|
||||
|
||||
Edit-Trusted Certificate Authorities
|
||||
EditTrustedCertificateAuthorities
|
||||
[Arguments] ${id-name} ${name} ${file} ${search}
|
||||
[Documentation] 引用关键字,填入必填参数
|
||||
... 必填参数:
|
||||
|
||||
Reference in New Issue
Block a user