1、提交修改settings模块关键字和用例2、提交修改user和ip限制登录关键字
This commit is contained in:
@@ -6,18 +6,21 @@ Library Collections
|
||||
|
||||
*** Keywords ***
|
||||
CreatePage
|
||||
[Arguments] ${name} ${username} ${accPasswd} ${Required_Password_Change} ${day} ${accEnable}
|
||||
Menu administartion Accounts
|
||||
[Arguments] ${name} ${username} ${accPasswd} ${Required_Password_Change} ${day} ${accEnable} ${role}
|
||||
Menu administration Accounts
|
||||
Accounts.CreateButton
|
||||
Accounts.Create-Name ${name}
|
||||
Accounts.Create-Username ${username}
|
||||
Accounts.Create-Password ${accPasswd}
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[4]/div/div[1]/input ${accPasswd}
|
||||
run keyword if "${Required_Password_Change}"=="open" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[5]/div/div
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div/input ${accPasswd}
|
||||
run keyword if "${Required_Password_Change}"=="open" Run Keywords click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[5]/div/div
|
||||
... AND sleep 1
|
||||
... ELSE log 不开启密码过期验证
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div[2]/form/div[6]/div/div/input ${day}
|
||||
... 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 不开启密码过期验证
|
||||
Accounts.Create-Enable ${accEnable}
|
||||
Click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[8]/div/div/div/span/span/i
|
||||
sleep 1
|
||||
click element //span[.="${role}"]
|
||||
Accounts.Create-Ok
|
||||
|
||||
DeletePage
|
||||
|
||||
Reference in New Issue
Block a user