diff --git a/01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot b/01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot index e3eeeb4..dbb3bc1 100644 --- a/01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot @@ -36,6 +36,10 @@ DercryptionProfileOpen1 ... 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} + ${dict2} Create Dictionary Common Name=1 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen2 [Tags] Positive UI ID Settings DecryptionProfile @@ -50,6 +54,10 @@ DercryptionProfileOpen2 ... 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} + ${dict2} Create Dictionary Common Name=1 Issuer=1 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen3 [Tags] Positive UI ID Settings DecryptionProfile @@ -64,6 +72,10 @@ DercryptionProfileOpen3 ... 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} + ${dict2} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen4 [Tags] Positive UI ID Settings DecryptionProfile @@ -78,6 +90,10 @@ DercryptionProfileOpen4 ... 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} + ${dict2} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen5 [Tags] Positive UI ID Settings DecryptionProfile @@ -92,6 +108,10 @@ DercryptionProfileOpen5 ... 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} + ${dict2} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen6 [Tags] Positive UI ID Settings DecryptionProfile @@ -106,6 +126,11 @@ DercryptionProfileOpen6 ... 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} + ${dict2} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1 + ... Certificate Transparency=1 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen7 [Tags] Positive UI ID Settings DecryptionProfile @@ -120,6 +145,11 @@ DercryptionProfileOpen7 ... 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} + ${dict2} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1 + ... Certificate Transparency=1 Mutual Authentication=1 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen8 [Tags] Positive UI ID Settings DecryptionProfile @@ -134,6 +164,11 @@ DercryptionProfileOpen8 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen9 [Tags] Positive UI ID Settings DecryptionProfile @@ -148,6 +183,11 @@ DercryptionProfileOpen9 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen10 [Tags] Positive UI ID Settings DecryptionProfile @@ -162,6 +202,11 @@ DercryptionProfileOpen10 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen11 [Tags] Positive UI ID Settings DecryptionProfile @@ -176,6 +221,11 @@ DercryptionProfileOpen11 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileOpen12 [Tags] Positive UI ID Settings DecryptionProfile @@ -190,6 +240,12 @@ DercryptionProfileOpen12 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id + 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 DercryptionProfileClose1 [Tags] Positive UI ID Settings DecryptionProfile @@ -204,6 +260,10 @@ DercryptionProfileClose1 ... 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} + ${dict2} Create Dictionary Common Name=0 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose2 [Tags] Positive UI ID Settings DecryptionProfile @@ -218,6 +278,10 @@ DercryptionProfileClose2 ... 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} + ${dict2} Create Dictionary Common Name=0 Issuer=0 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose3 [Tags] Positive UI ID Settings DecryptionProfile @@ -232,6 +296,10 @@ DercryptionProfileClose3 ... 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} + ${dict2} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose4 [Tags] Positive UI ID Settings DecryptionProfile @@ -246,6 +314,10 @@ DercryptionProfileClose4 ... 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} + ${dict2} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose5 [Tags] Positive UI ID Settings DecryptionProfile @@ -260,6 +332,10 @@ DercryptionProfileClose5 ... 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} + ${dict2} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose6 [Tags] Positive UI ID Settings DecryptionProfile @@ -274,6 +350,11 @@ DercryptionProfileClose5 ... 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} + ${dict2} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0 + ... Certificate Transparency=0 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose7 [Tags] Positive UI ID Settings DecryptionProfile @@ -288,6 +369,11 @@ DercryptionProfileClose5 ... 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} + ${dict2} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0 + ... Certificate Transparency=0 Mutual Authentication=0 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose8 [Tags] Positive UI ID Settings DecryptionProfile @@ -302,6 +388,11 @@ DercryptionProfileClose5 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose9 [Tags] Positive UI ID Settings DecryptionProfile @@ -316,6 +407,11 @@ DercryptionProfileClose5 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose10 [Tags] Positive UI ID Settings DecryptionProfile @@ -330,6 +426,11 @@ DercryptionProfileClose5 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose11 [Tags] Positive UI ID Settings DecryptionProfile @@ -344,6 +445,11 @@ DercryptionProfileClose5 ... 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} + ${dict2} 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 + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DercryptionProfileClose12 [Tags] Positive UI ID Settings DecryptionProfile @@ -355,9 +461,15 @@ DercryptionProfileClose5 ${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 Allow HTTP/2=0 + ... Mirror Client Versions=0 + EditDecryptionProfile ${id} EditDercryptionProfile id ${dict1} + ${dict2} 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} + DecryptionProfileButtonVerification ${dict2} ${id} id open=el-switch + 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 DecryptionProfileAllCloseSSLv3.0 [Tags] Positive UI SSLv3.0 Settings DecryptionProfile @@ -404,7 +516,6 @@ DecryptionProfileAllCloseTLSv1.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 - DecryptionProfileNameMinSize [Tags] Boundary UI name Settings DecryptionProfile ${dict} Create Dictionary Common Name=1 Issuer=1 Self-signed=1 Expiry Date=1 EV Certificat=1 @@ -467,6 +578,7 @@ DercryptionProfileVersionLessTLSv1.2 sleep 1 click id=decryption-ok ${test} get text xpath=/html/body/div[last()]/p + sleep 2 Should Be Equal As Strings ${test} HTTP/2 MUST use TLS version 1.2 or higher. DercryptionProfileVersionError @@ -486,7 +598,7 @@ DercryptionProfileVersionError click id=pro_max0 sleep 1 click id=decryption-ok + sleep 2 ${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 - \ No newline at end of file diff --git a/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot b/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot index 5166e50..da7f5a4 100644 --- a/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot @@ -49,7 +49,6 @@ InsertScriptsEditSearchName 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 - 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 diff --git a/02-Keyword/tsg_ui/login/Login.robot b/02-Keyword/tsg_ui/login/Login.robot index f184085..cd73888 100644 --- a/02-Keyword/tsg_ui/login/Login.robot +++ b/02-Keyword/tsg_ui/login/Login.robot @@ -25,6 +25,7 @@ Password-prompt ${status} Run Keyword And Return Status Page Should Contain Does the password need to be changed when the password expires? #判断页面是否包含该文本 run keyword if "${status}"=="True" run keywords Password-prompt-true ${passwd} ${day} ${editpasswd} run keyword if "${status}"=="False" log 密码未过期 + Wait Until Element Is Visible id=children6 20 Password-prompt-true [Arguments] ${passwd} ${day} ${editpasswd} diff --git a/02-Keyword/tsg_ui/setting/Settings.robot b/02-Keyword/tsg_ui/setting/Settings.robot index 9fdfc39..27bfe23 100644 --- a/02-Keyword/tsg_ui/setting/Settings.robot +++ b/02-Keyword/tsg_ui/setting/Settings.robot @@ -1294,14 +1294,30 @@ EditDecryptionProfile ... AND click id=pro_max0 ... ELSE log 错误 click id=decryption-ok - sleep 2 + Wait Until Element Is Visible id=profilesTabs_Profile_DecryptionProfile 20 Settings-Search ${id-name} ${search} #搜索框的关键字 ${name1} get text 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 Should Be Equal As Strings ${name1} ${name} - sleep 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 +DecryptionProfileButtonVerification + [Arguments] ${dict1} ${id-name} ${search} ${xpath1}=//*[@id="policy_Manipulation_create8"]/div[2]/form/div/div/label[contains(text(), " + ... ${xpath2}=")]/following-sibling::div/div + ... ${open}=el-switch is-checked + 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 + sleep 1 + click id=insertEdit + sleep 1 + ${dict} Set Variable ${dict1} + FOR ${list} ${key} IN ENUMERATE @{dict} + ${class}= Get Element Attribute xpath=${xpath1}${key}${xpath2} class + sleep 1 + Should Be Equal As Strings ${class} ${open} + END + sleep 1 + click id=decryption-ok + Wait Until Element Is Visible id=profilesTabs_Profile_DecryptionProfile 20 + Settings-Search ${id-name} ${search} + Delete sleep 2 click id=insertDel @@ -1960,13 +1976,3 @@ DeleteReferencedData ... 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} - \ No newline at end of file