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