1.新增Case,修改用例命名规则 2. 修改关键字

This commit is contained in:
byb11
2021-01-20 09:36:54 +08:00
parent d80da19959
commit c0a15c8c0b
6 changed files with 743 additions and 273 deletions

View File

@@ -5,62 +5,362 @@ Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
Library OperatingSystem
*** Test Cases ***
CreateDecryptionProfileNameMinSize
[Tags] PositiveTestCase name Settings DecryptionProfile
DecryptionProfilesCreateFail-close
[Tags] Positive UI name Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile 1 name ${dict}
CreateDecryptionProfile DecryptionProfilesCreateFail-close name ${dict} fail1=Fail-close
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileNameMaxSize
[Tags] PositiveTestCase name Settings DecryptionProfile
DecryptionProfilesCreatePass-through
[Tags] Positive UI name Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile CreateDecryptionProfileNameMaxSizeCreateDecryptionProfileNameMaxSizeCreateDecryptionProfileNameMaxSizeCreateDecryptionProfileNam name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllOpen
[Tags] PositiveTestCase AllOpen Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-1 name ${dict}
CreateDecryptionProfile DecryptionProfilesCreatePass-through name ${dict} fail1=Pass-through
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllClose
[Tags] PositiveTestCase AllClose Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0e
DercryptionProfileOpen1
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile lyf-test-2 name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen2
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
CreateDecryptionProfileFail-closeAllOpen
[Tags] PositiveTestCase AllOpen Fail-close Settings DecryptionProfile
DercryptionProfileOpen3
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen4
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen5
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen6
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen7
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen8
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen9
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen10
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen11
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileOpen12
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose1
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-3 name ${dict} fail1=Fail-close
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
CreateDecryptionProfilePass-throughAllOpen
[Tags] PositiveTestCase AllOpen Pass-through Settings DecryptionProfile
DercryptionProfileClose2
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-3 name ${dict} fail1=Pass-through
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
CreateDecryptionProfileAllCloseSSLv3.0
[Tags] PositiveTestCase AllClose SSLv3.0 Settings DecryptionProfile
DercryptionProfileClose3
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose4
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose5
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose6
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose7
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose8
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose9
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose10
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose11
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=1
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DercryptionProfileClose12
[Tags] Positive UI ID Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DercryptionProfile name ${dict}
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1}
DecryptionProfileAllCloseSSLv3.0
[Tags] Positive UI SSLv3.0 Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
@@ -68,8 +368,8 @@ CreateDecryptionProfileAllCloseSSLv3.0
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllCloseTLSv1.0
[Tags] PositiveTestCase AllClose TLSv1.0 Settings DecryptionProfile
DecryptionProfileAllCloseTLSv1.0
[Tags] Positive UI TLSv1.0 Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
@@ -77,8 +377,8 @@ CreateDecryptionProfileAllCloseTLSv1.0
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllCloseTLSv1.1
[Tags] PositiveTestCase AllClose TLSv1.1 Settings DecryptionProfile
DecryptionProfileAllCloseTLSv1.1
[Tags] Positive UI TLSv1.1 Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
@@ -86,8 +386,8 @@ CreateDecryptionProfileAllCloseTLSv1.1
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllCloseTLSv1.2
[Tags] PositiveTestCase AllClose TLSv1.2 Settings DecryptionProfile
DecryptionProfileAllCloseTLSv1.2
[Tags] Positive UI TLSv1.2 Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
@@ -95,8 +395,8 @@ CreateDecryptionProfileAllCloseTLSv1.2
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllCloseTLSv1.3
[Tags] PositiveTestCase AllClose TLSv1.3 Settings DecryptionProfile
DecryptionProfileAllCloseTLSv1.3
[Tags] Positive UI TLSv1.3 Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
@@ -104,72 +404,89 @@ CreateDecryptionProfileAllCloseTLSv1.3
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileCertCKSAllClose
[Tags] PositiveTestCase Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-10 name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileFail-close
[Tags] PositiveTestCase Fail-close Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-11 name ${dict} fail1=Fail-close
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfilePass-through
[Tags] PositiveTestCase Pass-through Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-12 name ${dict} fail1=Pass-through
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileCertCKSCloseDBAndPVOpen
[Tags] PositiveTestCase Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=1
DecryptionProfileNameMinSize
[Tags] Boundary UI name Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-13 name ${dict}
CreateDecryptionProfile 1 name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileProtocolVersionOpen
[Tags] PositiveTestCase Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-14 name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
CreateDecryptionProfileAllowHTTP/2Open
[Tags] PositiveTestCase Settings DecryptionProfile
${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=1
CreateDecryptionProfile lyf-test-15 name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
EditDercryptionProfileSearchID
[Tags] PositiveTestCase ID Settings DecryptionProfile
DecryptionProfileNameMaxSize
[Tags] Boundary UI name Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=0
... Allow HTTP/2=0
CreateDecryptionProfile lyf-test-16 name ${dict} fail1=Pass-through min1=SSLv3.0 max1=SSLv3.0
Sleep 1
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile DecryptionProfileNameMaxSizeDecryptionProfileNameMaxSizeDecryptionProfileNameMaxSizeDecryptionProfileNameMaxSizeDecryptionProfil name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
DecryptionProfileNameSpecialChar
[Tags] Boundary UI name Settings DecryptionProfile
${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1
... Certificate Transparency=1 Mutual Authentication=1 On Protocol Errors=1 Certificate Pinning=1 Certificate Not Installed=1 Mirror Client Versions=1
... Allow HTTP/2=1
CreateDecryptionProfile 中文+absc+моряков+@#¥%……&* name ${dict}
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
Delete
DecryptionProfileNamePagesTurnPage
[Tags] Positive UI Settings DecryptionProfile
OpenPages sidebarProxy_Profiles Three-levelMenu=profilesTabs_Profile_DecryptionProfile
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[4]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[4]/div/span[2]/div/input 2
DecryptionProfileDeleteReferencedData
[Tags] Negtive UI Settings DecryptionProfile
DeleteReferencedData DecryptionProfile sidebarProxy_Profiles 641 The referenced data are not allowed to disable or delete Three-level menu=profilesTabs_Profile_DecryptionProfile
DecryptionProfileNullname
[Tags] Negtive UI Settings DecryptionProfile
OpenPages sidebarProxy_Profiles Three-levelMenu=profilesTabs_Profile_DecryptionProfile
click id=insertAdd
sleep 1
${dict1} Create Dictionary Common Name=0 Issuer=0 Self-signed=1 Expiry Date=1 EV Certificat=0
... Certificate Transparency=0 Mutual Authentication=0 On Protocol Errors=0 Certificate Pinning=0 Certificate Not Installed=0 Mirror Client Versions=0
... Allow HTTP/2=0
EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1} fail1=Fail-close min1=TLSv1.2
... max1=TLSv1.2
click id=decryption-ok
sleep 1
${text} get text xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[1]/div/div[3]
Should Be Equal As Strings ${text} Please enter the content
DercryptionProfileVersionLessTLSv1.2
[Tags] Negtive UI Settings DecryptionProfile
OpenPages sidebarProxy_Profiles Three-levelMenu=profilesTabs_Profile_DecryptionProfile
Sleep 1
click id=insertAdd
sleep 1
input id=insert_profileName DercryptionProfileVersionLessTLSv1.2
sleep 1
click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[1]/div/div/span
Sleep 1
click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[last()]/div[2]/div/div/div/span/span/i
sleep 1
click id=pro_min2
sleep 1
click id=decryption-ok
${test} get text xpath=/html/body/div[last()]/p
Should Be Equal As Strings ${test} HTTP/2 MUST use TLS version 1.2 or higher.
DercryptionProfileVersionError
[Tags] Negtive UI Settings DecryptionProfile
OpenPages sidebarProxy_Profiles Three-levelMenu=profilesTabs_Profile_DecryptionProfile
Sleep 1
click id=insertAdd
sleep 1
input id=insert_profileName DercryptionProfileVersionError
sleep 1
click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[1]/div/div/span
Sleep 1
click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[4]/div/div/span
sleep 1
click xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[7]/div[3]/div/div/div/span/span/i
sleep 1
click id=pro_max0
sleep 1
click id=decryption-ok
${test} get text xpath=/html/body/div[last()]/p
Should Be Equal As Strings ${test} In Protocol version , min version can't greater than max version

View File

@@ -5,133 +5,156 @@ Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
Library OperatingSystem
*** Test Cases ***
CreateHijackFilesTypeApk
[Tags] PositiveTestCase apk Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
HijackFilesCreateApkFile
[Tags] Positive UI File Settings HijackFile
CreateHijackFiles HijackFilesCreateApkFile ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesTypeExe
[Tags] PositiveTestCase exe Settings HijackFile
CreateHijackFiles lyf-test-002-exe ${path}hijack_files/Create-Hijack Files-test-1.exe id=application/x-msdos-program0 name
HijackFilesCreateExeFile
[Tags] Positive UI File Settings HijackFile
CreateHijackFiles HijackFilesCreateExeFile ${path}hijack_files/Create-Hijack Files-test-1.exe id=application/x-msdos-program0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesTypeGif
[Tags] PositiveTestCase gif Settings HijackFile
CreateHijackFiles lyf-test-003-gif ${path}hijack_files/Create-Hijack Files-test-2.gif id=image/gif0 name
HijackFilesCreateGifFile
[Tags] Positive UI File Settings HijackFile
CreateHijackFiles HijackFilesCreateGifFile ${path}hijack_files/Create-Hijack Files-test-2.gif id=image/gif0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesTypeHtml
[Tags] PositiveTestCase html Settings HijackFile
CreateHijackFiles lyf-test-004-html ${path}hijack_files/Create-Hijack Files-test-3.html id=text/html0 name
HijackFilesCreateHtmlFile
[Tags] Positive UI File Settings HijackFile
CreateHijackFiles HijackFilesCreateHtmlFile ${path}hijack_files/Create-Hijack Files-test-3.html id=text/html0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesTypeJpeg
[Tags] PositiveTestCase jpeg Settings HijackFile
CreateHijackFiles lyf-test-005-jpeg ${path}hijack_files/Create-Hijack Files-test-4.jpeg id=image/jpeg1 name
HijackFilesCreateJpegFile
[Tags] Positive UI File Settings HijackFile
CreateHijackFiles HijackFilesCreateJpegFile ${path}hijack_files/Create-Hijack Files-test-4.jpeg id=image/jpeg1 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesTypePng
[Tags] PositiveTestCase png Settings HijackFile
CreateHijackFiles lyf-test-006-png ${path}hijack_files/Create-Hijack Files-test-5.png id=image/png2 name
HijackFilesPngFile
[Tags] Positive UI File Settings HijackFile
CreateHijackFiles HijackFilesPngFile ${path}hijack_files/Create-Hijack Files-test-5.png id=image/png2 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesTypeSvg
[Tags] PositiveTestCase svg Settings HijackFile
CreateHijackFiles lyf-test-007-svg ${path}hijack_files/Create-Hijack Files-test-6.svg id=image/svg+xml3 name
HijackFilesCreateSvgFile
[Tags] Positive UI File Settings HijackFile
CreateHijackFiles HijackFilesCreateSvgFile ${path}hijack_files/Create-Hijack Files-test-6.svg id=image/svg+xml3 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
EditHijackFilesSearchName
[Tags] PositiveTestCase apk name Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/span
EditHijackFiles ${name} lyf-Edit-test-001 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
EditHijackFilesSearchId
[Tags] PositiveTestCase apk id Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/span
EditHijackFiles ${id} lyf-Edit-test-002 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 id
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
EditHijackFilesButtonClose
[Tags] PositiveTestCase apk id Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/span
EditHijackFiles ${id} lyf-Edit-test-003 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 id close
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesDownloadNameButtonClose
[Tags] PositiveTestCase svg Settings HijackFile ButtonClose
CreateHijackFiles lyf-test-011-svg ${path}hijack_files/Create-Hijack Files-test-6.svg id=image/svg+xml3 name close shuru
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesDownloadNameButtonOpen
[Tags] PositiveTestCase svg Settings HijackFile ButtonOpen
HijackFilesCreateButtonOpen
[Tags] Positive UI Button Settings HijackFile
CreateHijackFiles lyf-test-011-svg ${path}hijack_files/Create-Hijack Files-test-6.svg id=image/svg+xml3 name open
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesNameMinSize
[Tags] PositiveTestCase apk Settings HijackFile
HijackFilesCreateEditDownloadName
[Tags] Positive UI Name Settings HijackFile
CreateHijackFiles lyf-test-011-svg ${path}hijack_files/Create-Hijack Files-test-6.svg id=image/svg+xml3 name close shuru
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesEditSearchName
[Tags] Positive UI Settings HijackFile
CreateHijackFiles HijackFilesEditSearchName ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/span
EditHijackFiles ${name} lyf-Edit-test-001 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
DownLoadFile ${path}hijack_files/Create-Hijack Files-test.apk ${Downloadpath}Create-Hijack Files-test.apk
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesEditSearchId
[Tags] Positive UI Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/span
EditHijackFiles ${id} lyf-Edit-test-002 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 id
DownLoadFile ${path}hijack_files/Create-Hijack Files-test.apk ${Downloadpath}Create-Hijack Files-test.apk
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesEditButtonStatus
[Tags] Positive UI Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/span
EditHijackFiles ${id} lyf-Edit-test-003 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 id open
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesDownloadFile
[Tags] Positive UI Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
DownLoadFile ${path}hijack_files/Create-Hijack Files-test.apk ${Downloadpath}Create-Hijack Files-test.apk
HijackFilesCreateNameMinSize
[Tags] Boundary UI Name Settings HijackFile
CreateHijackFiles 1 ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesNameMaxSize
[Tags] PositiveTestCase apk Settings HijackFile
HijackFilesCreateNameMaxSize
[Tags] Boundary UI Name Settings HijackFile
CreateHijackFiles CreateHijackFilesNameMaxSizeCreateHijackFilesNameMaxSizeCreateHijackFilesNameMaxSizeCreateHijackFilesNameMaxSizeCreateHijackFile ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
CreateHijackFilesNameSpecialChar
[Tags] PositiveTestCase apk Settings HijackFile
HijackFilesCreateNameSpecialChar
[Tags] Boundary UI Name Settings HijackFile
CreateHijackFiles 中文+absc+моряков+@#¥%……&* ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesUpload20MFile
[Tags] PositiveTestCase html Settings HijackFile
[Tags] Boundary UI File Settings HijackFile
CreateHijackFiles HijackFilesUpload20MFileTest ${path}hijack_files/20MFile.html id=text/html0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesSpecialFileName
[Tags] PositiveTestCase html Settings HijackFile
[Tags] Boundary UI File Settings HijackFile
CreateHijackFiles HijackFilesUpload20MFileTest ${path}hijack_files/ВставкаСкриптов!@#$%^&(-+=‘;。,?.html id=text/html0 name
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesDownloadFile
[Tags] PositiveTestCase Settings HijackFile
CreateHijackFiles lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name
DownLoadFile ${Downloadpath}Create-Hijack Files-test.apk
HijackFilesCreateDownloadNameMinSize
[Tags] Boundary UI Name Settings HijackFile
CreateHijackFiles 1 ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name close shuru
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesCreateDownloadNameMaxSize
[Tags] Boundary UI Name Settings HijackFile
CreateHijackFiles CreateHijackFilesNameMaxSizeCreateHijackFilesNameMaxSizeCreateHijackFilesNameMaxSizeCreateHijackFilesNameMaxSizeCreateHijackFile ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name close shuru
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
DeletehijackDel
HijackFilesPagesTurnPage
[Tags] Positive UI Settings HijackFile
OpenPages sidebarProxy_Profiles Three-levelMenu=profilesTabs_Profile_HijackFiles
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/span[2]/div/input 2
HijackFilesUploadNullFile
[Tags] NegtivetestCase html Settings HijackFile
[Tags] Negtive html Settings HijackFile
UploadFilesSize HijackFiles HijackFilesUploadNullFile ${path}hijack_files/null.html Please choose to upload files
HijackFilesUploadExceed20MFile
[Tags] NegtivetestCase html Settings HijackFile
[Tags] Negtive html Settings HijackFile
UploadFilesSize HijackFiles HijackFilesUploadExceed20MFile ${path}hijack_files/Exceed20MFile.html File Maximum Limitation 20MB
HijackFilesUploadTypeDoesNotMatch
[Tags] NegtivetestCase Settings HijackFile
[Tags] Negtive Settings HijackFile
UploadFilesSize HijackFiles HijackFilesUploadTypeDoesNotMatch ${path}hijack_files/Create-Hijack Files-test-6.svg Type and file are not matched.
CreateHijackFilesNullFileName
[Tags] NegtivetestCase Settings HijackFile
InsertScritsDeleteReferencedData
[Tags] Negtive UI Settings HijackFile
DeleteReferencedData HijackFile sidebarProxy_Profiles 1209 The referenced data are not allowed to disable or delete Three-level menu=profilesTabs_Profile_HijackFiles
HijackFilesCreateNullName
[Tags] Negtive UI Settings HijackFile
OpenPages sidebarProxy_Profiles profilesTabs_Profile_HijackFiles
click id=hijackAdd
Sleep 2
@@ -140,4 +163,5 @@ CreateHijackFilesNullFileName
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[3]
${text1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div[2]
Should Be Equal As Strings ${text} Please enter the content
Should Be Equal As Strings ${text1} Please enter the content
Should Be Equal As Strings ${text1} Please enter the content

View File

@@ -5,95 +5,97 @@ Library OperatingSystem
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
*** Test Cases ***
CreateInsertScriptsTypeCss
[Tags] PositiveTestCase css Settings InsertScript
InsertScriptsCreateCssFile
[Tags] Positive UI File Settings InsertScript
CreateInsertScripts lyf-test-001-css ${path}insert_files\\Create-Insert Scripts-test.css css name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
CreateInsertScriptsTypeJs
[Tags] PositiveTestCase js Settings InsertScript
InsertScriptsCreateJsFileBeforePageLoad
[Tags] Positive UI File Settings InsertScript
CreateInsertScripts lyf-test-002-js ${path}insert_files\\Create-Insert_Scripts-test.js js name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
CreateInsertScriptsTypeCssNameMinSize
[Tags] PositiveTestCase css Settings InsertScript
CreateInsertScripts 1 ${path}insert_files\\Create-Insert Scripts-test.css css name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
CreateInsertScriptsTypeCssNameMaxSize
[Tags] PositiveTestCase css Settings InsertScript
CreateInsertScripts CreateInsertScriptsTypeCssNameMaxSizeCreateInsertScriptsTypeCssNameMaxSizeCreateInsertScriptsTypeCssNameMaxSizeCreateInsertScrip ${path}insert_files\\Create-Insert Scripts-test.css css name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
CreateInsertScriptsTypeJsNameMinSize
[Tags] PositiveTestCase js Settings InsertScript
CreateInsertScripts 1 ${path}insert_files\\Create-Insert_Scripts-test.js js name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
CreateInsertScriptsTypeJsNameMaxSize
[Tags] PositiveTestCase js Settings InsertScript
CreateInsertScripts CreateInsertScriptsTypeCssNameMaxSizeCreateInsertScriptsTypeCssNameMaxSizeCreateInsertScriptsTypeCssNameMaxSizeCreateInsertScrip ${path}insert_files\\Create-Insert_Scripts-test.js js name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
CreateInsertScriptsTypeJsAfterLoadInsertOn
[Tags] PositiveTestCase js Settings InsertScript
InsertScriptsCreateJsFileAfterLoadInsertOn
[Tags] Positive UI File Settings InsertScript
CreateInsertScripts CreateInsertScriptsTypeJsAfterLoadInsertOn-test ${path}insert_files\\Create-Insert_Scripts-test.js js name jstype=After Page Load
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
EditInsertScriptsTypeCssSearchId
[Tags] PositiveTestCase css Settings InsertScript
CreateInsertScripts lyf-test-001-css ${path}insert_files\\Create-Insert Scripts-test.css css name
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span
EditInsertScripts ${id} lyf-Edit-test-001 ${path}insert_files\\Create-Insert Scripts-test.css css id
InsertScriptsCreateNameMinSize
[Tags] Boundary UI Name Settings InsertScript
CreateInsertScripts 1 ${path}insert_files\\Create-Insert Scripts-test.css css name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
EditInsertScriptsTypeJsSearchName
[Tags] PositiveTestCase js Settings InsertScript
InsertScriptsCreateNameMaxSize
[Tags] Boundary UI Name Settings InsertScript
CreateInsertScripts CreateInsertScriptsTypeCssNameMaxSizeCreateInsertScriptsTypeCssNameMaxSizeCreateInsertScriptsTypeCssNameMaxSizeCreateInsertScrip ${path}insert_files\\Create-Insert Scripts-test.css css name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
InsertScriptsEditSearchId
[Tags] Positive UI Settings InsertScript
CreateInsertScripts lyf-test-001-css ${path}insert_files\\Create-Insert Scripts-test.css css name
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span
EditInsertScripts ${id} lyf-Edit-test-001 ${path}insert_files\\Create-Insert Scripts-test.css css id
DownLoadFile ${path}insert_files\\Create-Insert Scripts-test.css ${Downloadpath}Create-Insert Scripts-test.css
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
InsertScriptsEditSearchName
[Tags] Positive UI Settings InsertScript
CreateInsertScripts 1 ${path}insert_files\\Create-Insert Scripts-test.css css name
${name} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
EditInsertScripts ${name} lyf-Edit-test-008 ${path}insert_files\\Create-Insert_Scripts-test.js js name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
CreateInsertScriptSpecialFileName
[Tags] PositiveTestCase css Settings InsertScript
CreateInsertScripts CreateInsertScriptsSpecialFileName ${path}insert_files\\ВставкаСкриптов!@#$%^&(-+=‘;。,?.css css name
DownLoadFile ${path}insert_files\\Create-Insert_Scripts-test.js ${Downloadpath}Create-Insert_Scripts-test.js
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
InsertScriptDownloadFile
[Tags] PositiveTestCase Settings InsertScript
[Tags] Positive UI Settings InsertScript
CreateInsertScripts lyf-test-001-css ${path}insert_files\\Create-Insert Scripts-test.css css name
DownLoadFile ${Downloadpath}Create-Insert Scripts-test.css
DownLoadFile ${path}insert_files\\Create-Insert Scripts-test.css ${Downloadpath}Create-Insert Scripts-test.css
Delete
InsertScriptCreateSpecialFileName
[Tags] Boundary UI File Settings InsertScript
CreateInsertScripts CreateInsertScriptsSpecialFileName ${path}insert_files\\ВставкаСкриптов!@#$%^&(-+=‘;。,?.css css name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
InsertScriptsCreateNameSpecialChar
[Tags] Boundary UI Name Settings InsertScript
CreateInsertScripts 中文+absc+моряков+@#¥%……&* ${path}insert_files\\Create-Insert Scripts-test.css css name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
InsertScriptsUpload20MFile
[Tags] PositiveTestCase css Settings InsertScript
[Tags] Boundary UI File Settings InsertScript
CreateInsertScripts InsertScriptsUpload20MFile ${path}insert_files\\20MFile.css css name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
Delete
InsertScritsPagesTurnPage
[Tags] Positive UI Settings InsertScript
OpenPages sidebarProxy_Profiles Three-levelMenu=profilesTabs_Profile_Insert
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/span[2]/div/input 2
InsertScriptsUploadNullFile
[Tags] NegtivetestCase css Settings InsertScript
[Tags] Negtive UI File Settings InsertScript
UploadFilesSize InsertScripts InsertScriptsUploadNullFile ${path}insert_files\\null.css Please choose to upload files
InsertScriptsUploadExceed20MFile
[Tags] NegtivetestCase css Settings InsertScript
[Tags] Negtive UI File Settings InsertScript
UploadFilesSize InsertScripts InsertScriptsUploadNullFile ${path}insert_files\\Exceed20MFile.css File Maximum Limitation 100KB
InsertScriptsFileTypeDoesNotMatch
[Tags] NegtivetestCase css Settings InsertScript
[Tags] Negtive UI Settings InsertScript
UploadFilesSize InsertScripts InsertScriptsFileTypeDoesNotMatch ${path}insert_files\\Create-Insert_Scripts-test.js The data in the uploaded file is empty or in the wrong format
CreateInsertScritsNullFileName
[Tags] NegtivetestCase Settings InsertScrit
InsertScritsCreateNullName
[Tags] Negtive UI Settings InsertScrit
OpenPages sidebarProxy_Profiles profilesTabs_Profile_Insert
click id=insertAdd
Sleep 2
@@ -103,3 +105,7 @@ CreateInsertScritsNullFileName
${text1} get text xpath=//*[@id="policy_Manipulation_create8"]/div[2]/form/div[3]/div/div[2]
Should Be Equal As Strings ${text} Please enter the content
Should Be Equal As Strings ${text1} Please enter the content
InsertScritsDeleteReferencedData
[Tags] Negtive UI Settings InsertScrit
DeleteReferencedData InsertScript sidebarProxy_Profiles 631 The referenced data are not allowed to deleted Three-level menu=profilesTabs_Profile_Insert

View File

@@ -74,7 +74,7 @@ ResponsePagesDownloadFile
ResponsePagesTurnPage
[Tags] Positive UI Settings ResponsePages
OpenPages sidebarProxy_Profiles
Ui-Pages //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/span[2]/div/input 2
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/span[2]/div/input 2
ResponsePagesCreateNullName
[Tags] Negtive UI Name Settings ResponsePages
@@ -102,6 +102,6 @@ ResponsePagesFileTypeDoesNotMatch
ResponsePagesDeleteReferencedData
[Tags] Negtive UI Settings ResponsePages
DeleteReferencedData sidebarProxy_Profiles 527 The referenced data are not allowed to disable or delete
DeleteReferencedData ResponsePage sidebarProxy_Profiles 897 The referenced data are not allowed to disable or delete

View File

@@ -5,49 +5,116 @@ Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
Library OperatingSystem
*** Test Cases ***
CreateTrafficMirrorProfilesNameMinSize
[Tags] PositiveTestCase vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles 1 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
TrafficMirrorProfilesCreateVlan
[Tags] Positive UI vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles TrafficMirrorProfilesCreateVlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
CreateTrafficMirrorProfilesNameMaxSize
[Tags] PositiveTestCase vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles CreateTrafficMirrorProfilesNameMaxSizeCreateTrafficMirrorProfilesNameMaxSizeCreateTrafficMirrorProfilesNameMaxSizeCreateTrafficM xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
TrafficMirrorProfilesCreateMac
[Tags] Positive UI vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles TrafficMirrorProfilesCreateMac xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:11 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
CreateTrafficMirrorProfilesVlanMinSize
[Tags] PositiveTestCase vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-001-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 1 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
CreateTrafficMirrorProfilesVlanMaxSize
[Tags] PositiveTestCase vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-002-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 4094 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
CreateTrafficMirrorProfilesMac
[Tags] PositiveTestCase mac Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-003-mac xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:11 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
EditTrafficMirrorProfilesMac
[Tags] PositiveTestCase mac ID Settings TrafficMirrorProfile
TrafficMirrorProfilesEditMacSearchId
[Tags] Positive UI mac Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-004-mac xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:11 name
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span
EditTrafficMirrorProfiles ${id} lyf-Edit-test-001 xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:12 id
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
EditTrafficMirrorProfilesVlan
[Tags] PositiveTestCase vlan name Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-005-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 4094 name
TrafficMirrorProfilesEditVlanSearchName
[Tags] Positive UI vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-005-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 88 name
${name} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
EditTrafficMirrorProfiles ${name} lyf-Edit-test-002 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
TrafficMirrorProfilesCreateNameMinSize
[Tags] Boundary UI vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles 1 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
TrafficMirrorProfilesCreateNameMaxSize
[Tags] Boundary UI vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles CreateTrafficMirrorProfilesNameMaxSizeCreateTrafficMirrorProfilesNameMaxSizeCreateTrafficMirrorProfilesNameMaxSizeCreateTrafficM xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
TrafficMirrorProfilesCreateNameSpecialChar
[Tags] Boundary UI vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles 中文+absc+моряков+@#¥%……&* xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
TrafficMirrorProfilesCreateVlanMinSize
[Tags] Boundary UI vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-001-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 1 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
TrafficMirrorProfilesCreateVlanMaxSize
[Tags] Boundary UI vlan Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-002-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 4094 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
TrafficMirrorProfilesCreateMacMinSize
[Tags] Boundary UI mac Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-001-mac xpath=/html/body/div/div[1]/div[1]/ul/li[2] 00:00:00:00:00:00 name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
TrafficMirrorProfilesCreateMacMaxSize
[Tags] Boundary UI mac Settings TrafficMirrorProfile
CreateTrafficMirrorProfiles lyf-test-002-mac xpath=/html/body/div/div[1]/div[1]/ul/li[2] FF:FF:FF:FF:FF:FF name
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
DeletetrafficMirrorDel
TrafficMirrorProfilesPagesTurnPage
[Tags] Positive UI Settings TrafficMirrorProfile
OpenPages sidebarProxy_Profiles Three-levelMenu=profilesTabs_Profile_TrafficMirrorProfiles
TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/span[2]/div/input 2
TrafficMirrorProfilesCreateErrorVlan_1
[Tags] Negtive UI vlan Settings TrafficMirrorProfile
TrafficMirrorProfilesValidationError TrafficMirrorProfilesCreateErrorVlan_1 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 0 The value range of vlan is 1-4094
TrafficMirrorProfilesCreateErrorVlan_2
[Tags] Negtive UI vlan Settings TrafficMirrorProfile
TrafficMirrorProfilesValidationError TrafficMirrorProfilesCreateErrorVlan_1 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 4095 The value range of vlan is 1-4094
TrafficMirrorProfilesCreateErrorMac
[Tags] Negtive UI mac Settings TrafficMirrorProfile
TrafficMirrorProfilesValidationError TrafficMirrorProfilesCreateErrorVlan_1 xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:111 Invalid mirror destination MAC address.
TrafficMirrorProfilesNoInput
[Tags] Negtive UI Settings TrafficMirrorProfile
OpenPages sidebarProxy_Profiles Three-levelMenu=profilesTabs_Profile_TrafficMirrorProfiles
sleep 1
click id=trafficMirrorAdd
sleep 1
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1]
sleep 3
${text1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[3]
${text2} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div[2]
${text3} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]
Should Be Equal As Strings ${text1} Please enter the name.
Should Be Equal As Strings ${text2} Please select
Should Be Equal As Strings ${text3} Please enter the content
TrafficMirrorProfilesDeleteReferencedData
[Tags] Negtive UI Settings TrafficMirrorProfile
DeleteReferencedData TrafficMirrorProfile sidebarProxy_Profiles 291 The referenced data are not allowed to disable or delete Three-level menu=profilesTabs_Profile_TrafficMirrorProfiles

View File

@@ -487,6 +487,30 @@ CreateInsertScripts
#//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name} #断言
TrafficMirrorProfilesValidationError
[Arguments] ${name} ${type} ${shuru} ${PromptInformation}
Sleep 1
click id=children6 #点击一级目录Settings
Sleep 1
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
Sleep 2
click id=profilesTabs_Profile_TrafficMirrorProfiles #点击Traffic Mirror Profiles按钮
Sleep 1
click id=trafficMirrorAdd #点击Create
Sleep 2
input id=trafficmirror_profileName ${name} #输入name
Sleep 2
click id=addrTypeChoose #点击下拉框
Sleep 2
click ${type} #选择vlan或者mac
Sleep 1
input id=trafficmirror_addrArray0 ${shuru}
sleep 2
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] #点击OK
Sleep 2
${text1} Get Text xpath=/html/body/div[last()]/p #获取点击后页面提示信息
Should Be Equal As Strings ${text1} ${PromptInformation} #断言
CreateTrafficMirrorProfiles
[Arguments] ${name} ${type} ${shuru} ${search}
Sleep 1
@@ -513,6 +537,7 @@ CreateTrafficMirrorProfiles
${text1} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span #获取点击后页面文本信息
Should Be Equal As Strings ${text1} ${name} #断言
EditInsertScripts
[Arguments] ${id-name} ${name1} ${file} ${type} ${search} ${jstype}=Before Page Load
[Documentation] 引用关键字,填入必填参数
@@ -1113,14 +1138,14 @@ Min_max_version
... AND click id=pro_max0
... ELSE log 错误
CreateDecryptionProfile
CreateDecryptionProfile
[Arguments] ${name} ${search} ${dict1}=null ${fail1}=null ${min1}=null ${max1}=null
Sleep 1
click id=children6 #点击一级目录Settings
Sleep 1
click id=sidebarProxy_Profiles #点击二级目录Proxy Profiles
sleep 2
click id=profilesTabs_Profile_DecryptionProfile #点击Decryption Profile
click id=profilesTabs_Profile_DecryptionProfile #点击Decryption Profile
Sleep 1
click id=insertAdd #点击Create
Sleep 1
@@ -1732,7 +1757,7 @@ OpenPages
... AND click id=${Three-levelMenu}
sleep 5
Ui-Pages
TurnPage
[Arguments] ${NextPage} ${PreviousPage} ${JumpInput} ${pages}
[Documentation]
... ${NextPage} 下一页按钮定位
@@ -1741,12 +1766,12 @@ Ui-Pages
... ${pages} 跳转得页码
click xpath=${NextPage}
sleep 2
${text1} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/ul/li[2] class
sleep 1
${text1} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[last()]/div/ul/li[2] class
sleep 1
Should Be Equal As Strings ${text1} number active
click xpath=${PreviousPage}
sleep 2
${text2} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/ul/li[1] class
${text2} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[last()]/div/ul/li[1] class
sleep 1
Should Be Equal As Strings ${text1} number active
Clear Element Text xpath=${JumpInput}
@@ -1755,7 +1780,7 @@ Ui-Pages
sleep 2
press keys xpath=${JumpInput} ENTER
sleep 2
${text1} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[5]/div/ul/li[${pages}] class
${text1} Get Element Attribute xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[last()]/div/ul/li[${pages}] class
sleep 1
Should Be Equal As Strings ${text1} number active
@@ -1896,21 +1921,52 @@ DownLoadFile
#Run_Keyword_And_Continue_On_Failure File_Should_Exist ${DownloadFilePath} #出错后继续执行,如文件在指定路径存在则通过
DeleteReferencedData
[Arguments] ${SecondaryMenu} ${ID} ${PromptInformation}
[Documentation]
... ${SecondaryMenu}:测试也ID
[Arguments] ${Page} ${SecondaryMenu} ${ID} ${PromptInformation} ${Three-level menu}=null
[Documentation]
... ${Page}:当前页面
... ${SecondaryMenu}:二级目录
... ${ID} 查询数据的ID
... ${PromptInformation} :提示信息
... ${Three-levelMenu}:三级菜单
Sleep 1
click id=children6 #点击一级目录Settings
Sleep 1
click id=${SecondaryMenu} #点击二级目录Proxy Profiles
Sleep 2
run keyword if "${Three-levelMenu}"!="null" run keywords sleep 1
... AND click id=${Three-levelMenu}
sleep 1
Settings-Search ${ID} id
Sleep 2
click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr
sleep 1
DeleteresinseDel
run keyword if "${Page}"=="ResponsePage" run keywords sleep 1
... AND click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr
... AND sleep 1
... AND DeleteresinseDel
run keyword if "${Page}"=="InsertScript" run keywords sleep 1
... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr
... AND sleep 1
... AND Delete
run keyword if "${Page}"=="HijackFile" run keywords sleep 1
... AND click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/span
... AND sleep 1
... AND DeletehijackDel
run keyword if "${Page}"=="TrafficMirrorProfile" run keywords sleep 1
... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
... AND sleep 1
... AND DeletetrafficMirrorDel
run keyword if "${Page}"=="DecryptionProfile" run keywords sleep 1
... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div/div/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span
... AND sleep 1
... AND Delete
${text} get text xpath=/html/body/div[last()]/p
Should Be Equal As Strings ${text} ${PromptInformation}
test
[Arguments] ${list}
Create list ${p}
FOR ${i} IN @{list}
${p} Set Variable ${i}
END
log many @{p}