由于页面调整,维护自动化代码 原Administrator模块
This commit is contained in:
@@ -5,15 +5,17 @@ Library OperatingSystem
|
||||
*** Test Cases ***
|
||||
UsersCreate
|
||||
[Tags] Positive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 log 30 log superuser
|
||||
# ${a} evaluate random.randint(1000,9999) random
|
||||
# UserCreatePage 0000 ${a} 111111 log 30 log English 20 superuser
|
||||
#验证新建是否成功
|
||||
System VSidebar1_Home1_App0_anonymousComponent-1_system_accounts/system_UserManagement
|
||||
${a} Set variable ${8077}
|
||||
UserSearchName ${a} UserName
|
||||
${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}
|
||||
sleep ${sleep_min}
|
||||
Login ${a} 111111
|
||||
${text1} get text xpath=//*[@id="dashboard"]/div/span
|
||||
${text1} get text xpath=//*[@id="VSidebar1_Home1_App0_anonymousComponent-1_dashboard"]/div/span[2]
|
||||
Should Be Equal As Strings ${text1} Dashboard
|
||||
sleep ${sleep_min}
|
||||
Login ${username} ${password}
|
||||
@@ -21,7 +23,7 @@ UsersCreate
|
||||
UsersCreateOpenRequiredPasswordChange
|
||||
[Tags] Positive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 open 30 log superuser
|
||||
UserCreatePage 0000 ${a} 111111 open 30 log English 20 superuser
|
||||
UserSearchName ${a} UserName
|
||||
${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}
|
||||
@@ -29,16 +31,16 @@ UsersCreateOpenRequiredPasswordChange
|
||||
UsersCreateCloseEnableButton
|
||||
[Tags] Positive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 open 30 close superuser
|
||||
UserCreatePage 0000 ${a} 111111 open 30 close English 20 superuser
|
||||
UserSearchName ${a} UserName
|
||||
sleep ${sleep_min}
|
||||
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[13]/div/div/span/div class
|
||||
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div class
|
||||
Should Be Equal As Strings ${text} el-switch
|
||||
|
||||
UsersCreateRoleSuperReader
|
||||
[Tags] Positive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 open 30 close superreader
|
||||
UserCreatePage 0000 ${a} 111111 open 30 close English 20 superreader
|
||||
UserSearchName ${a} UserName
|
||||
sleep ${sleep_min}
|
||||
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[5]/div/div
|
||||
@@ -47,23 +49,23 @@ UsersCreateRoleSuperReader
|
||||
UsersCloseEnableButton
|
||||
[Tags] Positive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 log 30 log superuser
|
||||
UserCreatePage 0000 ${a} 111111 log 30 log English 20 superuser
|
||||
UserSearchName ${a} UserName
|
||||
sleep ${sleep_min}
|
||||
Click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[13]/div/div/span/div
|
||||
Click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div
|
||||
sleep ${sleep_min}
|
||||
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[13]/div/div/span/div class
|
||||
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div class
|
||||
Should Be Equal As Strings ${text} el-switch
|
||||
|
||||
UsersEdit
|
||||
[Tags] Positive UI Administration Users
|
||||
${a} evaluate random.randint(10000,99990) random
|
||||
UserCreatePage UsersEdit ${a} 111111 log 30 log superuser
|
||||
UserCreatePage UsersEdit ${a} 111111 log 30 log English 20 superuser
|
||||
UserSearchName UsersEdit Name
|
||||
UserEdit 1111 close
|
||||
Wait Until Element Is Enabled id=userAdd ${sleep_Wait}
|
||||
UserSearchName ${a} UserName
|
||||
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[13]/div/div/span/div class
|
||||
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div class
|
||||
Should Be Equal As Strings ${text} el-switch
|
||||
|
||||
UserTurnPage
|
||||
@@ -71,16 +73,11 @@ UserTurnPage
|
||||
Menu administration Accounts
|
||||
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
|
||||
|
||||
UserSwitchDisplayNumber
|
||||
[Tags] Positive UI Administration Users
|
||||
Menu administration Accounts
|
||||
AdministrationPagingDisplay 50
|
||||
|
||||
UsersCreateNameMinSize
|
||||
[Tags] Boundary UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 1 ${a} 111111 log 30 log superuser
|
||||
UserCreatePage 1 ${a} 111111 log 30 log English 20 superuser
|
||||
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
|
||||
@@ -138,14 +135,13 @@ UsersCreatePasswordDifferent
|
||||
sleep ${sleep_min}
|
||||
Click element id=userAdd
|
||||
sleep ${sleep_min}
|
||||
Input Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div/input 11
|
||||
Input Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[3]/div/div/input 11
|
||||
sleep ${sleep_min}
|
||||
Input Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div[1]/input 111
|
||||
Input Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div/input 111
|
||||
sleep ${sleep_min}
|
||||
click button xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1]
|
||||
click button xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[2]/button[1]
|
||||
sleep ${sleep_min}
|
||||
${text} 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 ${text} The two passwords are inconsistent
|
||||
Page Should Contain The two passwords are inconsistent
|
||||
|
||||
UsersCreatePasswordExpirationFormatError
|
||||
[Tags] Negtive UI Administration Users
|
||||
@@ -167,13 +163,8 @@ UsersCreateNull
|
||||
sleep ${sleep_min}
|
||||
Click element id=userAdd
|
||||
Wait Until Element Is Enabled xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1] ${sleep_Wait}
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1]
|
||||
click element xpath=/html/body/div[1]/div/div[3]/div[2]/div/div[2]/button[1]
|
||||
sleep ${sleep_min}
|
||||
${text1} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[3]
|
||||
${text2} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div[3]
|
||||
${text3} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div[2]
|
||||
${text4} 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} Name field is required.
|
||||
Should Be Equal As Strings ${text2} Account field is required.
|
||||
Should Be Equal As Strings ${text3} This item is required
|
||||
Should Be Equal As Strings ${text4} This item is required
|
||||
Page Should Contain Name field is required.
|
||||
Page Should Contain Account field is required.
|
||||
Page Should Contain This item is required
|
||||
Reference in New Issue
Block a user