1.修改关键字 2.新建TrustedCertificateAuthoritiesCase代替Trusted_Certificate_Authorities_Case3.新增测试文件
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
*** Settings ***
|
||||
Force Tags tsg-ui settings Trusted Certificate Authorities
|
||||
Resource ../../../03-Variable/bifangapivariable.txt
|
||||
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
||||
Library OperatingSystem
|
||||
|
||||
*** Test Cases ***
|
||||
CreateTrustedCertificateAuthorities
|
||||
[Tags] PositiveTestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
CreateTrustedCertificateAuthoritiesNameMinSize
|
||||
[Tags] PositiveTestCase name Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities test ${path}keyrings//root//ca-cer.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
CreateTrustedCertificateAuthoritiesNameMaxSize
|
||||
[Tags] PositiveTestCase name Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesCreateTrustedCertificateAuthoritiesCreateTrustedCertificateAuthoritiesCreateTrustedCertificat ${path}keyrings//root//ca-cer.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
CreateTrustedCertificateAuthoritiesNameSpecialChar
|
||||
[Tags] PositiveTestCase name Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities ВставкаСкриптов!@#$%^&(-+=‘;。,? ${path}keyrings//root//ca-cer.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
CreateTrustedCertificateAuthoritiesImportCaroot
|
||||
[Tags] PositiveTestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesImportCaroot ${path}keyrings//Intermediate//camiddle.chain.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
CreateTrustedCertificateAuthoritiesFileNameSpecialChar
|
||||
[Tags] PositiveTestCase name Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesFileNameSpecialChar ${path}keyrings//root//ВставкаСкриптов!@#$%^&(-+=‘;。,?.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
EditTrustedCertificateAuthoritiesNameSearchID
|
||||
[Tags] PositiveTestCase ID Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span
|
||||
EditTrustedCertificateAuthorities ${id} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem id
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 20
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
EditTrustedCertificateAuthoritiesFileSearchName
|
||||
[Tags] PositiveTestCase name Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
EditTrustedCertificateAuthorities ${name} lyf-RF-test-001 ${path}keyrings//root//mesalab-ca-cert.pem name
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 20
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
EditTrustedCertificateAuthoritiesSearchIssuer
|
||||
[Tags] PositiveTestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
${Issuer} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/div/p/span
|
||||
EditTrustedCertificateAuthorities ${Issuer} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem Issuer
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 20
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
EditTrustedCertificateAuthoritiesSearchCommonName
|
||||
[Tags] PositiveTestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
${CommonName} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div/p/span
|
||||
EditTrustedCertificateAuthorities ${CommonName} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem CommonName
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 20
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
EditTrustedCertificateAuthoritiesSearchCertificateFingerprint
|
||||
[Tags] PositiveTestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
${CertificateFingerprint} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[9]/div/div/div/p/span
|
||||
EditTrustedCertificateAuthorities ${CertificateFingerprint} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem CertificateFingerprint
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 20
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
TrustedCertificateAuthoritiesInportEntityCertificate
|
||||
[Tags] NegtivetestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthoritiesErrorVerification InportEntityCertificate ${path}keyrings//end-entity//caentity.chain.pem End-entity certificate is not allowed to upload
|
||||
|
||||
TrustedCertificateAuthoritiesInportNullFile
|
||||
[Tags] NegtivetestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthoritiesErrorVerification InportNullFile ${path}keyrings//root//null.pem File content is empty
|
||||
|
||||
TrustedCertificateAuthoritiesInportErrorFile
|
||||
[Tags] NegtivetestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthoritiesErrorVerification InportErrorFile ${path}keyrings//root//Error.pem Invalid public certificate
|
||||
|
||||
TrustedCertificateAuthoritiesInportDuplicateCertificate
|
||||
[Tags] NegtivetestCase Settings TrustedCertificateAuthorities
|
||||
importTrustedCertificateAuthorities InportDuplicateCertificate01 ${path}keyrings//root//ca-cer.pem name
|
||||
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
importTrustedCertificateAuthoritiesErrorVerification InportDuplicateCertificate02 ${path}keyrings//root//ca-cer.pem Certificate already exists
|
||||
click id=authoritiesAdd_cancel
|
||||
Settings-Search ${name} name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
@@ -1,37 +0,0 @@
|
||||
*** Settings ***
|
||||
Force Tags tsg-ui settings Trusted Certificate Authorities
|
||||
Resource ../../../03-Variable/bifangapivariable.txt
|
||||
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
||||
Library OperatingSystem
|
||||
|
||||
*** Test Cases ***
|
||||
Create_Trusted_Certificate_Authorities-001
|
||||
import-Trusted Certificate Authorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
Create_Trusted_Certificate_Authorities-002
|
||||
import-Trusted Certificate Authorities test ${path}keyrings//root//ca-cer.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
Create_Trusted_Certificate_Authorities-003
|
||||
import-Trusted Certificate Authorities Create-Insert Scripts-test.cssCreate-Insert Scripts-test ${path}keyrings//root//ca-cer.pem name
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
Edit_Trusted_Certificate_Authorities-004
|
||||
import-Trusted Certificate Authorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span
|
||||
Edit-Trusted Certificate Authorities ${id} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem id
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 20
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
|
||||
Edit_Trusted_Certificate_Authorities-005
|
||||
import-Trusted Certificate Authorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
Edit-Trusted Certificate Authorities ${name} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem name
|
||||
Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 20
|
||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
||||
DeleteAuthorities_del
|
||||
@@ -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] 引用次关键字,填入必填参数
|
||||
... 必填参数:
|
||||
@@ -733,6 +733,31 @@ import-Trusted Certificate Authorities
|
||||
${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] 引用关键字,填入必填参数
|
||||
... 必填参数:
|
||||
|
||||
1
05-Other/keyrings/root/Error.pem
Normal file
1
05-Other/keyrings/root/Error.pem
Normal file
@@ -0,0 +1 @@
|
||||
test
|
||||
0
05-Other/keyrings/root/null.pem
Normal file
0
05-Other/keyrings/root/null.pem
Normal file
16
05-Other/keyrings/root/ВставкаСкриптов!@#$%^&(-+=‘;。,?.pem
Normal file
16
05-Other/keyrings/root/ВставкаСкриптов!@#$%^&(-+=‘;。,?.pem
Normal file
@@ -0,0 +1,16 @@
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIICdjCCAd+gAwIBAgIJAOZyNIcj3S7OMA0GCSqGSIb3DQEBCwUAMFQxCzAJBgNV
|
||||
BAYTAkNOMQswCQYDVQQIDAJCSjELMAkGA1UEBwwCQkoxCzAJBgNVBAoMAk5UMQsw
|
||||
CQYDVQQLDAJOVDERMA8GA1UEAwwIQ0EgVFJVU1QwHhcNMjAxMjA4MDIyNjQwWhcN
|
||||
MjExMjA4MDIyNjQwWjBUMQswCQYDVQQGEwJDTjELMAkGA1UECAwCQkoxCzAJBgNV
|
||||
BAcMAkJKMQswCQYDVQQKDAJOVDELMAkGA1UECwwCTlQxETAPBgNVBAMMCENBIFRS
|
||||
VVNUMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC83l1aCRsQh/HZ+iOYBw1o
|
||||
GiKWkJjxRvOaxKAkkV0zAaOI7J3bMHu+9j+t+MXuKlSliKvQnjuKStUVcw2o2p3w
|
||||
/9sHeHb8Xk4mH9M5JTa0a2BtYHfRpZnpKDMNKqw1uF8IhgYeRcWCxbTksZpXjUGP
|
||||
+Vfx2OSuujXc6C1ykjCfXwIDAQABo1AwTjAdBgNVHQ4EFgQUvQYpsC2swffiXl5T
|
||||
q9gts85nPUswHwYDVR0jBBgwFoAUvQYpsC2swffiXl5Tq9gts85nPUswDAYDVR0T
|
||||
BAUwAwEB/zANBgkqhkiG9w0BAQsFAAOBgQAQe5Pnkdo7/Pc4UQwgdtNLWza2yEx4
|
||||
3/385ajpKcAdW2Jytj8W9fJNEGNnhtQCM9Du/e8O8OK0+Cuf+AitPptoC2ijlpUb
|
||||
AfWWovdwgEmzqPlYkdLOt0a8cv4lkxx6/EWpDKsWHzOJFzL/HS4Ec+dIFTfBQttO
|
||||
RB46s6Ruv7Y8lQ==
|
||||
-----END CERTIFICATE-----
|
||||
Reference in New Issue
Block a user