From 4f488af82425800c83b8a6b720c144f26cd308f2 Mon Sep 17 00:00:00 2001 From: byb11 Date: Wed, 14 Apr 2021 10:10:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4UI=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tsg_ui/ui_settings/DecryptionKeyringsCase.robot | 2 +- 01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot | 5 +++-- 01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot | 7 ++++--- 01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot | 6 +++--- 01-TestCase/tsg_ui/ui_settings/PacketCaptureCase.robot | 4 ++-- 01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot | 4 ++-- 01-TestCase/tsg_ui/ui_settings/SNATIPPoolsCase.robot | 6 +++--- .../tsg_ui/ui_settings/SSLDecryptionExclusionCase.robot | 4 ++-- .../tsg_ui/ui_settings/TrafficMirrorProfilesCase.robot | 4 ++-- .../ui_settings/TrustedCertificateAuthoritiesCase.robot | 2 +- 01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot | 2 +- 11 files changed, 24 insertions(+), 22 deletions(-) diff --git a/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot b/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot index 5de69dd..a30f7a3 100644 --- a/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot @@ -271,7 +271,7 @@ DecryptionKeyringsNullName ${text1} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[1]/div/div[3] ${text2} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div[2] ${text3} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[7]/div/div[2] - Should Be Equal As Strings ${text1} Please enter the content + Should Be Equal As Strings ${text1} The length of the name is at most 128 characters and cannot be less than 4 characters Should Be Equal As Strings ${text2} Type is mandatory. Should Be Equal As Strings ${text3} Type is mandatory. diff --git a/01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot b/01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot index 850c3b3..5e59395 100644 --- a/01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/DecryptionProfileCase.robot @@ -532,7 +532,7 @@ DecryptionProfileNameMinSize ${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 2341 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 @@ -566,7 +566,8 @@ DecryptionProfileNullname click id=decryption-ok sleep ${sleep_min} ${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 + Should Be Equal As Strings ${text} The length of the name is at most 128 characters and cannot be less than 4 characters + DercryptionProfileVersionLessTLSv1.2 [Tags] Negtive UI Settings DecryptionProfile diff --git a/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot b/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot index 0434d17..6fac4c3 100644 --- a/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot @@ -108,7 +108,7 @@ HijackFilesPagingDisplay HijackFilesCreateNameMinSize [Tags] Boundary UI Name Settings HijackFile - CreateHijackFiles 1 ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name + CreateHijackFiles 1234 ${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 @@ -138,7 +138,7 @@ HijackFilesSpecialFileName 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 + CreateHijackFiles 1234 ${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 @@ -179,6 +179,7 @@ HijackFilesCreateNullName sleep ${sleep_min} ${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 ${text} The length of the name is at most 128 characters and cannot be less than 4 characters Should Be Equal As Strings ${text1} Please enter the content + \ 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 89dfc34..1a0c7d3 100644 --- a/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot @@ -25,7 +25,7 @@ InsertScriptsCreateJsFileAfterLoadInsertOn InsertScriptsCreateNameMinSize [Tags] Boundary UI Name Settings InsertScript - CreateInsertScripts 1 ${path}insert_files\\Create-Insert Scripts-test.css css name + CreateInsertScripts 1234 ${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 @@ -47,7 +47,7 @@ InsertScriptsEditSearchId InsertScriptsEditSearchName [Tags] Positive UI Settings InsertScript - CreateInsertScripts 1 ${path}insert_files\\Create-Insert Scripts-test.css css name + CreateInsertScripts 1234 ${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 @@ -105,7 +105,7 @@ InsertScriptsUploadExceed20MFile InsertScriptsFileTypeDoesNotMatch [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 + UploadFilesSize InsertScripts InsertScriptsFileTypeDoesNotMatch ${path}insert_files\\Create-Insert_Scripts-test.js The length of the name is at most 128 characters and cannot be less than 4 characters InsertScritsCreateNullName [Tags] Negtive UI Settings InsertScrit diff --git a/01-TestCase/tsg_ui/ui_settings/PacketCaptureCase.robot b/01-TestCase/tsg_ui/ui_settings/PacketCaptureCase.robot index fa69075..165eb86 100644 --- a/01-TestCase/tsg_ui/ui_settings/PacketCaptureCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/PacketCaptureCase.robot @@ -137,7 +137,7 @@ PacketCaptureDeletePacket PacketCaptureCreateNameMinSize [Tag] Boundary UI IPV4 Settings PacketCapture - CreatePacketCapture 1 IPV4 ${testClentIP} TCP Kyzylorda 10 10 80 1.1.1.1 8080 + CreatePacketCapture 1234 IPV4 ${testClentIP} TCP Kyzylorda 10 10 80 1.1.1.1 8080 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] DeletePacketCapture @@ -187,7 +187,7 @@ PacketCaptureCreateALLNull ${text1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[1]/div/div[3] ${text2} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[9]/div/div[2] ${text3} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[1]/div/div[2]/form/div[10]/div/div[2] - Should Be Equal As Strings ${text1} Please enter the content + Should Be Equal As Strings ${text1} The length of the name is at most 128 characters and cannot be less than 4 characters Should Be Equal As Strings ${text2} Please enter the content Should Be Equal As Strings ${text3} Please enter the content diff --git a/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot b/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot index 77c64e2..9935142 100644 --- a/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot @@ -58,7 +58,7 @@ ResponsePagesPagingDisplay ResponsePagesCreateNameMinSize [Tags] Boundary UI name Settings ResponsePage - CreateResponsePages 1 ${path}response_pages_files\\Create-Response_Pages-test-2.htm name + CreateResponsePages 1234 ${path}response_pages_files\\Create-Response_Pages-test-2.htm name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span DeleteresinseDel @@ -96,7 +96,7 @@ ResponsePagesCreateNullNames click id=responseAddOk1 sleep ${sleep_min} ${text} get text xpath=//*[@id="policy_Manipulation_create6"]/div[2]/form/div[1]/div/div[3] - Should Be Equal As Strings ${text} Please enter the content + Should Be Equal As Strings ${text} The length of the name is at most 128 characters and cannot be less than 4 characters ResponsePageUploadNullFile [Tags] Negtive UI File Settings ResponsePages diff --git a/01-TestCase/tsg_ui/ui_settings/SNATIPPoolsCase.robot b/01-TestCase/tsg_ui/ui_settings/SNATIPPoolsCase.robot index 398ee85..f622788 100644 --- a/01-TestCase/tsg_ui/ui_settings/SNATIPPoolsCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/SNATIPPoolsCase.robot @@ -88,8 +88,8 @@ SNATIPPoolsPagingDisplay CreateSNATIPPoolsNameMinSize [Tags] Boundary UI name Settings SNATIPPools ${iplist} create list 192.168.50.35 - CreateSNATIPPools 1 1 ${iplist} - SNATIPDelete 1 Name + CreateSNATIPPools 1234 1 ${iplist} + SNATIPDelete 1234 Name CreateSNATIPPoolsNameMaxSize [Tags] Boundary UI name Settings SNATIPPools @@ -111,7 +111,7 @@ CreateSNATIPPoolsNameNull click id=wanAdd_ok sleep ${sleep_min} ${text} Get Text xpath=//*[@id="wannat_vpn_color"]/form/div[1]/div/div[2] - Should Be Equal As Strings ${text} This item is required + Should Be Equal As Strings ${text} The length of the name is at most 128 characters and cannot be less than 4 characters CreateSNATIPPoolsIpFormatError [Tags] Negtive UI Settings SNATIPPools diff --git a/01-TestCase/tsg_ui/ui_settings/SSLDecryptionExclusionCase.robot b/01-TestCase/tsg_ui/ui_settings/SSLDecryptionExclusionCase.robot index 90e76b2..41ffa6e 100644 --- a/01-TestCase/tsg_ui/ui_settings/SSLDecryptionExclusionCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/SSLDecryptionExclusionCase.robot @@ -57,7 +57,7 @@ SSLDecryptionCreateFQDNMaxSize SSLDecryptionExclusionFQDNThreeCharacters [Tags] Negtive UI Settings SSLDecryptionExclusion - CreateSSLDecryptionExclusionErrorVerification *te test //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[3]/form/div[1]/div/div[3] Content length is less than 4 + CreateSSLDecryptionExclusionErrorVerification *te test //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[3]/form/div[1]/div/div[3] The length of the name is at most 128 characters and cannot be less than 4 characters SSLDecryptionExclusionFQDN65Characters [Tags] Negtive UI Settings SSLDecryptionExclusion @@ -80,6 +80,6 @@ SSLDecryptionExclusionNullDescriptionAndFQDN sleep ${sleep} ${text1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[3]/form/div[1]/div/div[3] ${text2} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[3]/form/div[2]/div/div[2] - Should Be Equal As Strings ${text1} Please enter the content + Should Be Equal As Strings ${text1} The length of the name is at most 128 characters and cannot be less than 4 characters Should Be Equal As Strings ${text2} Please enter the content diff --git a/01-TestCase/tsg_ui/ui_settings/TrafficMirrorProfilesCase.robot b/01-TestCase/tsg_ui/ui_settings/TrafficMirrorProfilesCase.robot index 46a0ca8..eb74bc0 100644 --- a/01-TestCase/tsg_ui/ui_settings/TrafficMirrorProfilesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/TrafficMirrorProfilesCase.robot @@ -46,7 +46,7 @@ TrafficMirrorProfilesPagingDisplay TrafficMirrorProfilesCreateNameMinSize [Tags] Boundary UI vlan Settings TrafficMirrorProfile - CreateTrafficMirrorProfiles 1 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name + CreateTrafficMirrorProfiles 1234 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 @@ -109,7 +109,7 @@ TrafficMirrorProfilesNoInput ${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 ${text1} The length of the name is at most 128 characters and cannot be less than 4 characters Should Be Equal As Strings ${text2} Please select Should Be Equal As Strings ${text3} Please enter the content diff --git a/01-TestCase/tsg_ui/ui_settings/TrustedCertificateAuthoritiesCase.robot b/01-TestCase/tsg_ui/ui_settings/TrustedCertificateAuthoritiesCase.robot index 7029cd4..1693737 100644 --- a/01-TestCase/tsg_ui/ui_settings/TrustedCertificateAuthoritiesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/TrustedCertificateAuthoritiesCase.robot @@ -169,7 +169,7 @@ TrustedCertificateAuthoritiesCreateNameThreeCharacters click id=authoritiesAdd_sub sleep ${sleep_min} ${text} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[1]/div/div[3] - Should Be Equal As Strings ${text} Content length is less than 4 + Should Be Equal As Strings ${text} The length of the name is at most 128 characters and cannot be less than 4 characters TrustedCertificateAuthoritiesInportEntityCertificate [Tags] Negtive UI Settings TrustedCertificateAuthorities diff --git a/01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot b/01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot index 310ff3d..d184862 100644 --- a/01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot @@ -73,5 +73,5 @@ VPNAccountsCreateNullNameAndPassword sleep ${sleep_min} ${text1} get text xpath=//*[@id="wannat_vpn_username"]/div/div[2] ${text2} get text xpath=//*[@id="wannat_vpn_password"]/div/div[2] - Should Be Equal As Strings ${text1} This item is required + Should Be Equal As Strings ${text1} The name can be up to 64 characters in length and cannot be empty Should Be Equal As Strings ${text2} This item is required \ No newline at end of file