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_accounts/Accountscase.robot

147 lines
4.9 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 accounts
Resource ../../../02-Keyword/tsg_ui/accounts/Accountspages.robot
Library OperatingSystem
Resource ../../../02-Keyword/tsg_ui/accounts/Accounts.robot
*** Test Cases ***
create-user-001
#新建Accounts
CreatePage 0000 xxxx2 111111 log 30 log superuser
#验证新建是否成功
Ui-User-Search-Name 0000 Name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
log ${name}
Should Be Equal As Strings ${name} 0000
#删除对象
create-user-002
#新建Accounts
CreatePage-null ${EMPTY} ${EMPTY} ${EMPTY}
create-user-003
#新建Accounts
CreatePage 111111111111111111111111111111111 ${EMPTY} ${EMPTY} log
create-user-004
#新建Accounts
CreatePage xiaohong kkkkkk1 aaaa log superuser
#验证新建是否成功
Ui-User-Search-Name xiaohong Name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
log ${name}
Should Be Equal As Strings ${name} xiaohong
#删除对象
create-user-005
#新建Accounts
CreatePage 小红 小红1 a1@й log superuser
#验证新建是否成功
Ui-User-Search-Name 小红 Name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
log ${name}
Should Be Equal As Strings ${name} 小红
#删除对象
create-user-006
#新建Accounts
CreatePage малый малый1 малый log superuser
#验证新建是否成功
Ui-User-Search-Name малый Name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
log ${name}
Should Be Equal As Strings ${name} малый
#删除对象
edit-user-007
#新建Accounts
CreatePage 修改 edit3 111111 log superuser
#验证新建是否成功
Ui-User-Search-Name 修改 Name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
log ${name}
Should Be Equal As Strings ${name} 修改
#修改对象
User-Edit edit-1 111111 log
#查询修改对象
Ui-User-Search-Name edit-1
#删除对象
create-user-008
#新建Accounts
CreatePage @#!&* *^%$1 *^%$ log superuser
#验证新建是否成功
Ui-User-Search-Name @#!&* Name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
log ${name}
Should Be Equal As Strings ${name} @#!&*
#删除对象
edit-user-009
#新建Accounts
CreatePage 修改ss edit1 111111 log superuser
#验证新建是否成功
Ui-User-Search-Name 修改ss Name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
log ${name}
Should Be Equal As Strings ${name} 修改
#修改对象
User-Edit 要修改了啊 @#¥123lyfый1 close
#查询修改对象
Ui-User-Search-Name 要修改了啊
#删除对象
create-user-010
#新建Accounts
CreatePage @#!&* *^%$1 *^%$ log superuser
#验证新建是否成功
Ui-User-Search-Name * User Name
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
#log ${name}
#Should Be Equal As Strings ${name} *
#删除对象
create-user-011
#新建Accounts
CreatePage @#!&* *^%$1 *^%$ log superuser
#验证新建是否成功
Ui-User-Search-Name @
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
#log ${name}
#Should Be Equal As Strings ${name} @
#删除对象
delete-user-012
#新建Accounts
CreatePage @#!&* *^%$1 *^%$ log superuser
#验证新建是否成功
Ui-User-Search-Name @#!&*
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr/td[4]/div/div/span/span
log ${name}
Should Be Equal As Strings ${name} @#!&*
#删除对象
user-013
Pages
Ui-Pages 5
#${count} Get Matching Xpath Count xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/span[2]/div/input #获取列表数据量
#log ${count}
create-user-014
#新建Accounts
Ui-Button log