This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/01-TestCase/tsg_ui/ui_objects/Object_Subscriber_Id_Case.robot
2020-05-29 17:08:22 +08:00

42 lines
1.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

*** 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