根据界面调整,修改UI自动化定位

This commit is contained in:
byb11
2021-06-17 14:17:39 +08:00
parent 4d89fbf79a
commit 112c0a827b
12 changed files with 69 additions and 70 deletions

View File

@@ -117,7 +117,7 @@ DecryptionKeyringsEditSearchName
DecryptionKeyringsEditDefaultCertificate
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
Settings-Search 1 id
EditDefaultCertificate 220
Settings-Search 1 id
@@ -137,13 +137,13 @@ DecryptionKeyringsDownload
# DecryptionKeyringsTurnPage
# [Tags] Positive UI Settings DecryptionKeyrings
# OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
# OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
# TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[4]/div/button[1]
# ... //*[@id="app"]/div/div[3]/div[2]/div/div[2]/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
DecryptionKeyringsCertificateExpirationDelay
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] 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}
@@ -152,7 +152,7 @@ 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
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
DecryptionKeyringsSearch ${id} ${TEST NAME}
SettingsAssertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span ${id}
SettingsAssertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span ${TEST NAME}
@@ -161,52 +161,52 @@ DecryptionKeyringsAllSearch
DecryptionKeyringsPagingDisplay
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
PagingDisplay 50
DecryptionKeyringsIDSortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[1]/div/span/i Decryption Keyrings
DecryptionKeyringsNameSortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[2]/div/span/i Decryption Keyrings
DecryptionKeyringsTypeSortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[3]/div/span/i Decryption Keyrings
DecryptionKeyringsExpiryDateSortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[7]/div/span/i Decryption Keyrings
DecryptionKeyringsCRLSortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[8]/div/span/i Decryption Keyrings
DecryptionKeyringsIsssuerBySortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[9]/div/span/i Decryption Keyrings
DecryptionKeyringsIsssuerToSortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[10]/div/span/i Decryption Keyrings
DecryptionKeyringsCommonNameSortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[11]/div/span/i Decryption Keyrings
DecryptionKeyringsModifiedTimeSortButton
[Tags] Positive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[12]/div/span/i Decryption Keyrings
DecryptionKeyringsCreateNameMinSize
@@ -263,7 +263,7 @@ DecryptionKeyringsCAEntityFileCAMiddleType
DecryptionKeyringsNullName
[Tags] Negtive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
click id=app_create
sleep ${sleep_min}
click id=keyringsadd_sub
@@ -277,7 +277,7 @@ DecryptionKeyringsNullName
DecryptionKeyringsMaxSizeHSM
[Tags] Negtive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
click id=app_create
sleep ${sleep_min}
input id=keyringsadd_name1 DecryptionKeyringsMaxSizeHSM
@@ -295,7 +295,7 @@ DecryptionKeyringsMaxSizeHSM
DecryptionKeyringsMaxSizeCustomized
[Tags] Negtive UI Settings DecryptionKeyrings
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[2] xpath
click id=app_create
sleep ${sleep_min}
input id=keyringsadd_name1 DecryptionKeyringsMaxSizeCustomized

View File

@@ -518,13 +518,13 @@ DecryptionProfileAllCloseTLSv1.3
DecryptionProfileTurnPage
[Tags] Positive UI Settings DecryptionProfile
OpenPages //*[@id="Settings"]/ul/li[1] Three-levelMenu=//*[@id="profilesTabs"]/li[5] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[5] xpath
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/button[1]
... //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/span[2]/div/input 2 //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[2]/td[1]/div/div
DecryptionProfilePagingDisplay
[Tags] Positive UI Settings DecryptionProfile
OpenPages //*[@id="Settings"]/ul/li[1] Three-levelMenu=//*[@id="profilesTabs"]/li[5] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[5] xpath
PagingDisplay 50
DecryptionProfileNameMinSize
@@ -560,7 +560,7 @@ DecryptionProfileDeleteReferencedData
DecryptionProfileNullname
[Tags] Negtive UI Settings DecryptionProfile
OpenPages //*[@id="Settings"]/ul/li[1] Three-levelMenu=//*[@id="Settings"]/ul/li[1] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="Settings"]/ul/li[1] xpath
click id=insertAdd
sleep ${sleep_min}
click id=decryption-ok
@@ -571,7 +571,7 @@ DecryptionProfileNullname
DercryptionProfileVersionLessTLSv1.2
[Tags] Negtive UI Settings DecryptionProfile
OpenPages //*[@id="Settings"]/ul/li[1] Three-levelMenu=//*[@id="Settings"]/ul/li[1] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="Settings"]/ul/li[1] xpath
sleep ${sleep_min}
click id=insertAdd
sleep ${sleep_min}
@@ -590,7 +590,7 @@ DercryptionProfileVersionLessTLSv1.2
DercryptionProfileVersionError
[Tags] Negtive UI Settings DecryptionProfile
OpenPages //*[@id="Settings"]/ul/li[1] Three-levelMenu=//*[@id="Settings"]/ul/li[1] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="Settings"]/ul/li[1] xpath
sleep ${sleep_min}
click id=insertAdd
sleep ${sleep_min}

View File

