From 74753b01d2e8141deaffaa600eef145771bea8b8 Mon Sep 17 00:00:00 2001 From: dongxiaoyan Date: Fri, 29 May 2020 16:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=94=99=E8=AF=AF=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E6=8F=90=E4=BA=A4=E6=AD=A3=E7=A1=AE=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Object-HTTPSignature-Case.robot | 191 ++++++++++++++++++ .../ui_objects/Object_Account_Case.robot | 61 ++++++ .../ui_objects/Object_Category_Case.robot | 41 ++++ .../tsg_ui/ui_objects/Object_Fqdn_Case.robot | 51 +++++ .../tsg_ui/ui_objects/Object_Ip_Case.robot | 164 +++++++++++++++ .../ui_objects/Object_Keywords_Case.robot | 71 +++++++ .../Object_Subscriber_Id_Case.robot | 41 ++++ .../tsg_ui/ui_objects/Object_Url_Case.robot | 61 ++++++ .../Decryption_Keyrings_Case.robot | 66 ++++++ .../ui_settings/Decryption_Profile_Case.robot | 110 ++++++++++ .../ui_settings/Hijack_Files_Case.robot | 48 +++++ .../ui_settings/Insert_Scripts_Case.robot | 42 ++++ .../ui_settings/Response_Pages_Case.robot | 38 ++++ .../SSL_Decryption_Exclusion_Case.robot | 22 ++ ...ached_Intermediate_Certificates_Case.robot | 30 +++ .../Traffic_Mirror_Profiles_Case.robot | 30 +++ ...Trusted_Certificate_Authorities_Case.robot | 25 +++ 17 files changed, 1092 insertions(+) create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_objects/Object-HTTPSignature-Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Account_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Category_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Fqdn_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Ip_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Keywords_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Subscriber_Id_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Url_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/Decryption_Keyrings_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/Decryption_Profile_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/Hijack_Files_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/Insert_Scripts_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/Response_Pages_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/SSL_Decryption_Exclusion_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/Search_Cached_Intermediate_Certificates_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/Traffic_Mirror_Profiles_Case.robot create mode 100644 01-TestCase/tsg_ui/tsg_ui/ui_settings/Trusted_Certificate_Authorities_Case.robot diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object-HTTPSignature-Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object-HTTPSignature-Case.robot new file mode 100644 index 0000000..620f0de --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object-HTTPSignature-Case.robot @@ -0,0 +1,191 @@ +*** Settings *** +Force Tags tsg-ui objects HTTPSignature +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot +Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot +Library OperatingSystem + +*** Test Cases *** +create-HTTPSignature-Request-User-Agent-prefix-001 + #新建user-agent + CreatePage ReqRes create-HTTPSignature-Request-User-Agent-prefix-001 reqrestype=req reqresheader=ua keywordtext=Mozilla/5.0* + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-User-Agent-prefix-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-prefix-001 + #删除对象 + objects-delete + +create-HTTPSignature-Request-User-Agent-sub-002 + #新建user-agent + CreatePage ReqRes create-HTTPSignature-Request-User-Agent-sub-002 reqrestype=req reqresheader=ua keywordtext=Mozilla/5. + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-User-Agent-sub-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-sub-002 + #删除对象 + objects-delete + +create-HTTPSignature-Request-User-Agent-exactly-003 + #新建user-agent + CreatePage ReqRes create-HTTPSignature-Request-User-Agent-exactly-003 reqrestype=req reqresheader=ua keywordtext=$Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36 + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-User-Agent-exactly-003 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-exactly-003 + #删除对象 + objects-delete + +create-HTTPSignature-Request-User-Agent-suffix-004 + #新建user-agent + CreatePage ReqRes create-HTTPSignature-Request-User-Agent-suffix-004 reqrestype=req reqresheader=ua keywordtext=*Safari/537.36 + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-User-Agent-suffix-004 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-suffix-004 + #删除对象 + objects-delete + +create-HTTPSignature-Request-Cookie-prefix-005 + #新建cookie + CreatePage ReqRes create-HTTPSignature-Request-Cookie-prefix-005 reqrestype=req reqresheader=ck keywordtext=cookie* + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-Cookie-prefix-005 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-Cookie-prefix-005 + #删除对象 + objects-delete + +create-HTTPSignature-Request-Cookie-sub-006 + #新建cookie + CreatePage ReqRes create-HTTPSignature-Request-Cookie-sub-006 reqrestype=req reqresheader=ck keywordtext=cookie + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-Cookie-sub-006 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-Cookie-sub-006 + #删除对象 + objects-delete + +create-HTTPSignature-Request-Cookie-exactly-007 + #新建cookie + CreatePage ReqRes create-HTTPSignature-Request-Cookie-exactly-007 reqrestype=req reqresheader=ck keywordtext=$cookie + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-Cookie-exactly-007 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-Cookie-exactly-007 + #删除对象 + objects-delete + +create-HTTPSignature-Request-Cookie-suffix-008 + #新建cookie + CreatePage ReqRes create-HTTPSignature-Request-Cookie-suffix-008 reqrestype=req reqresheader=ck keywordtext=*cookie + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-Cookie-suffix-008 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-Cookie-suffix-008 + #删除对象 + objects-delete + +create-HTTPSignature-Response-Set-Cookie-prefix-009 + #新建set-cookie + CreatePage ReqRes create-HTTPSignature-Response-Set-Cookie-prefix-009 reqrestype=res reqresheader=sck keywordtext=set-cookie* + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Response-Set-Cookie-prefix-009 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Response-Set-Cookie-prefix-009 + #删除对象 + objects-delete + +create-HTTPSignature-Response-Set-Cookie-sub-010 + #新建set-cookie + CreatePage ReqRes create-HTTPSignature-Response-Set-Cookie-sub-010 reqrestype=res reqresheader=sck keywordtext=set-cookie + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Response-Set-Cookie-sub-010 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Response-Set-Cookie-sub-010 + #删除对象 + objects-delete + +create-HTTPSignature-Response-Set-Cookie-exactly-011 + #新建set-cookie + CreatePage ReqRes create-HTTPSignature-Response-Set-Cookie-exactly-011 reqrestype=res reqresheader=sck keywordtext=$set-cookie + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Response-Set-Cookie-exactly-011 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Response-Set-Cookie-exactly-011 + #删除对象 + objects-delete + +create-HTTPSignature-Response-Set-Cookie-suffix-012 + #新建set-cookie + CreatePage ReqRes create-HTTPSignature-Response-Set-Cookie-suffix-012 reqrestype=res reqresheader=sck keywordtext=*set-cookie + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Response-Set-Cookie-suffix-012 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Response-Set-Cookie-suffix-012 + #删除对象 + objects-delete + +create-HTTPSignature-Response-Content-Type-prefix-0013 + #新建content-type + CreatePage ReqRes create-HTTPSignature-Response-Content-Type-prefix-0013 reqrestype=res reqresheader=ct keywordtext=Content-Type* + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Response-Content-Type-prefix-0013 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Response-Content-Type-prefix-0013 + #删除对象 + objects-delete + +create-HTTPSignature-Response-Content-Type-sub-0014 + #新建content-type + CreatePage ReqRes create-HTTPSignature-Response-Content-Type-sub-0014 reqrestype=res reqresheader=ct keywordtext=Content-Type + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Response-Content-Type-sub-0014 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Response-Content-Type-sub-0014 + #删除对象 + objects-delete + +create-HTTPSignature-Response-Content-Type-exactly-0015 + #新建content-type + CreatePage ReqRes create-HTTPSignature-Response-Content-Type-exactly-0015 reqrestype=res reqresheader=ct keywordtext=$Content-Type + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Response-Content-Type-exactly-0015 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Response-Content-Type-exactly-0015 + #删除对象 + objects-delete + +create-HTTPSignature-Response-Content-Type-suffix-0016 + #新建content-type + CreatePage ReqRes create-HTTPSignature-Response-Content-Type-suffix-0016 reqrestype=res reqresheader=ct keywordtext=*Content-Type + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Response-Content-Type-suffix-0016 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Response-Content-Type-suffix-0016 + #删除对象 + objects-delete + +edit-HTTPSignature-017 + #新建user-agent + CreatePage ReqRes create-HTTPSignature-Request-User-Agent-prefix-001 reqrestype=req reqresheader=ua keywordtext=Mozilla/5.0* + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-Request-User-Agent-prefix-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-Request-User-Agent-prefix-001 + #修改对象 + object-edit-HTTPSignature edit-HTTPSignature-017 res sck 8f6c 6362 31 36 8fdb 5236 hex=open + #查询修改对象 + ui-object-search-name edit-HTTPSignature-017 + #删除对象 + objects-delete + +create-HTTPSignature-open-16-hex-0018 + #新建content-type + CreatePage ReqRes create-HTTPSignature-open-16-hex-0018 reqrestype=res reqresheader=ct keywordtext=*63 6f 6e 74 65 6e 74 hex=open + #验证新建是否成功 + ui-object-search-name create-HTTPSignature-open-16-hex-0018 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-HTTPSignature-open-16-hex-0018 + #删除对象 + objects-delete diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Account_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Account_Case.robot new file mode 100644 index 0000000..5a4a7e1 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Account_Case.robot @@ -0,0 +1,61 @@ +*** Settings *** +Force Tags tsg-ui objects account +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot + +*** Test Cases *** +create-account-prefix-001 + #新建Account + CreatePage Account create-account-prefix-001 keywordtext=www.* + #验证新建是否成功 + ui-object-search-name create-account-prefix-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-account-prefix-001 + #删除对象 + objects-delete + +create-account-sub-002 + #新建Account + CreatePage Account create-account-sub-002 keywordtext=1234 + #验证新建是否成功 + ui-object-search-name create-account-sub-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span[2]/span + log ${text} + #删除对象 + objects-delete + +create-account-exactly-003 + #新建Account + CreatePage Account create-account-exactly-003 keywordtext=$1234567 + #验证新建是否成功 + ui-object-search-name create-account-exactly-003 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span[2]/span + log ${text} + #删除对象 + objects-delete + +create-account-suffix-004 + #新建Account + CreatePage Account create-account-suffix-004 keywordtext=*1234567 + #验证新建是否成功 + ui-object-search-name create-account-suffix-004 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span[2]/span + log ${text} + #删除对象 + objects-delete + +edit-account-005 + #新建Account + CreatePage Account create-account-suffix-004 keywordtext=*1234567 + #验证新建是否成功 + ui-object-search-name create-account-suffix-004 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span[2]/span + log ${text} + #修改对象 + object-edit-account deit-account-005 $www.baidu.com + #查询修改对象 + ui-object-search-name deit-account-005 + #删除对象 + objects-delete diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Category_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Category_Case.robot new file mode 100644 index 0000000..2f671f0 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Category_Case.robot @@ -0,0 +1,41 @@ +*** Settings *** +Force Tags tsg-ui objects category +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot + +*** Test Cases *** +create-category-exactly-001 + #新建Category + CreatePage Category create-category-exactly-001 keywordtext=$www.baidu.com + #验证新建是否成功 + ui-object-search-name create-category-exactly-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-category-exactly-001 + #删除对象 + objects-delete + +create-category-suffix-002 + #新建Category + CreatePage Category create-category-suffix-002 keywordtext=*baidu.com + #验证新建是否成功 + ui-object-search-name create-category-suffix-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-category-suffix-002 + #删除对象 + objects-delete + +edit-category-003 + #新建Category + CreatePage Category create-category-suffix-002 keywordtext=*baidu.com + #验证新建是否成功 + ui-object-search-name create-category-suffix-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-category-suffix-002 + #修改对象 + object-edit-fqdn deit-category-003 $open.node.com + #查询修改对象 + ui-object-search-name deit-category-003 + #删除对象 + objects-delete diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Fqdn_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Fqdn_Case.robot new file mode 100644 index 0000000..45b5b47 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Fqdn_Case.robot @@ -0,0 +1,51 @@ +*** Settings *** +Force Tags tsg-ui objects fqdn +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot + +*** Test Cases *** +create-fqdn-exactly-001 + #新建fqdn,exactly + CreatePage Fqdn create-fqdn-exactly-001 keywordtext=$open.node.com + #验证新建是否成功 + ui-object-search-name create-fqdn-exactly-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-fqdn-exactly-001 + #删除对象 + objects-delete + +create-fqdn-suffix-002 + #新建fqdn,exactly + CreatePage Fqdn create-fqdn-suffix-002 keywordtext=*open.node.com + #验证新建是否成功 + ui-object-search-name create-fqdn-suffix-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-fqdn-suffix-002 + #删除对象 + objects-delete + +create-fqdn-suffix-003 + #新建fqdn,exactly + CreatePage Fqdn create-fqdn-suffix-003 keywordtext=*123-456_abc + #验证新建是否成功 + ui-object-search-name create-fqdn-suffix-003 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-fqdn-suffix-003 + #删除对象 + objects-delete + +deit-fqdn-003 + #新建fqdn,exactly + CreatePage Fqdn create-fqdn-suffix-002 keywordtext=*open.node.com + #验证新建是否成功 + ui-object-search-name create-fqdn-suffix-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-fqdn-suffix-002 + #修改对象 + object-edit-fqdn deit-fqdn-003 $open.node.com + #查询修改对象 + ui-object-search-name deit-fqdn-003 + #删除对象 + objects-delete diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Ip_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Ip_Case.robot new file mode 100644 index 0000000..2f4dea3 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Ip_Case.robot @@ -0,0 +1,164 @@ +*** Settings *** +Force Tags tsg-ui objects ip +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot + +*** Test Cases *** +create-ipv4-range-001 + #新建ip,range + CreatePage Ip create-ipv4-range-001 ipads=ipv4 ipclient=range ipclienttext1=192.168.1.1 ipclienttext2=192.168.1.1 + ... post=0/0 + #验证新建是否成功 + ui-object-search-name create-ipv4-range-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv4-range-001 + #删除对象 + objects-delete + +create-ipv4-cidr-002 + #新建ip,cidr + CreatePage Ip create-ipv4-cidr-002 ipads=ipv4 ipclient=cidr ipclienttext1=192.168.1.1 ipclienttext2=24 + ... post=65535/65535 + #验证新建是否成功 + ui-object-search-name create-ipv4-cidr-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv4-cidr-002 + #删除对象 + objects-delete + +create-ipv4-masks-003 + #新建ip,masks + CreatePage Ip create-ipv4-masks-003 ipads=ipv4 ipclient=masks ipclienttext1=192.168.1.1 ipclienttext2=255.255.255.0 + ... post=1/1 + #验证新建是否成功 + ui-object-search-name create-ipv4-masks-003 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv4-masks-003 + #删除对象 + objects-delete + +create-ipv6-range-004 + #新建ip,range + CreatePage Ip create-ipv6-range-004 ipads=ipv6 ipclient=range ipclienttext1=0:0:0:0:0:0:0:0 ipclienttext2=FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF + ... post=65535/65535 + #验证新建是否成功 + ui-object-search-name create-ipv6-range-004 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv6-range-004 + #删除对象 + objects-delete + +create-ipv6-cidr-005 + #新建ip,cidr + CreatePage Ip create-ipv6-cidr-005 ipads=ipv6 ipclient=cidr ipclienttext1=0:0:0:0:0:0:0:0 ipclienttext2=64 + ... post=1/1 + #验证新建是否成功 + ui-object-search-name create-ipv6-cidr-005 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv6-cidr-005 + #删除对象 + objects-delete + +create-ipv6-masks-006 + #新建ip,masks + CreatePage Ip create-ipv6-masks-006 ipads=ipv6 ipclient=masks ipclienttext1=0:0:0:0:0:0:0:0 ipclienttext2=0:0:0:0:0:0:0:0 + ... post=65535/65535 + #验证新建是否成功 + ui-object-search-name create-ipv6-masks-006 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv6-masks-006 + #删除对象 + objects-delete + +edit-ip-007 + #新建ip,masks + CreatePage Ip create-ipv6-masks-007 ipads=ipv6 ipclient=masks ipclienttext1=0:0:0:0:0:0:0:0 ipclienttext2=0:0:0:0:0:0:0:0 + #验证新建是否成功 + ui-object-search-name create-ipv6-masks-007 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv6-masks-007 + #修改对象 + object-edit-ip edit-ip-007 ipv4 range 192.168.100.1 192.168.100.1 post=0/0 + #查询修改对象 + ui-object-search-name edit-ip-007 + #删除对象 + objects-delete + +create-ipv6-range-008 + #新建ip,range + CreatePage Ip create-ipv6-range-008 ipads=ipv6 ipclient=range ipclienttext1=:: ipclienttext2=::1 + ... post=0/0 + #验证新建是否成功 + ui-object-search-name create-ipv6-range-008 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv6-range-008 + #删除对象 + objects-delete + +create-ipv4-range-009 + #新建ip,range + CreatePage Ip create-ipv4-range-009 ipads=ipv4 ipclient=range ipclienttext1=0.0.0.0 ipclienttext2=255.255.255.255 + ... post=65535/65535 + #验证新建是否成功 + ui-object-search-name create-ipv4-range-009 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv4-range-009 + #删除对象 + objects-delete + +create-ipv4-cidr-010 + #新建ip,cidr + CreatePage Ip create-ipv4-cidr-010 ipads=ipv4 ipclient=cidr ipclienttext1=0.0.0.0 ipclienttext2=0 + ... post=0/0 + #验证新建是否成功 + ui-object-search-name create-ipv4-cidr-010 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv4-cidr-010 + #删除对象 + objects-delete + +create-ipv4-cidr-011 + #新建ip,cidr + CreatePage Ip create-ipv4-cidr-011 ipads=ipv4 ipclient=cidr ipclienttext1=255.255.255.255 ipclienttext2=32 + ... post=65535/65535 + #验证新建是否成功 + ui-object-search-name create-ipv4-cidr-011 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv4-cidr-011 + #删除对象 + objects-delete + +create-ipv6-range-012 + #新建ip,range + CreatePage Ip create-ipv6-range-012 ipads=ipv6 ipclient=range ipclienttext1=:: ipclienttext2=FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF + ... post=0/0 + #验证新建是否成功 + ui-object-search-name create-ipv6-range-012 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv6-range-012 + #删除对象 + objects-delete + +create-ipv6-cidr-013 + #新建ip,range + CreatePage Ip create-ipv6-cidr-013 ipads=ipv6 ipclient=cidr ipclienttext1=:: ipclienttext2=0 + ... post=0/0 + #验证新建是否成功 + ui-object-search-name create-ipv6-cidr-013 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv6-cidr-013 + #删除对象 + objects-delete + +create-ipv6-cidr-014 + #新建ip,range + CreatePage Ip create-ipv6-cidr-014 ipads=ipv6 ipclient=cidr ipclienttext1=FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF:FFFF ipclienttext2=128 + ... post=65535/65535 + #验证新建是否成功 + ui-object-search-name create-ipv6-cidr-014 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-ipv6-cidr-014 + #删除对象 + objects-delete diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Keywords_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Keywords_Case.robot new file mode 100644 index 0000000..7972bb6 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Keywords_Case.robot @@ -0,0 +1,71 @@ +*** Settings *** +Force Tags tsg-ui objects keywords +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot + +*** Test Cases *** +create-keywords-prefix-001 + #新建keywords + CreatePage Key create-keywords-prefix-001 keywordtext=www.* + #验证新建是否成功 + ui-object-search-name create-keywords-prefix-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-keywords-prefix-001 + #删除对象 + objects-delete + +create-keywords-sub-002 + #新建keywords + CreatePage Key create-keywords-sub-002 keywordtext=1234@#% + #验证新建是否成功 + ui-object-search-name create-keywords-sub-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-keywords-sub-002 + #删除对象 + objects-delete + +create-keywords-exactly-003 + #新建keywords + CreatePage Key create-keywords-exactly-003 keywordtext=$支持中文 + #验证新建是否成功 + ui-object-search-name create-keywords-exactly-003 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-keywords-exactly-003 + #删除对象 + objects-delete + +create-keywords-suffix-004 + #新建keywords + CreatePage Key create-keywords-suffix-004 keywordtext=*скрипцияк. + #验证新建是否成功 + ui-object-search-name create-keywords-suffix-004 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-keywords-suffix-004 + #删除对象 + objects-delete + +edit-keywords-005 + #新建keywords + CreatePage Key create-keywords-suffix-005 keywordtext=*123456 + #验证新建是否成功 + ui-object-search-name create-keywords-suffix-005 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-keywords-suffix-005 + #修改对象 + object-edit-keywords edit-keywords-005 $www.baidu.com + #查询修改对象 + ui-object-search-name edit-keywords-005 + #删除对象 + objects-delete + +create-keywords-open-16hex-006 + #新建keywords + CreatePage Key create-keywords-open-16hex-006 keywordtext=*123456 hex=open + #验证新建是否成功 + ui-object-search-name create-keywords-open-16hex-006 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span[2]/span + log ${text} + #删除对象 + objects-delete diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Subscriber_Id_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Subscriber_Id_Case.robot new file mode 100644 index 0000000..add4bcf --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Subscriber_Id_Case.robot @@ -0,0 +1,41 @@ +*** Settings *** +Force Tags tsg-ui object sub-id +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot + +*** Test Cases *** +create-Subscriber-ID-001 + #新建sub-id + CreatePage Sub create-sub-id-001 keywordtext=$test37 + #验证新建是否成功 + ui-object-search-name create-sub-id-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-sub-id-001 + #删除对象 + objects-delete + +create-Subscriber-ID-002 + #新建sub-id + CreatePage Sub create-sub-id-002 keywordtext=$abc_%$#@123中文_скрипцияк. + #验证新建是否成功 + ui-object-search-name create-sub-id-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-sub-id-002 + #删除对象 + objects-delete + +edit-Subscriber-ID-002 + #新建sub-id + CreatePage Sub create-sub-id-001 keywordtext=$test37 + #验证新建是否成功 + ui-object-search-name create-sub-id-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span[2]/span + log ${text} + #修改对象 + object-edit-Subscriber-ID deit-sub-id-002 $test20 + #查询修改对象 + ui-object-search-name deit-sub-id-002 + #删除对象 + objects-delete diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Url_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Url_Case.robot new file mode 100644 index 0000000..0c40d8a --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_objects/Object_Url_Case.robot @@ -0,0 +1,61 @@ +*** Settings *** +Force Tags tsg-ui objects url +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Objects/ObjectPages.robot +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Objects/Objects.robot + +*** Test Cases *** +create-url-prefix-001 + #新建URL + CreatePage Url create-url-prefix-001 keywordtext=www.* + #验证新建是否成功 + ui-object-search-name create-url-prefix-001 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-url-prefix-001 + #删除对象 + objects-delete + +create-url-sub-002 + #新建sub-id + CreatePage Url create-url-sub-002 keywordtext=1234@#% + #验证新建是否成功 + ui-object-search-name create-url-sub-002 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-url-sub-002 + #删除对象 + objects-delete + +create-url-exactly-003 + #新建sub-id + CreatePage Url create-url-exactly-003 keywordtext=$支持中文 + #验证新建是否成功 + ui-object-search-name create-url-exactly-003 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-url-exactly-003 + #删除对象 + objects-delete + +create-url-suffix-004 + #新建sub-id + CreatePage Url create-url-suffix-004 keywordtext=*скрипцияк. + #验证新建是否成功 + ui-object-search-name create-url-suffix-004 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-url-suffix-004 + #删除对象 + objects-delete + +edit-url-005 + #新建sub-id + CreatePage Url create-url-suffix-005 keywordtext=*.com + #验证新建是否成功 + ui-object-search-name create-url-suffix-005 + ${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Should Be Equal As Strings ${text} create-url-suffix-005 + #修改对象 + object-edit-url deit-url-005 $www.baidu.com + #查询修改对象 + ui-object-search-name deit-url-005 + #删除对象 + objects-delete diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/Decryption_Keyrings_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Decryption_Keyrings_Case.robot new file mode 100644 index 0000000..2b805c7 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Decryption_Keyrings_Case.robot @@ -0,0 +1,66 @@ +*** Settings *** +Force Tags tsg-ui settings Decryption Keyrings +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot +Library OperatingSystem + +*** Test Cases *** +Create_Decryption_Keyrings-001 + Create-Decryption Keyrings lyf-RF-test-001 ${path}keyrings//root//tango-ca-root-01-cer.pem ${path}keyrings//root//tango-ca-root-01-key.pem 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 + +Create_Decryption_Keyrings-002 + Create-Decryption Keyrings lyf-RF-test-002 ${path}keyrings//root//tango-ca-root-01-cer.pem ${path}keyrings//root//tango-ca-root-01-key.pem 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet0 + +Create_Decryption_Keyrings-003 + Create-Decryption Keyrings lyf-RF-test-003 ${path}keyrings//root//tango-ca-root-01-cer.pem ${path}keyrings//root//tango-ca-root-01-key.pem 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet2 + +Create_Decryption_Keyrings-004 + Create-Decryption Keyrings lyf-RF-test-004 ${path}keyrings//root//tango-ca-root-01-cer.pem ${path}keyrings//root//tango-ca-root-01-key.pem 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3 + +Create_Decryption_Keyrings-005 + Create-Decryption Keyrings lyf-RF-test-005 ${path}keyrings//root//tango-ca-root-01-cer.pem ${path}keyrings//root//tango-ca-root-01-key.pem 23 id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet3 + ... open + +Create_Decryption_Keyrings-006 + Create-Decryption Keyrings lyf-RF-test-006 ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-cer.pem ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-key.pem 23 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet3 + +Create_Decryption_Keyrings-007 + Create-Decryption Keyrings lyf-RF-test-006 ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-cer.pem ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-key.pem 1 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet2 + +Create_Decryption_Keyrings-008 + Create-Decryption Keyrings lyf-RF-test-006 ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-cer.pem ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-key.pem 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet1 + +Create_Decryption_Keyrings-009 + Create-Decryption Keyrings lyf-RF-test-006 ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-cer.pem ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-key.pem 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 + +Create_Decryption_Keyrings-010 + Create-Decryption Keyrings lyf-RF-test-006 ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-cer.pem ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-key.pem 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 + ... open + +Edit_Decryption_Keyrings-011 + Create-Decryption Keyrings lyf-RF-test-006 ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-cer.pem ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-key.pem 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 + ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span + Edit-Decryption Keyrings id=input_list_li1 ${id} lyf-RF-edit-1 ${path}keyrings//root//mesalab-ca-cert.pem ${path}keyrings//root//mesalab-ca-key.pem 1 + ... id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 + +Edit_Decryption_Keyrings-012 + Create-Decryption Keyrings lyf-RF-test-006 ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-cer.pem ${path}keyrings//Intermediate//tang-ca-v3-intermediate-01-key.pem 2 id=certificateType_select1 id=keyringsadd_publicKeyAlgoSelet0 + ${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + Edit-Decryption Keyrings id=input_list_li2 ${name} lyf-RF-edit-1 ${path}keyrings//root//mesalab-ca-cert.pem ${path}keyrings//root//mesalab-ca-key.pem 1 + ... id=certificateType_select0 id=keyringsadd_publicKeyAlgoSelet1 + +Create_Decryption_Keyrings-013 + Create-Decryption Keyrings lyf-RF-test-013 ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-cer.pem ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-key.pem 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet0 + +Create_Decryption_Keyrings-014 + Create-Decryption Keyrings lyf-RF-test-014 ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-cer.pem ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-key.pem 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet1 + +Create_Decryption_Keyrings-015 + Create-Decryption Keyrings lyf-RF-test-015 ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-cer.pem ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-key.pem 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet2 + +Create_Decryption_Keyrings-016 + Create-Decryption Keyrings lyf-RF-test-016 ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-cer.pem ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-key.pem 23 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet3 + +Create_Decryption_Keyrings-017 + Create-Decryption Keyrings lyf-RF-test-017 ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-cer.pem ${path}keyrings//end-entity//tang-ca-v3-www.amazon.cn-key.pem 1 id=certificateType_select2 id=keyringsadd_publicKeyAlgoSelet3 + ... open diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/Decryption_Profile_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Decryption_Profile_Case.robot new file mode 100644 index 0000000..6f69998 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Decryption_Profile_Case.robot @@ -0,0 +1,110 @@ +*** Settings *** +Force Tags tsg-ui settings Decryption Profile +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot +Library OperatingSystem + +*** Test Cases *** +Create_Decryption_Profile-001 + ${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 + Create-Policy_Verify1 lyf-test-1 ${dict} + +Create_Decryption_Profile-002 + ${dict} Create Dictionary Common Name=0 Issuer=0 Self-signed=0 Expiry Date=0 EV Certificat=0e + ... 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 + Create-Policy_Verify1 lyf-test-2 ${dict} + +Create_Decryption_Profile-003 + ${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 + Create-Policy_Verify1 lyf-test-3 ${dict} fail1=Fail-close + +Create_Decryption_Profile-004 + ${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 + Create-Policy_Verify1 lyf-test-3 ${dict} fail1=Pass-through + +Create_Decryption_Profile-005 + ${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 + Create-Policy_Verify1 lyf-test-5 ${dict} min1=SSLv3.0 max1=SSLv3.0 + +Create_Decryption_Profile-006 + ${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 + Create-Policy_Verify1 lyf-test-6 ${dict} min1=TLSv1.0 max1=TLSv1.0 + +Create_Decryption_Profile-007 + ${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 + Create-Policy_Verify1 lyf-test-7 ${dict} min1=TLSv1.1 max1=TLSv1.1 + +Create_Decryption_Profile-008 + ${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 + Create-Policy_Verify1 lyf-test-8 ${dict} min1=TLSv1.2 max1=TLSv1.2 + +Create_Decryption_Profile-009 + ${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 + Create-Policy_Verify1 lyf-test-9 ${dict} min1=TLSv1.3 max1=TLSv1.3 + +Create_Decryption_Profile-010 + ${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 + Create-Policy_Verify1 lyf-test-10 ${dict} + +Create_Decryption_Profile-011 + ${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 + Create-Policy_Verify1 lyf-test-11 ${dict} fail1=Fail-close + +Create_Decryption_Profile-012 + ${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 + Create-Policy_Verify1 lyf-test-12 ${dict} fail1=Pass-through + +Create_Decryption_Profile-013 + ${dict} 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 + Create-Policy_Verify1 lyf-test-13 ${dict} + +Create_Decryption_Profile-014 + ${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 + Create-Policy_Verify1 lyf-test-14 ${dict} + +Create_Decryption_Profile-015 + ${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 + Create-Policy_Verify1 lyf-test-15 ${dict} + +Edit_Dercryption_Profile-16 + ${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 + Create-Policy_Verify1 lyf-test-16 ${dict} fail1=Pass-through min1=SSLv3.0 max1=SSLv3.0 + Sleep 1 + ${id} get text xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span + 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 + Edit_Policy_Verify id=input_list_li1 ${id} lyf-edit-test-1 ${dict1} fail1=Fail-close min1=TLSv1.2 + ... max1=TLSv1.2 diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/Hijack_Files_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Hijack_Files_Case.robot new file mode 100644 index 0000000..62ae032 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Hijack_Files_Case.robot @@ -0,0 +1,48 @@ +*** Settings *** +Force Tags tsg-ui settings Hijack Files +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot +Library OperatingSystem + +*** Test Cases *** +Create_Hijack_Files-001 + Create-Hijack Files lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 + +Create_Hijack_Files-002 + Create-Hijack Files lyf-test-002-exe ${path}hijack_files/Create-Hijack Files-test-1.exe id=application/x-msdos-program0 + +Create_Hijack_Files-003 + Create-Hijack Files lyf-test-003-gif ${path}hijack_files/Create-Hijack Files-test-2.gif id=image/gif0 + +Create_Hijack_Files-004 + Create-Hijack Files lyf-test-004-html ${path}hijack_files/Create-Hijack Files-test-3.html id=text/html0 + +Create_Hijack_Files-005 + Create-Hijack Files lyf-test-005-jpeg ${path}hijack_files/Create-Hijack Files-test-4.jpeg id=image/jpeg1 + +Create_Hijack_Files-006 + Create-Hijack Files lyf-test-006-png ${path}hijack_files/Create-Hijack Files-test-5.png id=image/png2 + +Create_Hijack_Files-007 + Create-Hijack Files lyf-test-007-svg ${path}hijack_files/Create-Hijack Files-test-6.svg id=image/svg+xml3 + +Edit_Hijack_Files-008 + Create-Hijack Files lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 + ${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/span + Edit-Hijack Files id=input_list_li2 ${name} lyf-Edit-test-001 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 + +Edit_Hijack_Files-009 + Create-Hijack Files lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 + ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/span + Edit-Hijack Files id=input_list_li1 ${id} lyf-Edit-test-002 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 + +Edit_Hijack_Files-010 + Create-Hijack Files lyf-test-001-apk ${path}hijack_files/Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 + ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/span + Edit-Hijack Files id=input_list_li1 ${id} lyf-Edit-test-003 ${path}hijack_files\\Create-Hijack Files-test.apk id=application/vnd.android.package-archive0 close + +Create_Hijack_Files-011 + Create-Hijack Files lyf-test-011-svg ${path}hijack_files/Create-Hijack Files-test-6.svg id=image/svg+xml3 close shuru + +Create_Hijack_Files-012 + Create-Hijack Files lyf-test-011-svg ${path}hijack_files/Create-Hijack Files-test-6.svg id=image/svg+xml3 open diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/Insert_Scripts_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Insert_Scripts_Case.robot new file mode 100644 index 0000000..fba8b12 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Insert_Scripts_Case.robot @@ -0,0 +1,42 @@ +*** Settings *** +Force Tags tsg-ui settings insert_scripts +Resource ../../../03-Variable/bifangapivariable.txt +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot + +*** Test Cases *** +Create_Insert_Scripts-001 + [Tags] css + Create-Insert Scripts lyf-test-001-css ${path}insert_files\\Create-Insert Scripts-test.css xpath=/html/body/div/div[1]/div[1]/ul/li[1] + +Create_Insert_Scripts-002 + [Tags] js + Create-Insert Scripts lyf-test-002-js ${path}insert_files\\Create-Insert_Scripts-test.js xpath=/html/body/div/div[1]/div[1]/ul/li[2] + +Create_Insert_Scripts-003 + [Tags] css name最小值 + Create-Insert Scripts 1 ${path}insert_files\\Create-Insert Scripts-test.css xpath=/html/body/div/div[1]/div[1]/ul/li[1] + +Create_Insert_Scripts-004 + [Tags] css name传入超过128字符 + Create-Insert Scripts ${path}insert_files\\Create-Insert Scripts-test.css${path}insert_files\\Create-Insert Scripts-test.css${path}insert_files\\Create-Insert Scripts-test.css ${path}insert_files\\Create-Insert Scripts-test.css xpath=/html/body/div/div[1]/div[1]/ul/li[1] + +Create_Insert_Scripts-005 + [Tags] js name最小值 + Create-Insert Scripts 1 ${path}insert_files\\Create-Insert_Scripts-test.js xpath=/html/body/div/div[1]/div[1]/ul/li[2] + +Create_Insert_Scripts-006 + [Tags] js name传入超过128字符 + Create-Insert Scripts ${path}insert_files\\Create-Insert Scripts-test.css${path}insert_files\\Create-Insert Scripts-test.css${path}insert_files\\Create-Insert Scripts-test.css ${path}insert_files\\Create-Insert_Scripts-test.js xpath=/html/body/div/div[1]/div[1]/ul/li[2] + +Edit_Insert_Scripts-007 + [Tags] css edit + Create-Insert Scripts lyf-test-001-css ${path}insert_files\\Create-Insert Scripts-test.css xpath=/html/body/div/div[1]/div[1]/ul/li[1] + ${id} get text xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span + Edit-Insert Scripts id=input_list_li1 ${id} lyf-Edit-test-001 ${path}insert_files\\Create-Insert Scripts-test.css xpath=/html/body/div/div[1]/div[1]/ul/li[1] + +Edit_Insert_Scripts-008 + [Tags] edit js + Create-Insert Scripts 1 ${path}insert_files\\Create-Insert Scripts-test.css xpath=/html/body/div/div[1]/div[1]/ul/li[1] + ${name} get text xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span + Edit-Insert Scripts id=input_list_li2 ${name} lyf-Edit-test-008 ${path}insert_files\\Create-Insert_Scripts-test.js xpath=/html/body/div/div[1]/div[1]/ul/li[2] diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/Response_Pages_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Response_Pages_Case.robot new file mode 100644 index 0000000..ef72591 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Response_Pages_Case.robot @@ -0,0 +1,38 @@ +*** Settings *** +Force Tags tsg-ui settings response_pages +Resource ../../../03-Variable/bifangapivariable.txt +Library OperatingSystem +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot + +*** Test Cases *** +Create_Response_pages-001 + [Tags] html + Create-Response Pages Create-Response Pages-001 ${path}response_pages_files\\Create-Response Pages-test.html + +Create_Response_pages-002 + [Tags] htm + Create-Response Pages Create-Response Pages-001 ${path}response_pages_files\\Create-Response_Pages-test-2.htm + +Create_Response_pages-003 + [Tags] name最小值 + Create-Response Pages 1 ${path}response_pages_files\\Create-Response_Pages-test-2.htm + +Create_Response_pages-004 + [Tags] name超过128字符 + Create-Response Pages ${path}response_pages_files\\Create-Response Pages-test2.htm${path}response_pages_files\\Create-Response Pages-test2.htm${path}response_pages_files\\Create-Response Pages-test2.htm ${path}response_pages_files\\Create-Response_Pages-test-2.htm + +Create_Response_pages-005 + [Tags] 中英俄特殊字符 + Create-Response Pages 中文+absc+моряков+@#¥%……&* ${path}response_pages_files\\Create-Response Pages-test.html + +Edit_Response_pages-006 + [Tags] 修改+以id为查找对象 + Create-Response Pages Create-Response Pages-001 ${path}response_pages_files\\Create-Response Pages-test.html + ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/span + Edit-Response Pages id=input_list_li1 ${id} lyf-Edit-test-001 ${path}response_pages_files\\Create-Response Pages-test-1.html + +Edit_Response_pages-007 + [Tags] 修改+以name为查找对象 + Create-Response Pages Create-Response Pages-001 ${path}response_pages_files\\Create-Response Pages-test.html + ${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/span + Edit-Response Pages id=input_list_li2 ${name} lyf-Edit-test-007 ${path}response_pages_files\\Create-Response Pages-test-1.html diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/SSL_Decryption_Exclusion_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/SSL_Decryption_Exclusion_Case.robot new file mode 100644 index 0000000..a75cefa --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/SSL_Decryption_Exclusion_Case.robot @@ -0,0 +1,22 @@ +*** Settings *** +Force Tags tsg-ui settings SSL Decryption Exclusion +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot +Library OperatingSystem + +*** Test Cases *** +Create_SSL_Decryption_Exclusion-001 + Create-SSL Decryption Exclusion $www.jianshu.com jianshu www.jianshu.com + +Create_SSL_Decryption_Exclusion-002 + Create-SSL Decryption Exclusion *myssl.com myssl.com myssl.com + +Edit_SSL_Decryption_Exclusion-003 + Create-SSL Decryption Exclusion *myssl.com myssl.com myssl.com + ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span + Edit-SSL Decryption Exclusion id=input_list_li1 ${id} $www.jianshu.com 简书 + +Edit_SSL_Decryption_Exclusion-004 + Create-SSL Decryption Exclusion *myssl.com myssl.com myssl.com + ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span + Edit-SSL Decryption Exclusion id=input_list_li1 ${id} $www.jianshu.com 简xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/spanxpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span书 diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/Search_Cached_Intermediate_Certificates_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Search_Cached_Intermediate_Certificates_Case.robot new file mode 100644 index 0000000..b53771e --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Search_Cached_Intermediate_Certificates_Case.robot @@ -0,0 +1,30 @@ +*** Settings *** +Force Tags tsg-ui settings Cached Intermediate Certificates +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot +Library OperatingSystem + +*** Test Cases *** +Search_Cached_Intermediate_Certificates-001 + Sleep 1 + click id=children5 #点击一级目录Settings + Sleep 1 + click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities + Sleep 2 + click xpath=//*[@id="proxyTabs"]/div/ul/li[4] #点击Cached Intermediate Certificates按钮 + Sleep 3 + ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/div/p/span + Sleep 2 + Search-Cached Intermediate Certificates id=input_list_li1 ${id} xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[9] + +Search_Cached_Intermediate_Certificates-002 + Sleep 1 + click id=children5 #点击一级目录Settings + Sleep 1 + click id=sidebarProxy_CertificateManagement #点击二级目录Trusted Certificate Authorities + Sleep 2 + click xpath=//*[@id="proxyTabs"]/div/ul/li[4] #点击Cached Intermediate Certificates按钮 + Sleep 3 + ${sni} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/div/p/span + Sleep 3 + Search-Cached Intermediate Certificates id=input_list_li2 ${sni} xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[9] diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/Traffic_Mirror_Profiles_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Traffic_Mirror_Profiles_Case.robot new file mode 100644 index 0000000..c52db70 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Traffic_Mirror_Profiles_Case.robot @@ -0,0 +1,30 @@ +*** Settings *** +Force Tags tsg-ui settings Traffic Mirror Profiles +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot +Library OperatingSystem + +*** Test Cases *** +Create_Traffic_Mirror_Profiles-001 + [Tags] vlan最小值 + Create-Traffic Mirror Profiles lyf-test-004-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 1 + +Create_Traffic_Mirror_Profiles-002 + [Tags] vlan最大值 + Create-Traffic Mirror Profiles lyf-test-002-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 4094 + +Create_Traffic_Mirror_Profiles-003 + [Tags] mac + Create-Traffic Mirror Profiles lyf-test-003-mac xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:11 + +Edit_Traffic_Mirror_Profiles-004 + [Tags] mac + Create-Traffic Mirror Profiles lyf-test-003-mac xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:11 + ${id} get text xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[2]/div/div[3]/table/tbody/tr/td[1]/div/div/span + Edit-Traffic Mirror Profiles id=input_list_li1 ${id} lyf-Edit-test-001 xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:12 + +Edit_Traffic_Mirror_Profiles-005 + [Tags] vlan最大值 + Create-Traffic Mirror Profiles lyf-test-002-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 4094 + ${name} get text xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/div[2]/div/div[3]/table/tbody/tr/td[2]/div/div/span + Edit-Traffic Mirror Profiles id=input_list_li2 ${name} lyf-Edit-test-002 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 diff --git a/01-TestCase/tsg_ui/tsg_ui/ui_settings/Trusted_Certificate_Authorities_Case.robot b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Trusted_Certificate_Authorities_Case.robot new file mode 100644 index 0000000..ffaf139 --- /dev/null +++ b/01-TestCase/tsg_ui/tsg_ui/ui_settings/Trusted_Certificate_Authorities_Case.robot @@ -0,0 +1,25 @@ +*** Settings *** +Force Tags tsg-ui settings Trusted Certificate Authorities +Resource ../../../03-Variable/bifangapivariable.txt +Resource ../../../02-Keyword/Tsg_Ui/Setting/Settings.robot +Library OperatingSystem + +*** Test Cases *** +Create_Trusted_Certificate_Authorities-001 + import-Trusted Certificate Authorities lyf-RF-test-001 ${path}keyrings//root//tango-ca-root-01-cer.pem + +Create_Trusted_Certificate_Authorities-002 + import-Trusted Certificate Authorities test ${path}keyrings//root//tango-ca-root-01-cer.pem + +Create_Trusted_Certificate_Authorities-003 + import-Trusted Certificate Authorities ${path}keyrings//root//tango-ca-root-01-cer.pem${path}keyrings//root//tango-ca-root-01-cer.pem${path}keyrings//root//tango-ca-root-01-cer.pem ${path}keyrings//root//tango-ca-root-01-cer.pem + +Edit_Trusted_Certificate_Authorities-004 + import-Trusted Certificate Authorities lyf-RF-test-001 ${path}keyrings//root//tango-ca-root-01-cer.pem + ${id} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[1]/div/div/div/p/span + Edit-Trusted Certificate Authorities id=input_list_li1 ${id} lyf-edit-test-001 ${path}keyrings//root//tango-ca-root-01-cer.pem + +Edit_Trusted_Certificate_Authorities-005 + import-Trusted Certificate Authorities lyf-RF-test-001 ${path}keyrings//root//tango-ca-root-01-cer.pem + ${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[2]/div/div/div/p/span + Edit-Trusted Certificate Authorities id=input_list_li2 ${name} lyf-edit-test-001 ${path}keyrings//root//tango-ca-root-01-cer.pem