From 672d8842e3b268ec99864433aed45502e283c51c Mon Sep 17 00:00:00 2001 From: liuyuanfang Date: Wed, 27 May 2020 17:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../tsg-ui/ui-objects/Object_Fqdn_Case.robot | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 01-TestCase/tsg-ui/ui-objects/Object_Fqdn_Case.robot diff --git a/01-TestCase/tsg-ui/ui-objects/Object_Fqdn_Case.robot b/01-TestCase/tsg-ui/ui-objects/Object_Fqdn_Case.robot new file mode 100644 index 0000000..b4026e5 --- /dev/null +++ b/01-TestCase/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