2020-12-29 15:56:13 +08:00
*** 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 ***
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesImportCa
[Tags] Positive UI CA Settings TrustedCertificateAuthorities
2020-12-29 15:56:13 +08:00
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
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesImportCaroot
[Tags] Positive UI Caroot Settings TrustedCertificateAuthorities
2020-12-29 15:56:13 +08:00
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
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesEditNameSearchID
[Tags] Positive UI ID Settings TrustedCertificateAuthorities
2020-12-29 15:56:13 +08:00
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
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesEditFileSearchName
[Tags] Positive UI name Settings TrustedCertificateAuthorities
2020-12-29 15:56:13 +08:00
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
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesEditSearchIssuer
[Tags] Positive UI Settings TrustedCertificateAuthorities
2020-12-29 15:56:13 +08:00
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
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesEditSearchCommonName
[Tags] Positive UI Settings TrustedCertificateAuthorities
2020-12-29 15:56:13 +08:00
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
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesEditSearchCertificateFingerprint
[Tags] Positive UI Settings TrustedCertificateAuthorities
2020-12-29 15:56:13 +08:00
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
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesDownLoadCertificate
[Tags] Positive UI 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[1]/td[3]/div/div/div/p/i
DownLoadFile ${path}keyrings//root//ca-cer.pem ${DownLoadPath}ca-cer.pem
DeleteAuthorities_del
TrustedCertificateAuthoritiesTurnPage
[Tags] Positive UI Settings TrustedCertificateAuthorities
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/span[2]/div/input 2
TrustedCertificateAuthoritiesCreateNameMinSize
[Tags] Boundary UI 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
TrustedCertificateAuthoritiesCreateNameMaxSize
[Tags] Boundary UI 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
TrustedCertificateAuthoritiesCreateNameSpecialChar
[Tags] Boundary UI 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
TrustedCertificateAuthoritiesCreateFileNameSpecialChar
[Tags] Boundary UI 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
TrustedCertificateAuthoritiesCreateNameThreeCharacters
[Tags] Negtive UI Settings TrustedCertificateAuthorities
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
click id=app_create #点击Import
Sleep 2
input id=authoritiesAdd_name 123 #输入name
sleep 1
click id=authoritiesAdd_sub
sleep 1
${text} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[3]
Should Be Equal As Strings ${text} Content length is less than 4
2020-12-29 15:56:13 +08:00
TrustedCertificateAuthoritiesInportEntityCertificate
2021-01-22 18:40:29 +08:00
[Tags] Negtive UI Settings TrustedCertificateAuthorities
UploadFilesSize TrustedCertificateAuthorities InportEntityCertificate ${path}keyrings//end-entity//caentity.chain.pem End-entity certificate is not allowed to upload
2020-12-29 15:56:13 +08:00
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesInportEmptyFile
[Tags] Negtive UI Settings TrustedCertificateAuthorities
UploadFilesSize TrustedCertificateAuthorities InportNullFile ${path}keyrings//root//null.pem File content is empty
2020-12-29 15:56:13 +08:00
TrustedCertificateAuthoritiesInportErrorFile
2021-01-22 18:40:29 +08:00
[Tags] Negtive UI Settings TrustedCertificateAuthorities
UploadFilesSize TrustedCertificateAuthorities InportErrorFile ${path}keyrings//root//Error.pem Invalid public certificate
2020-12-29 15:56:13 +08:00
2021-01-22 18:40:29 +08:00
TrustedCertificateAuthoritiesImportDuplicateCertificate
[Tags] Negtive UI Settings TrustedCertificateAuthorities
2020-12-29 15:56:13 +08:00
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
2021-01-22 18:40:29 +08:00
UploadFilesSize TrustedCertificateAuthorities InportDuplicateCertificate02 ${path}keyrings//root//ca-cer.pem Certificate already exists
2020-12-29 15:56:13 +08:00
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