This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot
2021-02-23 15:23:23 +08:00

266 lines
19 KiB
Plaintext

*** Settings ***
Force Tags tsg-ui settings Decryption Keyrings
Resource ../../../03-Variable/bifangapivariable.txt
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
Library OperatingSystem
*** Test Cases ***
DecryptionKeyringsCreateCARootAndRSA2048
[Tags] Positive UI CARoot Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 2 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCARootAndRSA1024
[Tags] Positive UI CARoot Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-002 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 2 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCARootAndSECP256r1HSM
[Tags] Positive UI CARoot Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-003 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet2 name shift=close PrivateKeyType=HSM
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCARootAndSECP384r1
[Tags] Positive UI CARoot Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-004 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCARootOpenButtonHSM
[Tags] Positive UI CARoot Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-005 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3 name shift=open PrivateKeyType=HSM
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAMiddleAndSECP384r1
[Tags] Positive UI CAMiddle Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 23 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet3 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAMiddleAndSECP256r1HSM
[Tags] Positive UI CAMiddle Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 1 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet2 name PrivateKeyType=HSM
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAMiddleAndRSA2048
[Tags] Positive UI CAMiddle Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAMiddleAndRSA1024
[Tags] Positive UI CAMiddle Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAMiddleOpenButtonHSM
[Tags] Positive UI CAMiddle Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name
... open HSM
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAEntityAndRSA1024
[Tags] Positive UI CAEntity Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-013 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAEntityAndRSA2048
[Tags] Positive UI CAEntity Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-014 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAEntityAndSECP256r1
[Tags] Positive UI CAEntity Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-015 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet2 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAEntityAndSECP384r1
[Tags] Positive UI CAEntity Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-016 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet3 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateCAEntityOpenButton
[Tags] Positive UI CAEntity Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-017 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 1 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet3 name
... open
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsEditSearchID
[Tags] Positive UI Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span
EditDecryptionKeyrings ${id} lyf-RF-edit-1 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 1
... id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 id
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsEditSearchName
[Tags] Positive UI Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
EditDecryptionKeyrings ${name} lyf-RF-edit-1 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 1
... id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsEditDefaultCertificate
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
Settings-Search 1 id
EditDefaultCertificate 220
Settings-Search 1 id
EditDefaultCertificate 240
DecryptionKeyringsDownload
[Tags] Positive UI Settings DecryptionKeyrings
CreateDecryptionKeyrings lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 2 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/div/p/i
sleep 1
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[5]/div/div/div/p/i
sleep 2
DownLoadFile ${path}keyrings//root//ca-cer.pem ${DownLoadPath}ca-cer.pem
DownLoadFile ${path}keyrings//root//ca.keym ${DownLoadPath}ca.keym
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsTurnPage
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] 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
DecryptionKeyringsCertificateExpired
[Tags] Positive UI Settings DecryptionKeyrings
DecryptionKeyringsErrorVerification ${TEST NAME} ${path}keyrings//root//zcwca-cer.pem ${path}keyrings//root//zcwca-key.pem certificateType_select0 keyringsadd_publicKeyAlgoSelet1 /html/body/div[last()]/p Certificate expired
DecryptionKeyringsAllSearch
[Tags] Positive UI Settings DecryptionKeyrings
CreateDecryptionKeyrings ${TEST NAME} ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 2 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
DecryptionKeyringsSearch ${id} ${TEST NAME}
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span ${id}
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span ${TEST NAME}
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsPagingDisplay
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
PagingDisplay 50
DecryptionKeyringsCreateNameMinSize
[Tags] Boundary UI Settings DecryptionKeyrings
CreateDecryptionKeyrings test ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCreateNameMaxSize
[Tags] Boundary UI Settings DecryptionKeyrings
CreateDecryptionKeyrings CreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyring ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsNameCreateSpecialChar
[Tags] Boundary UI Settings DecryptionKeyrings
CreateDecryptionKeyrings ВставкаСкриптов!@#$%^&(-+=‘;。,? ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span
DeleteKeyrings_del
DecryptionKeyringsCARootFileCAMiddleType
[Tags] Negtive UI Settings DecryptionKeyrings
DecryptionKeyringsErrorVerification CARootFileCAMiddleType ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet3
... /html/body/div[last()]/p Incorrect certificate chain length (root certificate must be 1, intermediate certificate and end entity certificate must be greater than 2.)
DecryptionKeyringsCARootFileCAEntityType
[Tags] Negtive UI Settings DecryptionKeyrings
DecryptionKeyringsErrorVerification CARootFileCAEntityType ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet3
... /html/body/div[last()]/p Incorrect certificate chain length (root certificate must be 1, intermediate certificate and end entity certificate must be greater than 2.)
DecryptionKeyringsCAMiddleFileCARootType
[Tags] Negtive UI Settings DecryptionKeyrings
DecryptionKeyringsErrorVerification CAMiddleFileCARootType ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3
... /html/body/div[last()]/p Incorrect certificate chain length (root certificate must be 1, intermediate certificate and end entity certificate must be greater than 2.)
DecryptionKeyringsCAMiddleFileCAEntityType
[Tags] Negtive UI Settings DecryptionKeyrings
DecryptionKeyringsErrorVerification CAMiddleFileCAEntityType ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet3
... /html/body/div[last()]/p Incorrect certificate type
DecryptionKeyringsCAEntityFileCARootType
[Tags] Negtive UI Settings DecryptionKeyrings
DecryptionKeyringsErrorVerification CAEntityFileCARootType ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3
... /html/body/div[last()]/p Incorrect certificate chain length (root certificate must be 1, intermediate certificate and end entity certificate must be greater than 2.)
DecryptionKeyringsCAEntityFileCAMiddleType
[Tags] Negtive UI Settings DecryptionKeyrings
DecryptionKeyringsErrorVerification CAEntityFileCAMiddleType ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet3
... /html/body/div[last()]/p Incorrect certificate type
DecryptionKeyringsNullName
[Tags] Negtive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
click id=app_create
sleep 1
click id=keyringsadd_sub
sleep 1
${text1} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[1]/div/div[3]
${text2} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div[2]
${text3} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[7]/div/div[2]
Should Be Equal As Strings ${text1} Please enter the content
Should Be Equal As Strings ${text2} Type is mandatory.
Should Be Equal As Strings ${text3} Type is mandatory.
DecryptionKeyringsMaxSizeHSM
[Tags] Negtive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
click id=app_create
sleep 1
input id=keyringsadd_name DecryptionKeyringsMaxSizeHSM
sleep 1
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[2]/div/div/div/input ${path}keyrings//end-entity//caentity.chain.pem
Sleep 2
click id=privateHSM
sleep 1
input id=keyringsadd_slotid 2147483648
sleep 2
click id=keyringsadd_sub
sleep 1
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[4]/div/div[2]
Should Be Equal As Strings ${text} The maximum value of 2147483647 has been exceeded.
DecryptionKeyringsMaxSizeCustomized
[Tags] Negtive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
click id=app_create
sleep 1
input id=keyringsadd_name DecryptionKeyringsMaxSizeCustomized
sleep 1
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[2]/div/div/div/input ${path}keyrings//end-entity//caentity.chain.pem
Sleep 2
click id=privateHSM
sleep 1
input id=keyringsadd_slotid 21474836
sleep 2
click id=keyringsadd_customized
sleep 1
input id=reissueExpiryDate 2147483648
sleep 1
click id=keyringsadd_sub
sleep 1
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[5]/div/div[2]
Should Be Equal As Strings ${text} The maximum value of 2147483647 has been exceeded.