修改部分测试用例,将创建数据的Name由固定值改为随机数

This commit is contained in:
byb11
2021-03-01 10:03:36 +08:00
parent 067748a5dd
commit e991887599
9 changed files with 139 additions and 79 deletions

View File

@@ -56,6 +56,37 @@ UserCreatePage
click button xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1]
Wait Until Element Is Enabled id=profilesTabs_Profile_ResponsePages 20
UserCreatePageErrorVerification
[Arguments] ${name} ${username} ${accPasswd} ${Required_Password_Change} ${day} ${accEnable} ${role}
Menu administration Accounts
Wait Until Element Is Enabled id=userAdd 10
Click element id=userAdd
sleep 2
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[1]/div/div[1]/input ${name}
sleep 1
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[2]/div/div[1]/input ${username}
sleep 1
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[3]/div/div/input ${accPasswd}
sleep 1
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div/input ${accPasswd}
sleep 1
run keyword if "${accEnable}"=="close" run keywords click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div
... AND sleep 1
... ELSE log 不操作
sleep 1
run keyword if "${Required_Password_Change}"=="open" Run Keywords click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[5]/div/div
... AND sleep 1
... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div/input ${day}
... ELSE log 不开启密码过期验证
Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[last()]/div/div/div/span/span/i
sleep 1
Execute Javascript window.scrollTo(0, document.body.scrollHeight)
sleep 1
click element //span[.="${role}"]
sleep 1
click button xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1]
sleep 2
UserEdit
[Arguments] ${password} ${enable}
Sleep 2
@@ -430,7 +461,7 @@ OpenMyAccountPage
[Documentation] 打开MyAccount侧滑框
sleep 1
Mouse Hover xpath=//*[@id="app"]/div/div[1]/div[2]/div/span/div/span
sleep 1
Wait Until Element Is Enabled id=editInfo 20
click element id=editInfo
sleep 2