根据测试报告调整自动化代码

This commit is contained in:
byb11
2021-04-23 14:24:07 +08:00
parent 0df38e620a
commit 623e60fdeb
8 changed files with 29 additions and 28 deletions

View File

@@ -265,7 +265,7 @@ AuditLogsIPLibraries
CreateIpLibraries Geo Name City Algeria ${a} ${a} ${iplist} Longitude=-1 Latitude=12.13
EditIpLibraries Geo Name ${a} Longitude=-2 Latitude=12.13
DeleteIPLibraries
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
Wait Until Element Is Enabled xpath=//*[@id="app"]/following-sibling::div/p ${sleep_Wait}
AdminOpenPages sidebarsystem_PolicyConfigurationLog sidebarsystem_PolicyConfigurationLog
AuditLogsSearch ${a} IP Libraries
Wait Until Element Is Enabled xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div ${sleep_Wait}

View File

@@ -70,7 +70,7 @@ MyAccountPasswordNotModified
[Tags] Negtive UI Administration My Account
OpenMyAccountPage
EditMyAccount ${username} ${password} ${password}
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
Wait Until Element Is Enabled xpath=//*[@id="app"]/following-sibling::div/p ${sleep_Wait}
Assertion /html/body/div[last()]/p The password setting cannot be the same as the previous one.
MyAccountTwoPasswordsAreInconsistent

View File

@@ -32,7 +32,7 @@ CachedIntermediateCertificatesSearchIssuer
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
${Issuer} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div/div/p/span
sleep ${sleep}
CachedIntermediateCertificatesSearch ${Issuer} //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/p/span Issuer
CachedIntermediateCertificatesSearch ${Issuer} //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div/div/p/span Issuer
CachedIntermediateCertificatesSearchCertificateFingerprint
[Tags] Positive UI Settings CachedIntermediateCertificates

View File

@@ -234,32 +234,32 @@ DecryptionKeyringsNameCreateSpecialChar
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.)
... //*[@id="app"]/following-sibling::div/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.)
... //*[@id="app"]/following-sibling::div/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.)
... //*[@id="app"]/following-sibling::div/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
... //*[@id="app"]/following-sibling::div/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.)
... //*[@id="app"]/following-sibling::div/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
... //*[@id="app"]/following-sibling::div/p Incorrect certificate type
DecryptionKeyringsNullName
[Tags] Negtive UI Settings DecryptionKeyrings

View File

@@ -45,7 +45,7 @@ InsertScriptsEditSearchId
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
InsertScriptsEditSearchName
InsertScriptsEditSearchName
[Tags] Positive UI Settings InsertScript
CreateInsertScripts 1234 ${path}insert_files\\Create-Insert Scripts-test.css css name
${name} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span

View File

@@ -10,12 +10,12 @@ CreateSNATIPPoolsEnter
CreateSNATIPPools ${TEST NAME} 1 ${iplist} j=2
SNATIPDelete ${TEST NAME} Name
CreateSNATIPPoolsHistoryActiveIP
[Tags] Positive UI Settings SNATIPPools
${ip}= SearchHistoryActiveIP 1
${iplist} create list ${ip}
CreateSNATIPPools ${TEST NAME} 2 ${iplist}
SNATIPDelete ${TEST NAME} Name
# CreateSNATIPPoolsHistoryActiveIP
# [Tags] Positive UI Settings SNATIPPools
# ${ip}= SearchHistoryActiveIP 1
# ${iplist} create list ${ip}
# CreateSNATIPPools ${TEST NAME} 2 ${iplist}
# SNATIPDelete ${TEST NAME} Name
EditSNATIPPoolsName
[Tags] Positive name Settings SNATIPPools