页面定位发生变化调整UI自动化代码

This commit is contained in:
byb11
2021-06-16 18:44:33 +08:00
parent 3007ccb543
commit 4d89fbf79a
26 changed files with 378 additions and 306 deletions

View File

@@ -8,42 +8,42 @@ Library SSHLibrary
*** Test Cases ***
CachedIntermediateCertificatesSearchID
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span
sleep ${sleep}
CachedIntermediateCertificatesSearch ${id} //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span id
CachedIntermediateCertificatesSearchSourceWebsite
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
${SourceWebsite} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/p/span
sleep ${sleep}
CachedIntermediateCertificatesSearch ${SourceWebsite} //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/p/span Source Website
CachedIntermediateCertificatesSearchCommonName
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
${CommonName} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[6]/div/div/div/p/span
sleep ${sleep}
CachedIntermediateCertificatesSearch ${CommonName} //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[6]/div/div/div/p/span CommonName
CachedIntermediateCertificatesSearchIssuer
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@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[3]/div/div/div/p/span Issuer
CachedIntermediateCertificatesSearchCertificateFingerprint
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
${CertificateFingerprint} get text //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[9]/div/div/div/p/span
sleep ${sleep}
CachedIntermediateCertificatesSearch ${CertificateFingerprint} //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[9]/div/div/div/p/span CertificateFingerprint
CachedIntermediateCertificatesDownLoad
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
Settings-Search 259 id
sleep ${sleep_min}
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div/p/i
@@ -53,58 +53,58 @@ CachedIntermediateCertificatesDownLoad
CachedIntermediateCertificatesTurnPage
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[3]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[3]/div/button[1]
... //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[3]/div/span[2]/div/input 2 //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span
CachedIntermediateCertificatesPagingDisplay
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
PagingDisplay 50
CachedIntermediateCertificatesIDSortButton
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[1]/div/span/i Cached Intermediate Certificates
CachedIntermediateCertificatesSourceWebsiteSortButton
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[2]/div/span/i Cached Intermediate Certificates
CachedIntermediateCertificatesIssuerBySortButton
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[3]/div/span/i Cached Intermediate Certificates
CachedIntermediateCertificatesIssuerToSortButton
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[4]/div/span/i Cached Intermediate Certificates
CachedIntermediateCertificatesExpiryDateSortButton
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[7]/div/span/i Cached Intermediate Certificates
CachedIntermediateCertificatesCertificateFingerprintSortButton
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[9]/div/span/i Cached Intermediate Certificates
CachedIntermediateCertificatesModifiedTimeSortButton
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[11]/div/span/i Cached Intermediate Certificates
CachedIntermediateCertificatesCreateTimeSortButton
[Tags] Positive UI Settings CachedIntermediateCertificates
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[12]/div/span/i Cached Intermediate Certificates
# CachedIntermediateCertificatesImportExpiredCertificate #导入过期证书
# [Tags] Positive UI Settings CachedIntermediateCertificates
# OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
# OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
# ${text1} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span
# Open Connection 192.168.44.11 port=22
# Login root *#00#QAZxsw@edc
@@ -116,7 +116,7 @@ CachedIntermediateCertificatesCreateTimeSortButton
# CachedIntermediateCertificatesSynchronizeVerification #验证修改证书状态 rides是否同步
# [Tags] Positive UI Settings CachedIntermediateCertificates
# OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
# OpenPages //*[@id="Settings"]/ul/li[3] //*[@id="proxyTabs"]/div/ul/li[4] xpath
# Settings-Search 1 id
# click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/span
# sleep 3