*** 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
CreatePage Category create-category-suffix-002 keywordtext=*baidu.com
ui-object-search-name create-category-suffix-002
Should Be Equal As Strings ${text} create-category-suffix-002
edit-category-003
#修改对象
object-edit-fqdn deit-category-003 $open.node.com
#查询修改对象
ui-object-search-name deit-category-003