@@ -97,13 +97,13 @@ HijackFilesDownloadFile
HijackFilesPagesTurnPage
[Tags] Positive UI Settings HijackFile
OpenPages sidebarProxy_Profiles Three-levelMenu=//*[@id="profilesTabs"]/li[3] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[3] xpath
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/button[1]
... //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/span[2]/div/input 2 //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div
HijackFilesPagingDisplay
[Tags] Positive UI Settings HijackFile
OpenPages sidebarProxy_Profiles Three-levelMenu=//*[@id="profilesTabs"]/li[3] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[3] xpath
PagingDisplay 50
HijackFilesCreateNameMinSize
@@ -154,7 +154,7 @@ HijackFilesUploadNullFile
HijackFilesUploadExceed20MFile
[Tags] Negtive html Settings HijackFile
OpenPages sidebarProxy_Profiles Three-levelMenu=//*[@id="profilesTabs"]/li[3] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[3] xpath
click id=hijackAdd
sleep ${sleep_min}
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div/div[1]/input ${path}hijack_files/Exceed20MFile.html
@@ -168,11 +168,11 @@ HijackFilesUploadTypeDoesNotMatch
InsertScritsDeleteReferencedData
[Tags] Negtive UI Settings HijackFile
DeleteReferencedData HijackFile sidebarProxy_Profiles 611 The referenced data are not allowed to delete Three-level menu=//*[@id="profilesTabs"]/li[3] xpath
DeleteReferencedData HijackFile //*[@id="Settings"]/ul/li[1] 611 The referenced data are not allowed to delete //*[@id="profilesTabs"]/li[3]
HijackFilesCreateNullName
[Tags] Negtive UI Settings HijackFile
OpenPages sidebarProxy_Profiles //*[@id="profilesTabs"]/li[3] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[3] xpath
click id=hijackAdd
sleep ${sleep}
click id=hijackAddOk1

View File

@@ -62,13 +62,13 @@ InsertScriptDownloadFile
InsertScritsPagesTurnPage
[Tags] Positive UI Settings InsertScript
OpenPages //*[@id="Settings"]/ul/li[1] Three-levelMenu=//*[@id="profilesTabs"]/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[2] xpath
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/button[1]
... //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[5]/div/span[2]/div/input 2 //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div
InsertScritsPagingDisplay
[Tags] Positive UI Settings InsertScript
OpenPages //*[@id="Settings"]/ul/li[1] Three-levelMenu=//*[@id="profilesTabs"]/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[2] xpath
PagingDisplay 50
InsertScriptCreateSpecialFileName
@@ -95,7 +95,7 @@ InsertScriptsUploadNullFile
InsertScriptsUploadExceed20MFile
[Tags] Negtive UI File Settings InsertScript
OpenPages //*[@id="Settings"]/ul/li[1] Three-levelMenu=//*[@id="profilesTabs"]/li[2] xpath
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[2] xpath
click id=insertAdd
sleep ${sleep_min}
Choose File xpath=//*[@id="insertAddUpload"]/div[1]/input ${path}insert_files\\Exceed20MFile.css
@@ -109,7 +109,7 @@ InsertScriptsFileTypeDoesNotMatch
InsertScritsCreateNullName
[Tags] Negtive UI Settings InsertScrit
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[2]
OpenPages //*[@id="Settings"]/ul/li[1] //*[@id="profilesTabs"]/li[2] xpath
click id=insertAdd
sleep ${sleep}
click id=insertAddOk1
@@ -121,4 +121,4 @@ InsertScritsCreateNullName
InsertScritsDeleteReferencedData
[Tags] Negtive UI Settings InsertScrit
DeleteReferencedData InsertScript //*[@id="Settings"]/ul/li[1] 551 The referenced data are not allowed to delete Three-level menu=//*[@id="Settings"]/ul/li[1] xpath
DeleteReferencedData InsertScript //*[@id="Settings"]/ul/li[1] 551 The referenced data are not allowed to delete //*[@id="profilesTabs"]/li[2]

View File

@@ -118,6 +118,6 @@ ResponsePagesFileTypeDoesNotMatch
ResponsePagesDeleteReferencedData
[Tags] Negtive UI Settings ResponsePages
DeleteReferencedData ResponsePage //*[@id="Settings"]/ul/li[1] 395 The referenced data are not allowed to delete
DeleteReferencedData ResponsePage //*[@id="Settings"]/ul/li[1] 395 The referenced data are not allowed to delete //*[@id="profilesTabs"]/li[1]

View File

@@ -115,7 +115,7 @@ TrafficMirrorProfilesNoInput
TrafficMirrorProfilesDeleteReferencedData
[Tags] Negtive UI Settings TrafficMirrorProfile
DeleteReferencedData TrafficMirrorProfile //*[@id="Settings"]/ul/li[1] 15 The referenced data are not allowed to delete Three-level menu=//*[@id="profilesTabs"]/li[4] xpath
DeleteReferencedData TrafficMirrorProfile //*[@id="Settings"]/ul/li[1] 15 The referenced data are not allowed to delete //*[@id="profilesTabs"]/li[4]