diff --git a/01-TestCase/tsg_ui/ui_settings/Search_Cached_Intermediate_Certificates_Case.robot b/01-TestCase/tsg_ui/ui_settings/CachedIntermediateCertificatesCase.robot similarity index 85% rename from 01-TestCase/tsg_ui/ui_settings/Search_Cached_Intermediate_Certificates_Case.robot rename to 01-TestCase/tsg_ui/ui_settings/CachedIntermediateCertificatesCase.robot index 818a999..3d801d8 100644 --- a/01-TestCase/tsg_ui/ui_settings/Search_Cached_Intermediate_Certificates_Case.robot +++ b/01-TestCase/tsg_ui/ui_settings/CachedIntermediateCertificatesCase.robot @@ -5,7 +5,8 @@ Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot Library OperatingSystem *** Test Cases *** -Search_Cached_Intermediate_Certificates-001 +CachedIntermediateCertificates-001 + [Tags] Positive UI Settings CachedIntermediateCertificates Sleep 1 click id=children6 #点击一级目录Settings Sleep 1 @@ -17,7 +18,8 @@ Search_Cached_Intermediate_Certificates-001 Sleep 2 Search-Cached Intermediate Certificates ${id} xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[10]/div/div/div id -Search_Cached_Intermediate_Certificates-002 +CachedIntermediateCertificates-002 + [Tags] Positive UI Settings CachedIntermediateCertificates Sleep 1 click id=children6 #点击一级目录Settings Sleep 1 diff --git a/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot b/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot index 89fdb27..9958fce 100644 --- a/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/DecryptionKeyringsCase.robot @@ -5,117 +5,99 @@ Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot Library OperatingSystem *** Test Cases *** -CreateDecryptionKeyringsNameMinSize - [Tags] PositiveTestCase RootCertificate Settings DecryptionKeyrings - CreateDecryptionKeyrings test ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name +DecryptionKeyringsCreateCARootAndRSA2048 + [Tags] Positive UI CARoot Settings DecryptionKeyrings + CreateDecryptionKeyrings lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 2 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + DeleteKeyrings_del +DecryptionKeyringsCreateCARootAndRSA1024 + [Tags] Positive UI CARoot Settings DecryptionKeyrings + CreateDecryptionKeyrings lyf-RF-test-002 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 2 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet0 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsNameMaxSize - [Tags] PositiveTestCase RootCertificate Settings DecryptionKeyrings - CreateDecryptionKeyrings CreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyring ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name - click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - DeleteKeyrings_del - -CreateDecryptionKeyringsNameSpecialChar - [Tags] PositiveTestCase RootCertificate Settings DecryptionKeyrings - CreateDecryptionKeyrings ВставкаСкриптов!@#$%^&(-+=‘;。,? ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name +DecryptionKeyringsCreateCARootAndSECP256r1HSM + [Tags] Positive UI CARoot Settings DecryptionKeyrings + CreateDecryptionKeyrings lyf-RF-test-003 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet2 name shift=close PrivateKeyType=HSM click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsRootCertificateAndRSA2048 - [Tags] PositiveTestCase RootCertificate Settings DecryptionKeyrings - CreateDecryptionKeyrings lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name - click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - DeleteKeyrings_del -CreateDecryptionKeyringsRootCertificateAndRSA1024 - [Tags] PositiveTestCase RootCertificate Settings DecryptionKeyrings - CreateDecryptionKeyrings lyf-RF-test-002 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet0 name - click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - DeleteKeyrings_del - -CreateDecryptionKeyringsRootCertificateAndSECP256r1 - [Tags] PositiveTestCase RootCertificate Settings DecryptionKeyrings - CreateDecryptionKeyrings lyf-RF-test-003 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet2 name - click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - DeleteKeyrings_del - -CreateDecryptionKeyringsRootCertificateAndSECP384r1 - [Tags] PositiveTestCase RootCertificate Settings DecryptionKeyrings +DecryptionKeyringsCreateCARootAndSECP384r1 + [Tags] Positive UI CARoot Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-004 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsRootCertificateOpenButton - [Tags] PositiveTestCase RootCertificate Settings DecryptionKeyrings - CreateDecryptionKeyrings lyf-RF-test-005 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3 name shift=open +DecryptionKeyringsCreateCARootOpenButtonHSM + [Tags] Positive UI CARoot Settings DecryptionKeyrings + CreateDecryptionKeyrings lyf-RF-test-005 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3 name shift=open PrivateKeyType=HSM click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsIntermediateCertificateAndSECP384r1 - [Tags] PositiveTestCase IntermediateCertificate Settings DecryptionKeyrings +DecryptionKeyringsCreateCAMiddleAndSECP384r1 + [Tags] Positive UI CAMiddle Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 23 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet3 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsIntermediateCertificateAndSECP256r1 - [Tags] PositiveTestCase IntermediateCertificate Settings DecryptionKeyrings - CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 1 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet2 name +DecryptionKeyringsCreateCAMiddleAndSECP256r1HSM + [Tags] Positive UI CAMiddle Settings DecryptionKeyrings + CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 1 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet2 name PrivateKeyType=HSM click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsIntermediateCertificateAndRSA2048 - [Tags] PositiveTestCase IntermediateCertificate Settings DecryptionKeyrings +DecryptionKeyringsCreateCAMiddleAndRSA2048 + [Tags] Positive UI CAMiddle Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet1 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsIntermediateCertificateAndRSA1024 - [Tags] PositiveTestCase IntermediateCertificate Settings DecryptionKeyrings +DecryptionKeyringsCreateCAMiddleAndRSA1024 + [Tags] Positive UI CAMiddle Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsIntermediateCertificateOpenButton - [Tags] PositiveTestCase IntermediateCertificate Settings DecryptionKeyrings +DecryptionKeyringsCreateCAMiddleOpenButtonHSM + [Tags] Positive UI CAMiddle Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name - ... open + ... open HSM click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsEnd-entityAndRSA1024 - [Tags] PositiveTestCase End-entity Settings DecryptionKeyrings +DecryptionKeyringsCreateCAEntityAndRSA1024 + [Tags] Positive UI CAEntity Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-013 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet0 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsEnd-entityAndRSA2048 - [Tags] PositiveTestCase End-entity Settings DecryptionKeyrings +DecryptionKeyringsCreateCAEntityAndRSA2048 + [Tags] Positive UI CAEntity Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-014 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet1 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsEnd-entityAndSECP256r1 - [Tags] PositiveTestCase End-entity Settings DecryptionKeyrings +DecryptionKeyringsCreateCAEntityAndSECP256r1 + [Tags] Positive UI CAEntity Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-015 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet2 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsEnd-entityAndSECP384r1 - [Tags] PositiveTestCase End-entity Settings DecryptionKeyrings +DecryptionKeyringsCreateCAEntityAndSECP384r1 + [Tags] Positive UI CAEntity Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-016 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet3 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -CreateDecryptionKeyringsEnd-entityOpenButton - [Tags] PositiveTestCase End-entity Settings DecryptionKeyrings +DecryptionKeyringsCreateCAEntityOpenButton + [Tags] Positive UI CAEntity Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-017 ${path}keyrings//end-entity//caentity.chain.pem ${path}keyrings//end-entity//caentity.key 1 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet3 name ... open click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -EditDecryptionKeyringsSearchID - [Tags] PositiveTestCase Settings DecryptionKeyrings +DecryptionKeyringsEditSearchID + [Tags] Positive UI Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span EditDecryptionKeyrings ${id} lyf-RF-edit-1 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 1 @@ -123,13 +105,31 @@ EditDecryptionKeyringsSearchID click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del -EditDecryptionKeyringsSearchName - [Tags] PositiveTestCase Settings DecryptionKeyrings +DecryptionKeyringsEditSearchName + [Tags] Positive UI Settings DecryptionKeyrings CreateDecryptionKeyrings lyf-RF-test-006 ${path}keyrings//Intermediate//camiddle.chain.pem ${path}keyrings//Intermediate//camiddle.key 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 name ${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span EditDecryptionKeyrings ${name} lyf-RF-edit-1 ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 1 ... id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteKeyrings_del + +DecryptionKeyringsCreateNameMinSize + [Tags] Boundary UI Settings DecryptionKeyrings + CreateDecryptionKeyrings test ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + DeleteKeyrings_del + +DecryptionKeyringsCreateNameMaxSize + [Tags] Boundary UI Settings DecryptionKeyrings + CreateDecryptionKeyrings CreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyringsNameMaxSizeCreateDecryptionKeyring ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + DeleteKeyrings_del + +DecryptionKeyringsNameCreateSpecialChar + [Tags] Boundary UI Settings DecryptionKeyrings + CreateDecryptionKeyrings ВставкаСкриптов!@#$%^&(-+=‘;。,? ${path}keyrings//root//ca-cer.pem ${path}keyrings//root//ca.key 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + DeleteKeyrings_del \ No newline at end of file diff --git a/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot b/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot index 6bc6b30..074526f 100644 --- a/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/HijackFilesCase.robot @@ -64,6 +64,7 @@ HijackFilesEditSearchName 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 + click id=dowmloadi 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 @@ -73,6 +74,7 @@ HijackFilesEditSearchId 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 id=dowmloadi 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 @@ -88,8 +90,11 @@ HijackFilesEditButtonStatus 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 + click id=dowmloadi 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 + HijackFilesCreateNameMinSize [Tags] Boundary UI Name Settings HijackFile CreateHijackFiles 1 ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 name diff --git a/01-TestCase/tsg_ui/ui_settings/IP_Libraries_Case.robot b/01-TestCase/tsg_ui/ui_settings/IPLibrariesCase.robot similarity index 88% rename from 01-TestCase/tsg_ui/ui_settings/IP_Libraries_Case.robot rename to 01-TestCase/tsg_ui/ui_settings/IPLibrariesCase.robot index 8b27b82..754a40c 100644 --- a/01-TestCase/tsg_ui/ui_settings/IP_Libraries_Case.robot +++ b/01-TestCase/tsg_ui/ui_settings/IPLibrariesCase.robot @@ -4,15 +4,13 @@ Resource ../../../03-Variable/bifangapivariable.txt Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot Library OperatingSystem *** Test Cases *** -IP_Libraries_Create_Country-001 - #ip段 +IPLibrariesCreateCountry-001 + [Tags] Positive UI Settings DecryptionKeyrings ${iplist} create list 10.1.1.1-20.1.1.1 20.1.1.1-30.1.1.1 - #新建国家 Create_Ip_Libraries Geo Name Country Africa 115111 L1111 ${iplist} j=2 Country=L1 Longitude=1 Latitude=2 - #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-002 +IPLibrariesCreateCountry-002 #新建ip归属地-国家(输入框最小值) #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -21,7 +19,7 @@ IP_Libraries_Create_Country-002 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-003 +IPLibrariesCreateCountry-003 #新建ip归属地-国家 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -30,7 +28,7 @@ IP_Libraries_Create_Country-003 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-004 +IPLibrariesCreateCountry-004 #新建ip归属地-国家,经纬度输入负数 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -39,7 +37,7 @@ IP_Libraries_Create_Country-004 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-005 +IPLibrariesCreateCountry-005 #新建ip归属地-国家(输入框最大值) #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -48,7 +46,7 @@ IP_Libraries_Create_Country-005 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-006 +IPLibrariesCreateCountry-006 #新建ip归属地-国家(输入多个ip组合) #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 0.0.0.0-255.255.255.255 ::-FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF 1234:3456::AAAA-AAAA:BBBB::FFFF @@ -57,7 +55,7 @@ IP_Libraries_Create_Country-006 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-007 +IPLibrariesCreateCountry-007 #新建ip归属地-城市(国家选择内置国家) #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -66,7 +64,7 @@ IP_Libraries_Create_Country-007 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-008 +IPLibrariesCreateCountry-008 #新建ip归属地-城市(国家选择非内置国家) #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -75,7 +73,7 @@ IP_Libraries_Create_Country-008 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-009 +IPLibrariesCreateCountry-009 #修改ip归属地城市 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -85,28 +83,28 @@ IP_Libraries_Create_Country-009 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-010 +IPLibrariesCreateCountry-010 #使用Geo Name为搜索条件查找ip归属地信息 ${iplist} create list 1.1.1.1-2.2.2.2 #新建国家 Create_Ip_Libraries Geo Name City 1 1811 1 ${iplist} Delete_IP_Libraries -IP_Libraries_Create_Country-011 +IPLibrariesCreateCountry-011 #使用Country为搜索条件查找ip归属地信息 ${iplist} create list 1.1.1.1-2.2.2.2 #新建国家 Create_Ip_Libraries Geo Name City 1 2841 1 ${iplist} Delete_IP_Libraries -IP_Libraries_Create_Country-012 +IPLibrariesCreateCountry-012 #使用City为搜索条件查找ip归属地信息 ${iplist} create list 1.1.1.1-2.2.2.2 #新建国家 Create_Ip_Libraries Geo Name City 1 2861 1 ${iplist} Delete_IP_Libraries -IP_Libraries_Create_Country-013 +IPLibrariesCreateCountry-013 #删除非内置的归属地信息列表 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -115,7 +113,7 @@ IP_Libraries_Create_Country-013 #删除 Delete_IP_Libraries -IP_Libraries_Create_Country-014 +IPLibrariesCreateCountry-014 #新建国家或城市,添加两个以上的iprange #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 1.2.2.2-3.2.2.2 10.10.10.10-20.20.20.20 15.15.15.15-25.25.25.25 13.13.13.13-26.26.26.26 @@ -123,12 +121,12 @@ IP_Libraries_Create_Country-014 Create_Ip_Libraries Geo Name City Algeria 1271 1 ${iplist} j=5 Longitude=-1 Latitude=12.13 Delete_IP_Libraries -IP_Libraries_Create_Country-015 +IPLibrariesCreateCountry-015 #翻页功能以及每页的归属地条数 OpenPages sidebarAdvanced Three-levelMenu=Advanced/ipLibrary Ui-Pages 5 -IP_Libraries_Create_Country-016 +IPLibrariesCreateCountry-016 #1、ip归属地新建国家或城市,经纬度输入负数和浮点数、2、ip归属地修改城市,经纬度输入负数和浮点数、 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -137,7 +135,7 @@ IP_Libraries_Create_Country-016 Edit_Ip_Libraries Geo Name 1171 Longitude=-2 Latitude=12.13 Delete_IP_Libraries -IP_Libraries_Create_Country-017 +IPLibrariesCreateCountry-017 #p归属地新建国家或者城市,Iprange中搜索框功能 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 1.2.2.2-3.2.2.2 10.10.10.10-20.20.20.20 15.15.15.15-25.25.25.25 13.13.13.13-26.26.26.26 @@ -145,35 +143,35 @@ IP_Libraries_Create_Country-017 Create_Ip_Libraries Geo Name City Algeria 1291 1 ${iplist} j=5 Longitude=-1 Latitude=12.13 Delete_IP_Libraries -IP_Libraries_Create_Country-018 +IPLibrariesCreateCountry-018 #新建国家Country输入中文 ${iplist} create list 1.1.1.1-2.2.2.2 #新建国家 Create_Ip_Libraries Geo Name Country Africa 1851 中文 ${iplist} Country=中文1 Longitude=-1 Latitude=-1 Delete_IP_Libraries -IP_Libraries_Create_Country-019 +IPLibrariesCreateCountry-019 #新建国家Country输入英文 ${iplist} create list 1.1.1.1-2.2.2.2 #新建国家 Create_Ip_Libraries Geo Name Country Africa 1851 english ${iplist} Country=english1 Longitude=-1 Latitude=-1 Delete_IP_Libraries -IP_Libraries_Create_Country-020 +IPLibrariesCreateCountry-020 #新建国家Country输入俄文 ${iplist} create list 1.1.1.1-2.2.2.2 #新建国家 Create_Ip_Libraries Geo Name Country Africa 1851 упражнение ${iplist} Country=упражнение1 Longitude=-1 Latitude=-1 Delete_IP_Libraries -IP_Libraries_Create_Country-021 +IPLibrariesCreateCountry-021 #新建国家Country输入特殊字符 ${iplist} create list 1.1.1.1-2.2.2.2 #新建国家 Create_Ip_Libraries Geo Name Country Africa 1851 @^& ${iplist} Country=@^&1 Longitude=-1 Latitude=-1 Delete_IP_Libraries -IP_Libraries_Create_Country-022 +IPLibrariesCreateCountry-022 #修改国家Country输入中文 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -182,7 +180,7 @@ IP_Libraries_Create_Country-022 Edit_Ip_Libraries Geo Name 1971 City=中文0 Delete_IP_Libraries -IP_Libraries_Create_Country-023 +IPLibrariesCreateCountry-023 #修改国家Country输入英文 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -191,7 +189,7 @@ IP_Libraries_Create_Country-023 Edit_Ip_Libraries Geo Name 1872 City=english0 Delete_IP_Libraries -IP_Libraries_Create_Country-024 +IPLibrariesCreateCountry-024 #修改国家Country输入俄文 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 @@ -199,7 +197,7 @@ IP_Libraries_Create_Country-024 Create_Ip_Libraries Geo Name Country Africa 1883 1666 ${iplist} Country=упражнение13 Longitude=-1 Latitude=12.13 Edit_Ip_Libraries Geo Name 1883 City=упражнение0 Delete_IP_Libraries -IP_Libraries_Create_Country-025 +IPLibrariesCreateCountry-025 #修改国家Country输入特殊字符 #ip段 ${iplist} create list 1.1.1.1-2.2.2.2 diff --git a/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot b/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot index da7f5a4..4595844 100644 --- a/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/InsertScriptCase.robot @@ -40,6 +40,7 @@ InsertScriptsEditSearchId 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 + click id=dowmloadi 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 @@ -55,6 +56,7 @@ InsertScriptsEditSearchName InsertScriptDownloadFile [Tags] Positive UI Settings InsertScript CreateInsertScripts lyf-test-001-css ${path}insert_files\\Create-Insert Scripts-test.css css name + click id=dowmloadi DownLoadFile ${path}insert_files\\Create-Insert Scripts-test.css ${Downloadpath}Create-Insert Scripts-test.css Delete diff --git a/01-TestCase/tsg_ui/ui_settings/Policy_Verify_Case.robot b/01-TestCase/tsg_ui/ui_settings/PolicyVerifyCase.robot similarity index 100% rename from 01-TestCase/tsg_ui/ui_settings/Policy_Verify_Case.robot rename to 01-TestCase/tsg_ui/ui_settings/PolicyVerifyCase.robot diff --git a/01-TestCase/tsg_ui/ui_settings/Proxy_TCP_Options_Case.robot b/01-TestCase/tsg_ui/ui_settings/ProxyTCPOptionsCase.robot similarity index 100% rename from 01-TestCase/tsg_ui/ui_settings/Proxy_TCP_Options_Case.robot rename to 01-TestCase/tsg_ui/ui_settings/ProxyTCPOptionsCase.robot diff --git a/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot b/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot index c800895..ec16651 100644 --- a/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/ResponsePagesCase.robot @@ -22,6 +22,7 @@ ResponsePagesEditSearchID CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/span Edit-Response-Pages ${id} lyf-Edit-test-001 ${path}response_pages_files\\Create-ResponsePages-test-1.html id + click id=dowmloadi DownLoadFile ${path}response_pages_files\\Create-ResponsePages-test-1.html ${Downloadpath}Create-ResponsePages-test-1.html click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span DeleteresinseDel @@ -31,7 +32,8 @@ ResponsePagesEditSearchName CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name ${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span Edit-Response-Pages ${name} lyf-Edit-test-007 ${path}response_pages_files\\Create-ResponsePages-test-1.html name - DownLoadFile ${path}response_pages_files\\Create-ResponsePages-test-1.html ${Downloadpath}Create-ResponsePages-test-1.html + click id=dowmloadi + DownLoadFile ${path}response_pages_files\\Create-ResponsePages-test-1.html ${Downloadpath}Create-ResponsePages-test-1.html click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span DeleteresinseDel @@ -68,6 +70,7 @@ ResponsePagesSpecialFileName ResponsePagesDownloadFile [Tags] Positive UI Settings ResponsePages CreateResponsePages Create-ResponsePagess-001 ${path}response_pages_files\\Create-ResponsePages-test.html name + click id=dowmloadi DownLoadFile ${path}response_pages_files\\Create-ResponsePages-test.html ${Downloadpath}Create-ResponsePages-test.html DeleteresinseDel diff --git a/01-TestCase/tsg_ui/ui_settings/SSLFingerprintCase.robot b/01-TestCase/tsg_ui/ui_settings/SSLFingerprintCase.robot index 7f2b020..d592d8e 100644 --- a/01-TestCase/tsg_ui/ui_settings/SSLFingerprintCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/SSLFingerprintCase.robot @@ -7,19 +7,19 @@ Library OperatingSystem *** Test Cases *** SSLFingerprintCreatePinning [Tag] Positive UI Pinning Settings SSLFingerprint - CreateSSLFingerprint a75de44db3e351bbd8d38b64c41fffff Yes JA3Hash Description=test + CreateSSLFingerprint aaaaaa4db3e351bbd8d38b64c41fffff Yes JA3Hash Description=test click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr DeleteSSLFingerprint SSLFingerprintCreateNotPinning [Tag] Positive UI NotPinning Settings SSLFingerprint - CreateSSLFingerprint a75de44db3e351bbd8d38b64c41aaaaa No JA3Hash Description=test + CreateSSLFingerprint bbbbbb4db3e351bbd8d38b64c41aaaaa No JA3Hash Description=test click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr DeleteSSLFingerprint SSLFingerprintEditPingningSearchID [Tag] Positive UI Pinning Settings SSLFingerprint - CreateSSLFingerprint a75de44db3e351bbd8d38b64c41fffff Yes JA3Hash Description=test + CreateSSLFingerprint cccccc4db3e351bbd8d38b64c41fffff Yes JA3Hash Description=test ${ID} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/div/span EditSSLFingerprint ${ID} a75de44db3e351bbd8d3ffffffffffff No id Description=test1111 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr @@ -27,8 +27,7 @@ SSLFingerprintEditPingningSearchID SSLFingerprintEditNotPingningSearchJA3Hash [Tag] Positive UI Pinning Settings SSLFingerprint - CreateSSLFingerprint a75de44db3e351bbd8d38b64c41fffff No JA3Hash Description=test - ${ID} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/div/span + CreateSSLFingerprint dddddd4db3e351bbd8d38b64c41fffff No JA3Hash Description=test EditSSLFingerprint a75de44db3e351bbd8d38b64c41fffff a75de44db3e351bbd8d3ffffffffffff Yes JA3Hash Description=test1111 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr DeleteSSLFingerprint @@ -44,9 +43,9 @@ SSLFingerprintImportUserAgent SSLFingerprintImportUserAgentExceedFour [Tag] Positive UI UserAgent Settings SSLFingerprint - CreateSSLFingerprint bff309a26951912be7dba376398abc3b No JA3Hash Description=test + CreateSSLFingerprint b32309a26951912be7dba376398abc3b No JA3Hash Description=test ${ID} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/div/span - SSLFingerprintImportUserAgent ${ID} c 4 Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Win64; x64; Trident/5.0) + SSLFingerprintImportUserAgent ${ID} ${path}SSLFingerprint_files/UserAgent.json 4 Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.2; Win64; x64; Trident/5.0) ... //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[3]/div/div/div[1]/div/div/div[1]/div/form/div[2]/div/div[1] click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr DeleteSSLFingerprint diff --git a/01-TestCase/tsg_ui/ui_settings/TrustedCertificateAuthoritiesCase.robot b/01-TestCase/tsg_ui/ui_settings/TrustedCertificateAuthoritiesCase.robot index 53c456a..710a66e 100644 --- a/01-TestCase/tsg_ui/ui_settings/TrustedCertificateAuthoritiesCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/TrustedCertificateAuthoritiesCase.robot @@ -5,44 +5,20 @@ Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot Library OperatingSystem *** Test Cases *** -CreateTrustedCertificateAuthorities - [Tags] PositiveTestCase Settings TrustedCertificateAuthorities +TrustedCertificateAuthoritiesImportCa + [Tags] Positive UI CA Settings TrustedCertificateAuthorities importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteAuthorities_del - -CreateTrustedCertificateAuthoritiesNameMinSize - [Tags] PositiveTestCase name Settings TrustedCertificateAuthorities - importTrustedCertificateAuthorities test ${path}keyrings//root//ca-cer.pem name - click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - DeleteAuthorities_del - -CreateTrustedCertificateAuthoritiesNameMaxSize - [Tags] PositiveTestCase name Settings TrustedCertificateAuthorities - importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesCreateTrustedCertificateAuthoritiesCreateTrustedCertificateAuthoritiesCreateTrustedCertificat ${path}keyrings//root//ca-cer.pem name - click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - DeleteAuthorities_del -CreateTrustedCertificateAuthoritiesNameSpecialChar - [Tags] PositiveTestCase name Settings TrustedCertificateAuthorities - importTrustedCertificateAuthorities ВставкаСкриптов!@#$%^&(-+=‘;。,? ${path}keyrings//root//ca-cer.pem name - click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - DeleteAuthorities_del - -CreateTrustedCertificateAuthoritiesImportCaroot - [Tags] PositiveTestCase Settings TrustedCertificateAuthorities +TrustedCertificateAuthoritiesImportCaroot + [Tags] Positive UI Caroot Settings TrustedCertificateAuthorities importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesImportCaroot ${path}keyrings//Intermediate//camiddle.chain.pem name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteAuthorities_del -CreateTrustedCertificateAuthoritiesFileNameSpecialChar - [Tags] PositiveTestCase name Settings TrustedCertificateAuthorities - importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesFileNameSpecialChar ${path}keyrings//root//ВставкаСкриптов!@#$%^&(-+=‘;。,?.pem name - click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - DeleteAuthorities_del - -EditTrustedCertificateAuthoritiesNameSearchID - [Tags] PositiveTestCase ID Settings TrustedCertificateAuthorities +TrustedCertificateAuthoritiesEditNameSearchID + [Tags] Positive UI ID Settings TrustedCertificateAuthorities importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span EditTrustedCertificateAuthorities ${id} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem id @@ -50,8 +26,8 @@ EditTrustedCertificateAuthoritiesNameSearchID click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteAuthorities_del -EditTrustedCertificateAuthoritiesFileSearchName - [Tags] PositiveTestCase name Settings TrustedCertificateAuthorities +TrustedCertificateAuthoritiesEditFileSearchName + [Tags] Positive UI name Settings TrustedCertificateAuthorities importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name ${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span EditTrustedCertificateAuthorities ${name} lyf-RF-test-001 ${path}keyrings//root//mesalab-ca-cert.pem name @@ -59,8 +35,8 @@ EditTrustedCertificateAuthoritiesFileSearchName click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteAuthorities_del -EditTrustedCertificateAuthoritiesSearchIssuer - [Tags] PositiveTestCase Settings TrustedCertificateAuthorities +TrustedCertificateAuthoritiesEditSearchIssuer + [Tags] Positive UI Settings TrustedCertificateAuthorities importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name ${Issuer} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/div/p/span EditTrustedCertificateAuthorities ${Issuer} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem Issuer @@ -68,8 +44,8 @@ EditTrustedCertificateAuthoritiesSearchIssuer click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteAuthorities_del -EditTrustedCertificateAuthoritiesSearchCommonName - [Tags] PositiveTestCase Settings TrustedCertificateAuthorities +TrustedCertificateAuthoritiesEditSearchCommonName + [Tags] Positive UI Settings TrustedCertificateAuthorities importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name ${CommonName} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[8]/div/div/div/p/span EditTrustedCertificateAuthorities ${CommonName} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem CommonName @@ -77,32 +53,80 @@ EditTrustedCertificateAuthoritiesSearchCommonName click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteAuthorities_del -EditTrustedCertificateAuthoritiesSearchCertificateFingerprint - [Tags] PositiveTestCase Settings TrustedCertificateAuthorities +TrustedCertificateAuthoritiesEditSearchCertificateFingerprint + [Tags] Positive UI Settings TrustedCertificateAuthorities importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name ${CertificateFingerprint} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[9]/div/div/div/p/span EditTrustedCertificateAuthorities ${CertificateFingerprint} lyf-edit-test-001 ${path}keyrings//root//ca-cer.pem CertificateFingerprint Wait Until Element Is Visible xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span 20 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span DeleteAuthorities_del + +TrustedCertificateAuthoritiesDownLoadCertificate + [Tags] Positive UI Settings TrustedCertificateAuthorities + importTrustedCertificateAuthorities lyf-RF-test-001 ${path}keyrings//root//ca-cer.pem name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div/div/p/i + DownLoadFile ${path}keyrings//root//ca-cer.pem ${DownLoadPath}ca-cer.pem + DeleteAuthorities_del + +TrustedCertificateAuthoritiesTurnPage + [Tags] Positive UI Settings TrustedCertificateAuthorities + OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath + TurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[4]/div/span[2]/div/input 2 + +TrustedCertificateAuthoritiesCreateNameMinSize + [Tags] Boundary UI name Settings TrustedCertificateAuthorities + importTrustedCertificateAuthorities test ${path}keyrings//root//ca-cer.pem name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + DeleteAuthorities_del + +TrustedCertificateAuthoritiesCreateNameMaxSize + [Tags] Boundary UI name Settings TrustedCertificateAuthorities + importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesCreateTrustedCertificateAuthoritiesCreateTrustedCertificateAuthoritiesCreateTrustedCertificat ${path}keyrings//root//ca-cer.pem name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + DeleteAuthorities_del + +TrustedCertificateAuthoritiesCreateNameSpecialChar + [Tags] Boundary UI name Settings TrustedCertificateAuthorities + importTrustedCertificateAuthorities ВставкаСкриптов!@#$%^&(-+=‘;。,? ${path}keyrings//root//ca-cer.pem name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + DeleteAuthorities_del + +TrustedCertificateAuthoritiesCreateFileNameSpecialChar + [Tags] Boundary UI name Settings TrustedCertificateAuthorities + importTrustedCertificateAuthorities CreateTrustedCertificateAuthoritiesFileNameSpecialChar ${path}keyrings//root//ВставкаСкриптов!@#$%^&(-+=‘;。,?.pem name + click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + DeleteAuthorities_del + +TrustedCertificateAuthoritiesCreateNameThreeCharacters + [Tags] Negtive UI Settings TrustedCertificateAuthorities + OpenPages sidebarProxy_CertificateManagement //*[@id="proxyTabs"]/div/ul/li[1] xpath + click id=app_create #点击Import + Sleep 2 + input id=authoritiesAdd_name 123 #输入name + sleep 1 + click id=authoritiesAdd_sub + sleep 1 + ${text} Get Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[3] + Should Be Equal As Strings ${text} Content length is less than 4 TrustedCertificateAuthoritiesInportEntityCertificate - [Tags] NegtivetestCase Settings TrustedCertificateAuthorities - importTrustedCertificateAuthoritiesErrorVerification InportEntityCertificate ${path}keyrings//end-entity//caentity.chain.pem End-entity certificate is not allowed to upload + [Tags] Negtive UI Settings TrustedCertificateAuthorities + UploadFilesSize TrustedCertificateAuthorities InportEntityCertificate ${path}keyrings//end-entity//caentity.chain.pem End-entity certificate is not allowed to upload -TrustedCertificateAuthoritiesInportNullFile - [Tags] NegtivetestCase Settings TrustedCertificateAuthorities - importTrustedCertificateAuthoritiesErrorVerification InportNullFile ${path}keyrings//root//null.pem File content is empty +TrustedCertificateAuthoritiesInportEmptyFile + [Tags] Negtive UI Settings TrustedCertificateAuthorities + UploadFilesSize TrustedCertificateAuthorities InportNullFile ${path}keyrings//root//null.pem File content is empty TrustedCertificateAuthoritiesInportErrorFile - [Tags] NegtivetestCase Settings TrustedCertificateAuthorities - importTrustedCertificateAuthoritiesErrorVerification InportErrorFile ${path}keyrings//root//Error.pem Invalid public certificate + [Tags] Negtive UI Settings TrustedCertificateAuthorities + UploadFilesSize TrustedCertificateAuthorities InportErrorFile ${path}keyrings//root//Error.pem Invalid public certificate -TrustedCertificateAuthoritiesInportDuplicateCertificate - [Tags] NegtivetestCase Settings TrustedCertificateAuthorities +TrustedCertificateAuthoritiesImportDuplicateCertificate + [Tags] Negtive UI Settings TrustedCertificateAuthorities importTrustedCertificateAuthorities InportDuplicateCertificate01 ${path}keyrings//root//ca-cer.pem name ${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span - importTrustedCertificateAuthoritiesErrorVerification InportDuplicateCertificate02 ${path}keyrings//root//ca-cer.pem Certificate already exists + UploadFilesSize TrustedCertificateAuthorities InportDuplicateCertificate02 ${path}keyrings//root//ca-cer.pem Certificate already exists click id=authoritiesAdd_cancel Settings-Search ${name} name click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span diff --git a/01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot b/01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot index 8ea7fef..6f67717 100644 --- a/01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot +++ b/01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot @@ -5,34 +5,34 @@ Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot Library OperatingSystem *** Test Cases *** -CreateVPNAccounts - [Tags] PositiveTestCase Settings VPNAccounts - CreateVPNAccounts CreateVPNAccounts 111111 name +VPNAccountsCreate + [Tags] Positive UI Settings VPNAccounts + VPNAccountsCreate VPNAccountsCreate 111111 name VPNAccountsDelete -CreateVPNAccountsNameMinSize - [Tags] PositiveTestCase name Settings VPNAccounts - CreateVPNAccounts 1 111111 name +VPNAccountsCreateNameMinSize + [Tags] Positive UI name Settings VPNAccounts + VPNAccountsCreate 1 111111 name VPNAccountsDelete -CreateVPNAccountsNameMaxSize - [Tags] PositiveTestCase name Settings VPNAccounts - CreateVPNAccounts CreateVPNAccountsNameMaxSizeCreateVPNAccountsNameMaxSizeCreateVP 111111 name +VPNAccountsCreateNameMaxSize + [Tags] Positive UI name Settings VPNAccounts + VPNAccountsCreate VPNAccountsCreateNameMaxSizeVPNAccountsCreateNameMaxSizeCreateVP 111111 name VPNAccountsDelete -CreateVPNAccountsPasswordMinSize - [Tags] PositiveTestCase Password Settings VPNAccounts - CreateVPNAccounts CreateVPNAccountsNameMaxSizeCreateVPNAccountsNameMaxSizeCreateVP 1 name +VPNAccountsCreatePasswordMinSize + [Tags] Positive UI Password Settings VPNAccounts + VPNAccountsCreate VPNAccountsCreateNameMaxSizeVPNAccountsCreateNameMaxSizeCreateVP 1 name VPNAccountsDelete -CreateVPNAccountsPasswordMaxSize - [Tags] PositiveTestCase Password Settings VPNAccounts - CreateVPNAccounts CreateVPNAccountsNameMaxSizeCreateVPNAccountsNameMaxSizeCreateVP aaaaaaaa11111111 name +VPNAccountsCreatePasswordMaxSize + [Tags] Positive UI Password Settings VPNAccounts + VPNAccountsCreate VPNAccountsCreateNameMaxSizeVPNAccountsCreateNameMaxSizeCreateVP aaaaaaaa11111111 name VPNAccountsDelete -EditVPNAccountsPassword - [Tags] PositiveTestCase Password Settings VPNAccounts - CreateVPNAccounts EditVPNAccountsName-01 111111 name +VPNAccountsEditPassword + [Tags] Positive UI Password Settings VPNAccounts + VPNAccountsCreate EditVPNAccountsName-01 111111 name EditVPNAccounts EditVPNAccountsName-01 222222 name VPNAccountsDelete diff --git a/02-Keyword/tsg_ui/setting/Settings.robot b/02-Keyword/tsg_ui/setting/Settings.robot index 6bd7733..856ac01 100644 --- a/02-Keyword/tsg_ui/setting/Settings.robot +++ b/02-Keyword/tsg_ui/setting/Settings.robot @@ -750,7 +750,7 @@ importTrustedCertificateAuthorities Sleep 1 click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities Sleep 2 - click id=Authorities_create #点击Import + click id=app_create #点击Import Sleep 2 input id=authoritiesAdd_name ${name} #输入name Sleep 2 @@ -789,16 +789,18 @@ importTrustedCertificateAuthoritiesErrorVerification Should Be Equal As Strings ${text} ${PromptInformation} #断言 CreateDecryptionKeyrings - [Arguments] ${name} ${file} ${file1} ${1or2} ${type} ${type1} ${search} - ... ${shift}=close + [Arguments] ${name} ${file} ${file1} ${ExpiryHours1or2} ${type} ${type1} ${search} + ... ${shift}=close ${PrivateKeyType}=PrivateKeyFile [Documentation] 引用次关键字,填入必填参数 ... 必填参数: ... ${name}:新建页面name输入框里的内容 ... ${file}:上传文件所在本地的路径 ... ${file1}:上传文件所在本地的路径 - ... ${1or2}:填入1 或者其他 + ... ${ExpiryHours1or2}:根证书时间填入1:自定义定义 2:原时间 ... ${type}:上传证书类型的元素 ... ${type1}:上传证书加密解密算法的元素 + ... ${shift}:是否打开客户端包含证书按钮 + ... ${PrivateKeyType}:私钥类型 #打开浏览器 #ui-login lyf 111111 Sleep 1 @@ -808,29 +810,33 @@ CreateDecryptionKeyrings Sleep 2 click xpath=//*[@id="proxyTabs"]/div/ul/li[2] #点击Decryption Keyrings sleep 1 - click id=Keyrings_create #点击Create + click id=app_create #点击Create Sleep 2 input id=keyringsadd_name ${name} #输入name Sleep 2 - Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件 + Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件 Sleep 2 - Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件 - ${select} Set Variable ${1or2} + Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件 + ${select} Set Variable ${ExpiryHours1or2} Run Keyword If '${select}'=='1' click id=keyringsadd_customized Run Keyword If '${select}'=='1' input id=reissueExpiryDate 10 sleep 1 - click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框 + click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框 sleep 1 click ${type} #选择证书类型 sleep 1 - click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框 + click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框 sleep 1 click ${type1} #选择加密解密类型 sleep 1 ${root} Set Variable ${shift} run keyword if "${root}"=="open" run keywords sleep 1 - ... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[9]/div/div/span + ... AND click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[9]/div/div/span ... ELSE IF "${root}"=="close" log "go on" + Run Keyword If '${PrivateKeyType}'=='HSM' run keywords sleep 1 + ... AND click id=privateHSM + ... AND sleep 1 + ... AND input id=keyringsadd_slotid 10 sleep 1 click id=keyringsadd_sub #点击OK缇交 Sleep 2 @@ -838,6 +844,45 @@ CreateDecryptionKeyrings Sleep 1 ${text1} Get Text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span #获取点击后页面文本信息 Should Be Equal As Strings ${text1} ${name} #断言 + +DecryptionKeyringsErrorVerification + [Arguments] ${name} ${file} ${file1} ${type} ${type1} ${Positioning} ${Assertion} + [Documentation] 用于验证导入证书和类型不匹配的错误验证 + ... 必填参数: + ... ${name}:新建页面name输入框里的内容 + ... ${file}:上传文件所在本地的路径 + ... ${file1}:上传文件所在本地的路径 + ... ${type}:上传证书类型的元素 + ... ${type1}:上传证书加密解密算法的元素 + ... ${Positioning}:获取文本的xpath定位 + ... ${Assertion}:断言信息 + Sleep 1 + click id=children6 #点击一级目录Settings + Sleep 1 + click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities + Sleep 2 + click xpath=//*[@id="proxyTabs"]/div/ul/li[2] #点击Decryption Keyrings + sleep 1 + click id=app_create #点击Create + Sleep 2 + input id=keyringsadd_name ${name} #输入name + Sleep 2 + Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[2]/div/div/div/input ${file} #上传文件 + Sleep 2 + Choose File xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[3]/div/div[2]/div/div/input ${file1} #上传文件 + sleep 1 + click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[6]/div/div/div[1]/span/span/i #点击下拉框 + sleep 1 + click ${type} #选择证书类型 + sleep 1 + click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/div[2]/form/div[7]/div/div/div[1]/span/span/i #点击下拉框 + sleep 1 + click ${type1} #选择加密解密类型 + sleep 1 + click id=keyringsadd_sub #点击OK缇交 + Sleep 2 + ${text1} Get Text xpath=${Positioning} #获取点击后页面文本信息 + Should Be Equal As Strings ${text1} ${Assertion} #断言 CreateSSLDecryptionExclusion [Arguments] ${name} ${value} ${name1} ${search} @@ -894,7 +939,7 @@ EditTrustedCertificateAuthorities sleep 1 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr #点击搜索列表 sleep 1 - click id=Authorities_edit #点击Edit按钮 + click id=appEdit #点击Edit按钮 sleep 1 Clear Element Text id=authoritiesAdd_name #清空name输入框 sleep 1 @@ -927,7 +972,7 @@ EditDecryptionKeyrings sleep 1 click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr #点击搜索列表 sleep 1 - click id=Keyrings_edit #点击Edit按钮 + click id=appEdit #点击Edit按钮 sleep 1 Clear Element Text id=keyringsadd_name #清空name输入框 sleep 1 @@ -1746,7 +1791,7 @@ Req_Res_Body \ ... AND sleep 1 \ ... AND input id=attributeValue_string ${dict}[${key}] -Create_Ip_Libraries +CreateIpLibraries [Arguments] ${type1} ${type} ${Continent/Country} ${GeoNameID} ${City} ${ip} ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null Sleep 1 click id=children6 #点击一级目录Settings @@ -1790,7 +1835,7 @@ Create_Ip_Libraries sleep 2 Should Be Equal As Strings ${GeoNameText} ${GeoNameID} #断言 -Edit_Ip_Libraries +EditIpLibraries [Arguments] ${type} ${GeoNameID} ${City}=null ${ip}=null ${j}=1 ${Country}=null ${Longitude}=null ${Latitude}=null ${type1}=null ${type2}=null click id=tagEdit #点击Edit按钮 sleep 2 @@ -1850,13 +1895,14 @@ Ip_Range_Edit_Create \ sleep 1 sleep 1 -Delete_IP_Libraries +DeleteIPLibraries click xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1] sleep 2 click id=tagDel sleep 2 click xpath=/html/body/div/div/div[3]/button[2] sleep 2 + Switch_IP_Libraries [Arguments] ${type} ${value} ${GeoName} sleep 2 @@ -1940,7 +1986,7 @@ ALL DeleteKeyrings_del sleep 2 - click id=Keyrings_del + click id=appDel sleep 2 click xpath=/html/body/div/div/div[3]/button[2] sleep 2 @@ -1975,7 +2021,7 @@ DeletetrafficMirrorDel DeleteAuthorities_del sleep 2 - click id=Authorities_del + click id=appDel sleep 2 click xpath=/html/body/div/div/div[3]/button[2] sleep 2 @@ -2068,6 +2114,19 @@ UploadFilesSize ... AND sleep 2 ... AND click id=Import_ua_Ok ... AND sleep 1 + run keyword if "${Page}" == "TrustedCertificateAuthorities" run keywords sleep 1 + ... AND click id=children6 + ... AND sleep 1 + ... AND click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities + ... AND Sleep 2 + ... AND click id=app_create #点击Import + ... AND Sleep 2 + ... AND input id=authoritiesAdd_name ${name} #输入name + ... AND Sleep 2 + ... AND Choose File xpath=//*[@id="upload_dome"]/div/input ${file} #上传文件 + ... AND Sleep 2 + ... AND click id=authoritiesAdd_sub #点击OK缇交 + ... AND Sleep 2 ${text} get text xpath=/html/body/div[last()]/p Should Be Equal As Strings ${text} ${Promptinfor} @@ -2076,8 +2135,6 @@ DownLoadFile [Documentation] ... ${UploadFilePath}:上传文件路径 ... ${DownloadFilePath}:文件下载路径 - sleep 1 - click id=dowmloadi sleep 3 ${a} get_md5_01 ${UploadFilePath} sleep 1 @@ -2085,6 +2142,8 @@ DownLoadFile sleep 1 Should Be Equal As Strings ${a} ${b} sleep 2 + Remove File ${DownloadFilePath} + sleep 2 #Run_Keyword_And_Continue_On_Failure File_Should_Exist ${DownloadFilePath} #出错后继续执行,如文件在指定路径存在则通过 DeleteReferencedData