调整Ui自动化代码
This commit is contained in:
@@ -64,7 +64,7 @@ MyAccountEditDayExceedMax
|
|||||||
[Tags] Negtive UI Administration My Account
|
[Tags] Negtive UI Administration My Account
|
||||||
OpenMyAccountPage
|
OpenMyAccountPage
|
||||||
EditMyAccount ${username} 1111111 1111111 open 2147483648
|
EditMyAccount ${username} 1111111 1111111 open 2147483648
|
||||||
Assertion //*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[6]/div/div[2] Cannot be 0, exceed maximum 2147483647, and be empty
|
Assertion /html/body/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[6]/div/div[2] Cannot be 0, exceed maximum 2147483647, and be empty
|
||||||
|
|
||||||
MyAccountPasswordNotModified
|
MyAccountPasswordNotModified
|
||||||
[Tags] Negtive UI Administration My Account
|
[Tags] Negtive UI Administration My Account
|
||||||
@@ -77,5 +77,5 @@ MyAccountTwoPasswordsAreInconsistent
|
|||||||
[Tags] Negtive UI Administration My Account
|
[Tags] Negtive UI Administration My Account
|
||||||
OpenMyAccountPage
|
OpenMyAccountPage
|
||||||
EditMyAccount ${username} 111 111111111
|
EditMyAccount ${username} 111 111111111
|
||||||
Assertion //*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[4]/div/div[2] The two passwords are inconsistent
|
Assertion /html/body/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[4]/div/div[2] The two passwords are inconsistent
|
||||||
|
|
||||||
|
|||||||
@@ -102,28 +102,28 @@ CachedIntermediateCertificatesCreateTimeSortButton
|
|||||||
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
|
OpenPages sidebarProxy_CertificateManagement //*[@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
|
SortButton //*[@id="ly-table1-listcontent"]/div/div[2]/table/thead/tr/th[12]/div/span/i Cached Intermediate Certificates
|
||||||
|
|
||||||
CachedIntermediateCertificatesImportExpiredCertificate #导入过期证书
|
# CachedIntermediateCertificatesImportExpiredCertificate #导入过期证书
|
||||||
[Tags] Positive UI Settings CachedIntermediateCertificates
|
# [Tags] Positive UI Settings CachedIntermediateCertificates
|
||||||
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
|
# OpenPages sidebarProxy_CertificateManagement //*[@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
|
# ${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
|
# Open Connection 192.168.44.11 port=22
|
||||||
Login root *#00#QAZxsw@edc
|
# Login root *#00#QAZxsw@edc
|
||||||
Write cd /home/byb/
|
# Write cd /home/byb/
|
||||||
Write ./1111.sh
|
# Write ./1111.sh
|
||||||
sleep ${sleep}
|
# sleep ${sleep}
|
||||||
${text2} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span
|
# ${text2} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span
|
||||||
Should Be Equal As Strings ${text1} ${text2}
|
# Should Be Equal As Strings ${text1} ${text2}
|
||||||
|
|
||||||
CachedIntermediateCertificatesSynchronizeVerification #验证修改证书状态 rides是否同步
|
# CachedIntermediateCertificatesSynchronizeVerification #验证修改证书状态 rides是否同步
|
||||||
[Tags] Positive UI Settings CachedIntermediateCertificates
|
# [Tags] Positive UI Settings CachedIntermediateCertificates
|
||||||
OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
|
# OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[4] xpath
|
||||||
Settings-Search 1 id
|
# Settings-Search 1 id
|
||||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/span
|
# click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/span
|
||||||
sleep 3
|
# sleep 3
|
||||||
Open Connection ${host} port=22
|
# Open Connection ${host} port=22
|
||||||
Login root Xxg-PUB<>90
|
# Login root Xxg-PUB<>90
|
||||||
${Results} Execute Command redis-cli -h ${host} -p 7002 keys EFF*PXY_EXCH_INTERMEDIA_CERT,1
|
# ${Results} Execute Command redis-cli -h ${host} -p 7002 keys EFF*PXY_EXCH_INTERMEDIA_CERT,1
|
||||||
sleep ${sleep_min}
|
# sleep ${sleep_min}
|
||||||
Should Not Be Equal ${Results} EFFECTIVE_RULE:PXY_EXCH_INTERMEDIA_CERT,1
|
# Should Not Be Equal ${Results} EFFECTIVE_RULE:PXY_EXCH_INTERMEDIA_CERT,1
|
||||||
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/span
|
# click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/div/span
|
||||||
|
|
||||||
@@ -472,19 +472,19 @@ EditMyAccount
|
|||||||
[Documentation]
|
[Documentation]
|
||||||
...
|
...
|
||||||
sleep ${sleep_min}
|
sleep ${sleep_min}
|
||||||
input text xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[1]/div/div[1]/input ${name}
|
input text id=undefined1 ${name}
|
||||||
sleep ${sleep_min}
|
sleep ${sleep_min}
|
||||||
input text xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[3]/div/div/input ${password}
|
input text xpath=/html/body/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[3]/div/div/input ${password}
|
||||||
sleep ${sleep_min}
|
sleep ${sleep_min}
|
||||||
input text xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[4]/div/div/input ${ConfirmPassword}
|
input text xpath=/html/body/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[4]/div/div/input ${ConfirmPassword}
|
||||||
sleep ${sleep_min}
|
sleep ${sleep_min}
|
||||||
${status} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div class
|
${status} Get Element Attribute xpath=/html/body/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div class
|
||||||
run keyword if "${RequiredPasswordChange}"=="open" and "${status}"=="el-switch" run keywords sleep ${sleep_min}
|
run keyword if "${RequiredPasswordChange}"=="open" and "${status}"=="el-switch" run keywords sleep ${sleep_min}
|
||||||
... AND click element xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div/span
|
... AND click element xpath=/html/body/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div/span
|
||||||
... AND sleep ${sleep_min}
|
... AND sleep ${sleep_min}
|
||||||
... AND input text xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[6]/div/div/input ${Day}
|
... AND input text xpath=/html/body/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[6]/div/div/input ${Day}
|
||||||
run keyword if "${RequiredPasswordChange}"=="close" and "${status}"=="el-switch is-checked" run keywords sleep ${sleep_min}
|
run keyword if "${RequiredPasswordChange}"=="close" and "${status}"=="el-switch is-checked" run keywords sleep ${sleep_min}
|
||||||
... AND click element xpath=//*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div/span
|
... AND click element xpath=/html/body/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[5]/div/div/span
|
||||||
... ELSE log 不修改密码提醒按钮
|
... ELSE log 不修改密码提醒按钮
|
||||||
sleep ${sleep_min}
|
sleep ${sleep_min}
|
||||||
click element id=userOk
|
click element id=userOk
|
||||||
|
|||||||
@@ -486,7 +486,7 @@ CreateResponsePages
|
|||||||
sleep ${sleep_min}
|
sleep ${sleep_min}
|
||||||
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
click id=respinseAdd #Response Pages点击Create
|
click id=responseAdd #Response Pages点击Create
|
||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
input id=responsepages_profileName1 ${name} #输入name
|
input id=responsepages_profileName1 ${name} #输入name
|
||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
@@ -1090,9 +1090,9 @@ SSLFingerprintImportJA3
|
|||||||
sleep ${sleep_min}
|
sleep ${sleep_min}
|
||||||
click id=objectImport
|
click id=objectImport
|
||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/div[2]/div[2]/div/div[1]/div/div/div[1]/div/form/div[1]/div/div/div[1]/input ${file}
|
Choose File xpath=/html/body/div[3]/div/div[1]/div/div/div[1]/div/form/div[1]/div/div/div[1]/input ${file}
|
||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[2]/div[1]/div/div[1]/div[2]/div[2]/div/div[1]/div/div/div[1]/div/form/div[2]/div/button
|
click xpath=/html/body/div[3]/div/div[1]/div/div/div[1]/div/form/div[2]/div/button
|
||||||
sleep ${sleep}
|
sleep ${sleep}
|
||||||
|
|
||||||
|
|
||||||
@@ -2463,7 +2463,7 @@ UploadFilesSize
|
|||||||
... AND sleep ${sleep_min}
|
... AND sleep ${sleep_min}
|
||||||
... AND click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
... AND click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
|
||||||
... AND sleep ${sleep}
|
... AND sleep ${sleep}
|
||||||
... AND click id=respinseAdd #Response Pages点击Create
|
... AND click id=responseAdd #Response Pages点击Create
|
||||||
... AND sleep ${sleep}
|
... AND sleep ${sleep}
|
||||||
... AND input id=responsepages_profileName1 ${name} #输入name
|
... AND input id=responsepages_profileName1 ${name} #输入name
|
||||||
... AND sleep ${sleep}
|
... AND sleep ${sleep}
|
||||||
@@ -2670,7 +2670,7 @@ ResponsrPageCreateAndEdit
|
|||||||
OpenPages sidebarProxy_Profiles profilesTabs_Profile_ResponsePages
|
OpenPages sidebarProxy_Profiles profilesTabs_Profile_ResponsePages
|
||||||
${id} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span
|
${id} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span
|
||||||
run keyword if "${CreateOrEdit}" == "Create" run keywords sleep ${sleep_min}
|
run keyword if "${CreateOrEdit}" == "Create" run keywords sleep ${sleep_min}
|
||||||
... AND click id=respinseAdd
|
... AND click id=responseAdd
|
||||||
... AND sleep ${sleep}
|
... AND sleep ${sleep}
|
||||||
... AND input id=responsepages_profileName1 ${Name}
|
... AND input id=responsepages_profileName1 ${Name}
|
||||||
run keyword if "${CreateOrEdit}" == "Edit" run keywords sleep ${sleep_min}
|
run keyword if "${CreateOrEdit}" == "Edit" run keywords sleep ${sleep_min}
|
||||||
@@ -2696,7 +2696,7 @@ ResponsrPageCreateAndEdit
|
|||||||
|
|
||||||
ResponsrPageCreateAssert
|
ResponsrPageCreateAssert
|
||||||
[Arguments] ${search} ${Name} ${id}
|
[Arguments] ${search} ${Name} ${id}
|
||||||
Wait Until Element Is Enabled id=respinseAdd ${sleep_Wait}
|
Wait Until Element Is Enabled id=responseAdd ${sleep_Wait}
|
||||||
run keyword if "${search}"=="id" run keywords sleep ${sleep_min}
|
run keyword if "${search}"=="id" run keywords sleep ${sleep_min}
|
||||||
... AND Settings-Search ${id} ${search} #搜索框的关键字
|
... AND Settings-Search ${id} ${search} #搜索框的关键字
|
||||||
... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min}
|
... ELSE IF "${search}"=="name" run keywords sleep ${sleep_min}
|
||||||
|
|||||||
Reference in New Issue
Block a user