199 lines
14 KiB
Plaintext
199 lines
14 KiB
Plaintext
*** 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 ***
|
|
TrustedCertificateAuthoritiesImportCa
|
|
[Tags] Positive UI CA 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
|
|
|
|
TrustedCertificateAuthoritiesImportCaroot
|
|
[Tags] Positive UI Caroot Settings TrustedCertificateAuthorities
|
|
importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesImportCaroot ${path}keyrings//Intermediate//camiddle.chain_365.pem name
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
DeleteAuthorities_del
|
|
|
|
TrustedCertificateAuthoritiesEditNameSearchID
|
|
[Tags] Positive UI 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 ${sleep_Wait}
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
DeleteAuthorities_del
|
|
|
|
TrustedCertificateAuthoritiesEditFileSearchName
|
|
[Tags] Positive UI 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//ca-cer2.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 ${sleep_Wait}
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
DeleteAuthorities_del
|
|
|
|
TrustedCertificateAuthoritiesEditSearchIssuer
|
|
[Tags] Positive UI 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 ${sleep_Wait}
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
DeleteAuthorities_del
|
|
|
|
TrustedCertificateAuthoritiesEditSearchCommonName
|
|
[Tags] Positive UI 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 ${sleep_Wait}
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
DeleteAuthorities_del
|
|
|
|
TrustedCertificateAuthoritiesEditSearchCertificateFingerprint
|
|
[Tags] Positive UI 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 ${sleep_Wait}
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
|
|
DeleteAuthorities_del
|
|
|
|
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
|
|
|
|
TrustedCertificateAuthoritiesEditDefaultCertificate
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
Settings-Search 1 id
|
|
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]
|
|
sleep ${sleep_min}
|
|
SettingsElementAttributes //*[@id="appEdit"] el-button el-button--default el-button--small is-disabled class
|
|
|
|
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 //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span
|
|
|
|
TrustedCertificateAuthoritiesPagingDisplay
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
PagingDisplay 50
|
|
|
|
TrustedCertificateAuthoritiesIDSortButton
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[1]/div/span/i Trusted Certificate Authorities
|
|
|
|
TrustedCertificateAuthoritiesNameSortButton
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[2]/div/span/i Trusted Certificate Authorities
|
|
|
|
TrustedCertificateAuthoritiesIssuerBySortButton
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[4]/div/span/i Trusted Certificate Authorities
|
|
|
|
TrustedCertificateAuthoritiesIssuerToSortButton
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[5]/div/span/i Trusted Certificate Authorities
|
|
|
|
TrustedCertificateAuthoritiesExpiryDateSortButton
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[7]/div/span/i Trusted Certificate Authorities
|
|
|
|
TrustedCertificateAuthoritiesCommonNameSortButton
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[8]/div/span/i Trusted Certificate Authorities
|
|
|
|
TrustedCertificateAuthoritiesCertificateFingerprintSortButton
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[9]/div/span/i Trusted Certificate Authorities
|
|
|
|
TrustedCertificateAuthoritiesModifiedTimeSortButton
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[10]/div/span/i Trusted Certificate Authorities
|
|
|
|
TrustedCertificateAuthoritiesCertificateExpirationDelay
|
|
[Tags] Positive UI Settings TrustedCertificateAuthorities
|
|
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath
|
|
Settings-Search CertificateExpirationDelay name
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[3]/td[6]/div/div/div/span
|
|
Should Be Equal As Strings Expired ${text}
|
|
|
|
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 ${sleep}
|
|
input id=authoritiesAdd_name1 123 #输入name
|
|
sleep ${sleep_min}
|
|
click id=authoritiesAdd_sub
|
|
sleep ${sleep_min}
|
|
${text} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[1]/div/div[3]
|
|
Should Be Equal As Strings ${text} The length of the name is at most 128 characters and cannot be less than 4 characters
|
|
|
|
TrustedCertificateAuthoritiesInportEntityCertificate
|
|
[Tags] Negtive UI Settings TrustedCertificateAuthorities
|
|
UploadFilesSize TrustedCertificateAuthorities InportEntityCertificate ${path}keyrings//end-entity//caentity.chain.pem End-entity certificate is not allowed to upload
|
|
|
|
TrustedCertificateAuthoritiesExpiredCertificate
|
|
[Tags] Negtive UI Settings TrustedCertificateAuthorities
|
|
UploadFilesSize TrustedCertificateAuthorities ${TEST NAME} ${path}keyrings//root//Expiredcertificate.pem Certificate expired
|
|
|
|
TrustedCertificateAuthoritiesInportEmptyFile
|
|
[Tags] Negtive UI Settings TrustedCertificateAuthorities
|
|
UploadFilesSize TrustedCertificateAuthorities InportNullFile ${path}keyrings//root//null.pem File content is empty
|
|
|
|
TrustedCertificateAuthoritiesInportErrorFile
|
|
[Tags] Negtive UI Settings TrustedCertificateAuthorities
|
|
UploadFilesSize TrustedCertificateAuthorities InportErrorFile ${path}keyrings//root//Error.pem save trusted certificate authorities failure : The uploaded certificate is incorrect.
|
|
|
|
TrustedCertificateAuthoritiesImportDuplicateCertificate
|
|
[Tags] Negtive UI 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
|
|
UploadFilesSize TrustedCertificateAuthorities 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
|