42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
|
|
*** Settings ***
|
|||
|
|
Force Tags tsg-ui object sub-id
|
|||
|
|
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-Subscriber-ID-001
|
|||
|
|
#新建sub-id
|
|||
|
|
CreatePage Sub create-sub-id-001 keywordtext=$test37
|
|||
|
|
#验证新建是否成功
|
|||
|
|
ui-object-search-name create-sub-id-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-sub-id-001
|
|||
|
|
#删除对象
|
|||
|
|
objects-delete
|
|||
|
|
|
|||
|
|
create-Subscriber-ID-002
|
|||
|
|
#新建sub-id
|
|||
|
|
CreatePage Sub create-sub-id-002 keywordtext=$abc_%$#@123中文_скрипцияк.
|
|||
|
|
#验证新建是否成功
|
|||
|
|
ui-object-search-name create-sub-id-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-sub-id-002
|
|||
|
|
#删除对象
|
|||
|
|
objects-delete
|
|||
|
|
|
|||
|
|
edit-Subscriber-ID-002
|
|||
|
|
#新建sub-id
|
|||
|
|
CreatePage Sub create-sub-id-001 keywordtext=$test37
|
|||
|
|
#验证新建是否成功
|
|||
|
|
ui-object-search-name create-sub-id-001
|
|||
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span[2]/span
|
|||
|
|
log ${text}
|
|||
|
|
#修改对象
|
|||
|
|
object-edit-Subscriber-ID deit-sub-id-002 $test20
|
|||
|
|
#查询修改对象
|
|||
|
|
ui-object-search-name deit-sub-id-002
|
|||
|
|
#删除对象
|
|||
|
|
objects-delete
|