提交修改case
This commit is contained in:
41
01-TestCase/tsg-ui/ui-objects/Object_Category_Case.robot
Normal file
41
01-TestCase/tsg-ui/ui-objects/Object_Category_Case.robot
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user