diff --git a/01-TestCase/tsg-ui/ui-objects/Object_Category_Case.robot b/01-TestCase/tsg-ui/ui-objects/Object_Category_Case.robot new file mode 100644 index 0000000..2fc145b --- /dev/null +++ b/01-TestCase/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 + ${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