2021-02-01 19:05:41 +08:00
|
|
|
|
*** Settings ***
|
|
|
|
|
|
Force Tags tsg-ui Users
|
2021-02-01 19:48:24 +08:00
|
|
|
|
Resource ../../../02-Keyword/tsg_ui/administration/Administration.robot
|
2021-02-03 20:06:44 +08:00
|
|
|
|
Library OperatingSystem
|
2021-02-01 19:05:41 +08:00
|
|
|
|
*** Test Cases ***
|
|
|
|
|
|
UsersCreate
|
|
|
|
|
|
[Tags] Positive UI Administration Users
|
2021-07-09 15:44:26 +08:00
|
|
|
|
# ${a} evaluate random.randint(1000,9999) random
|
|
|
|
|
|
# UserCreatePage 0000 ${a} 111111 log 30 log English 20 superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
#验证新建是否成功
|
2021-07-09 15:44:26 +08:00
|
|
|
|
System VSidebar1_Home1_App0_anonymousComponent-1_system_accounts/system_UserManagement
|
|
|
|
|
|
${a} Set variable ${8077}
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName ${a} UserName
|
2021-02-23 15:23:23 +08:00
|
|
|
|
${UserName1} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div
|
|
|
|
|
|
Should Be Equal As Strings ${UserName1} ${a}
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-02-01 19:48:24 +08:00
|
|
|
|
Login ${a} 111111
|
2021-07-09 15:44:26 +08:00
|
|
|
|
${text1} get text xpath=//*[@id="VSidebar1_Home1_App0_anonymousComponent-1_dashboard"]/div/span[2]
|
2021-02-01 19:05:41 +08:00
|
|
|
|
Should Be Equal As Strings ${text1} Dashboard
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-02-04 12:01:34 +08:00
|
|
|
|
Login ${username} ${password}
|
2021-02-01 19:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
UsersCreateOpenRequiredPasswordChange
|
|
|
|
|
|
[Tags] Positive UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-07-09 15:44:26 +08:00
|
|
|
|
UserCreatePage 0000 ${a} 111111 open 30 log English 20 superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName ${a} UserName
|
2021-02-23 15:23:23 +08:00
|
|
|
|
${UserName1} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[3]/div/div
|
|
|
|
|
|
Should Be Equal As Strings ${UserName1} ${a}
|
2021-02-01 19:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
UsersCreateCloseEnableButton
|
|
|
|
|
|
[Tags] Positive UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-07-09 15:44:26 +08:00
|
|
|
|
UserCreatePage 0000 ${a} 111111 open 30 close English 20 superuser
|
2021-02-02 20:05:00 +08:00
|
|
|
|
UserSearchName ${a} UserName
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div class
|
2021-02-01 19:05:41 +08:00
|
|
|
|
Should Be Equal As Strings ${text} el-switch
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreateRoleSuperReader
|
|
|
|
|
|
[Tags] Positive UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-07-09 15:44:26 +08:00
|
|
|
|
UserCreatePage 0000 ${a} 111111 open 30 close English 20 superreader
|
2021-02-02 20:05:00 +08:00
|
|
|
|
UserSearchName ${a} UserName
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-02-01 19:05:41 +08:00
|
|
|
|
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[5]/div/div
|
|
|
|
|
|
Should Be Equal As Strings ${text} superreader
|
|
|
|
|
|
|
|
|
|
|
|
UsersCloseEnableButton
|
|
|
|
|
|
[Tags] Positive UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-07-09 15:44:26 +08:00
|
|
|
|
UserCreatePage 0000 ${a} 111111 log 30 log English 20 superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName ${a} UserName
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
Click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div class
|
2021-02-01 19:05:41 +08:00
|
|
|
|
Should Be Equal As Strings ${text} el-switch
|
|
|
|
|
|
|
|
|
|
|
|
UsersEdit
|
|
|
|
|
|
[Tags] Positive UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(10000,99990) random
|
2021-07-09 15:44:26 +08:00
|
|
|
|
UserCreatePage UsersEdit ${a} 111111 log 30 log English 20 superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName UsersEdit Name
|
|
|
|
|
|
UserEdit 1111 close
|
2021-03-12 10:31:15 +08:00
|
|
|
|
Wait Until Element Is Enabled id=userAdd ${sleep_Wait}
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName ${a} UserName
|
2021-07-09 15:44:26 +08:00
|
|
|
|
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div class
|
2021-02-01 19:05:41 +08:00
|
|
|
|
Should Be Equal As Strings ${text} el-switch
|
|
|
|
|
|
|
|
|
|
|
|
UserTurnPage
|
|
|
|
|
|
[Tags] Positive UI Administration Users
|
|
|
|
|
|
Menu administration Accounts
|
2021-04-22 15:05:42 +08:00
|
|
|
|
AdminTurnPage //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/button[1]
|
|
|
|
|
|
... //*[@id="app"]/div/div[3]/div[2]/div/div[2]/div/div/div[4]/div/span[2]/div/input 2 //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div
|
2021-02-01 19:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
UsersCreateNameMinSize
|
|
|
|
|
|
[Tags] Boundary UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-07-09 15:44:26 +08:00
|
|
|
|
UserCreatePage 1 ${a} 111111 log 30 log English 20 superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName 1 Name
|
|
|
|
|
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div
|
|
|
|
|
|
Should Be Equal As Strings ${name} 1
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreateNameMaxSize
|
|
|
|
|
|
[Tags] Boundary UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-02-01 19:48:24 +08:00
|
|
|
|
UserCreatePage UsersCreateNameMaxSizeUsersCreat ${a} 111111 log 30 log superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName UsersCreateNameMaxSizeUsersCreat Name
|
|
|
|
|
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div
|
|
|
|
|
|
Should Be Equal As Strings ${name} UsersCreateNameMaxSizeUsersCreat
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreateNameSpecialChar
|
|
|
|
|
|
[Tags] Boundary UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-02-01 19:48:24 +08:00
|
|
|
|
UserCreatePage 中文+absc+моряков+@#¥%……&* ${a} 111111 log 30 log superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName 中文+absc+моряков+@#¥%……&* Name
|
|
|
|
|
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div
|
|
|
|
|
|
Should Be Equal As Strings ${name} 中文+absc+моряков+@#¥%……&*
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreatePasswordExpirationMinimum
|
|
|
|
|
|
[Tags] Boundary UI Administration Users
|
|
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-02-01 19:48:24 +08:00
|
|
|
|
UserCreatePage 0000 ${a} 111111 open 1 log superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName 0000 Name
|
|
|
|
|
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div
|
|
|
|
|
|
Should Be Equal As Strings ${name} 0000
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreatePasswordExpirationMax
|
2021-02-02 20:05:00 +08:00
|
|
|
|
[Tags] Negtive UI Administration Users
|
2021-02-01 19:05:41 +08:00
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-02-01 19:48:24 +08:00
|
|
|
|
UserCreatePage 0000 ${a} 111111 open 2147483647 log superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
UserSearchName 0000 Name
|
|
|
|
|
|
${name} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[4]/div/div
|
|
|
|
|
|
Should Be Equal As Strings ${name} 0000
|
|
|
|
|
|
|
2021-03-01 10:03:36 +08:00
|
|
|
|
UsersCreateUserNameRepeat
|
2021-02-02 20:05:00 +08:00
|
|
|
|
[Tags] Negtive UI Administration Users
|
2021-03-01 10:03:36 +08:00
|
|
|
|
UserCreatePageErrorVerification UsersCreateUserNameRepeat byb 111111 log 30 log superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
${text} get text xpath=/html/body/div[last()]/p
|
|
|
|
|
|
Should Be Equal As Strings ${text} User already exists
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreatePasswordFormatError
|
2021-02-02 20:05:00 +08:00
|
|
|
|
[Tags] Negtive UI Administration Users
|
2021-03-01 10:03:36 +08:00
|
|
|
|
UserCreatePageErrorVerification UsersCreateUserNameRepeat byb @#¥%……&*(*-++ log 30 log superuser
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-02-01 19:05:41 +08:00
|
|
|
|
${text1} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]
|
|
|
|
|
|
${text2} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div[2]
|
|
|
|
|
|
Should Be Equal As Strings ${text1} Only English letters, numbers, and special characters ~!@#$%^&*_.?
|
|
|
|
|
|
Should Be Equal As Strings ${text2} Only English letters, numbers, and special characters ~!@#$%^&*_.?
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreatePasswordDifferent
|
2021-02-02 20:05:00 +08:00
|
|
|
|
[Tags] Negtive UI Administration Users
|
2021-02-01 19:05:41 +08:00
|
|
|
|
Menu administration Accounts
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-02-01 19:05:41 +08:00
|
|
|
|
Click element id=userAdd
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
Input Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div/input 11
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
Input Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div/input 111
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
click button xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[2]/button[1]
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
Page Should Contain The two passwords are inconsistent
|
2021-02-01 19:05:41 +08:00
|
|
|
|
|
|
|
|
|
|
UsersCreatePasswordExpirationFormatError
|
2021-02-02 20:05:00 +08:00
|
|
|
|
[Tags] Negtive UI Administration Users
|
2021-02-01 19:05:41 +08:00
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-03-01 10:03:36 +08:00
|
|
|
|
UserCreatePageErrorVerification 0000 ${a} 111111 open 2147483648 log superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div[2]
|
|
|
|
|
|
Should Be Equal As Strings ${text} Cannot be 0, exceed maximum 2147483647, and be empty
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreatePasswordExpirationIs0
|
2021-02-02 20:05:00 +08:00
|
|
|
|
[Tags] Negtive UI Administration Users
|
2021-02-01 19:05:41 +08:00
|
|
|
|
${a} evaluate random.randint(1000,9999) random
|
2021-03-01 10:03:36 +08:00
|
|
|
|
UserCreatePageErrorVerification 0000 ${a} 111111 open 0 log superuser
|
2021-02-01 19:05:41 +08:00
|
|
|
|
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div[2]
|
|
|
|
|
|
Should Be Equal As Strings ${text} Cannot be 0, exceed maximum 2147483647, and be empty
|
|
|
|
|
|
|
|
|
|
|
|
UsersCreateNull
|
2021-02-02 20:05:00 +08:00
|
|
|
|
[Tags] Negtive UI Administration Users
|
2021-02-01 19:05:41 +08:00
|
|
|
|
Menu administration Accounts
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-02-01 19:05:41 +08:00
|
|
|
|
Click element id=userAdd
|
2021-03-05 17:43:21 +08:00
|
|
|
|
Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] ${sleep_Wait}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[2]/button[1]
|
2021-03-05 17:43:21 +08:00
|
|
|
|
sleep ${sleep_min}
|
2021-07-09 15:44:26 +08:00
|
|
|
|
Page Should Contain Name field is required.
|
|
|
|
|
|
Page Should Contain Account field is required.
|
|
|
|
|
|
Page Should Contain This item is required
|