1、提交settings中的Advanced的用例和关键字,2、提交Administration模块的用例和关键字
This commit is contained in:
@@ -76,34 +76,23 @@ User-Edit
|
||||
sleep 2
|
||||
|
||||
Ui-User-Search-Name
|
||||
[Arguments] ${name}
|
||||
[Arguments] ${name} ${type}
|
||||
sleep 2
|
||||
Wait Until Page Contains Element id=one-input 20
|
||||
click element id=one-input
|
||||
Wait Until Page Contains Element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div/input 20
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div/input
|
||||
sleep 2
|
||||
click element id=input_list_li2
|
||||
run keyword if "${type}"=="Name" run keywords click element xpath=/html/body/div/div[1]/div[1]/ul/li[3]
|
||||
... AND sleep 1
|
||||
run keyword if "${type}"=="User Name" run keywords click element xpath=/html/body/div/div[1]/div[1]/ul/li[2]
|
||||
... AND sleep 1
|
||||
sleep 2
|
||||
input text id=sreach_input ${name}
|
||||
input text //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${name}
|
||||
sleep 2
|
||||
click element id=select_new_search_btn
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i
|
||||
sleep 2
|
||||
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table
|
||||
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]
|
||||
sleep 2
|
||||
|
||||
Ui-User-Search-Username
|
||||
[Arguments] ${name}
|
||||
sleep 2
|
||||
#Wait Until Page Contains Element id=one-input 10
|
||||
click element id=one-input
|
||||
sleep 3
|
||||
click element id=input_list_li1
|
||||
sleep 2
|
||||
input text id=sreach_input ${name}
|
||||
sleep 2
|
||||
click element id=select_new_search_btn
|
||||
sleep 2
|
||||
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table
|
||||
sleep 2
|
||||
|
||||
login
|
||||
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input sjy
|
||||
|
||||
@@ -6,24 +6,23 @@ Library Collections
|
||||
|
||||
*** Keywords ***
|
||||
CreatePage
|
||||
[Arguments] ${name} ${username} ${accPasswd} ${accEnable}
|
||||
[Arguments] ${name} ${username} ${accPasswd} ${Required_Password_Change} ${day} ${accEnable}
|
||||
Menu administartion Accounts
|
||||
sleep 3
|
||||
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
|
||||
... 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}
|
||||
Accounts.Create-Enable ${accEnable}
|
||||
Accounts.Create-Ok
|
||||
|
||||
DeletePage
|
||||
[Arguments] ${name}
|
||||
sleep 1
|
||||
click element id=clear_input_btm
|
||||
sleep 1
|
||||
input text id=one-input ${name}
|
||||
press keys id=one-input ENTER
|
||||
Accounts.SelectOne
|
||||
Accounts.DeleteButton 1
|
||||
Accounts.Delete-Delete
|
||||
|
||||
|
||||
Reference in New Issue
Block a user