提交IP Libraries关键字以及部分用例和Administration模块新增用了和修改优化关键字
This commit is contained in:
@@ -25,9 +25,16 @@ Create-Password
|
||||
sleep 2
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[3]/div/div/input ${accPasswd}
|
||||
|
||||
Create-Enable
|
||||
[Arguments] ${accEnable}
|
||||
sleep 2
|
||||
run keyword if "${accEnable}"=="close" run keywords click element xpath=//*[@id="app"]/div/div[3]/div/div/div[1]/div[2]/form/div[4]/div/div
|
||||
... AND sleep 1
|
||||
... ELSE log 不操作
|
||||
|
||||
Create-Ok
|
||||
sleep 1
|
||||
click button xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/button[1]
|
||||
click button xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/button[1]
|
||||
|
||||
Create-Cancel
|
||||
click button id=userAdd_cancel
|
||||
@@ -54,18 +61,24 @@ User-Delete
|
||||
|
||||
|
||||
User-Edit
|
||||
[Arguments] ${name}
|
||||
[Arguments] ${name} ${password} ${enable}
|
||||
Sleep 2
|
||||
click element id=userEdit
|
||||
Sleep 2
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[1]/div/div[1]/input ${name}
|
||||
Sleep 1
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/button[1]
|
||||
Sleep 2
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div/div/div[1]/div[2]/form/div[3]/div/div/input ${password}
|
||||
Sleep 1
|
||||
run keyword if "${enable}"=="close" run keywords click element xpath=//*[@id="app"]/div/div[3]/div/div/div[1]/div[2]/form/div[4]/div/div
|
||||
... AND sleep 1
|
||||
... ELSE log 不操作
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/button[1]/span
|
||||
sleep 2
|
||||
|
||||
Ui-User-Search-Name
|
||||
[Arguments] ${name}
|
||||
Wait Until Page Contains Element id=one-input 10
|
||||
sleep 2
|
||||
#Wait Until Page Contains Element id=one-input 10
|
||||
click element id=one-input
|
||||
sleep 2
|
||||
click element id=input_list_li2
|
||||
@@ -75,7 +88,22 @@ Ui-User-Search-Name
|
||||
click element id=select_new_search_btn
|
||||
sleep 2
|
||||
click element xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table
|
||||
Sleep 2
|
||||
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
|
||||
@@ -84,3 +112,26 @@ login
|
||||
sleep 1
|
||||
click element id=login
|
||||
sleep 2
|
||||
|
||||
Ui-Pages
|
||||
[Arguments] ${accpages}
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/ul/li[1]
|
||||
sleep 2
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/button[2]/i
|
||||
sleep 2
|
||||
Clear Element Text xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/span[2]/div/input
|
||||
sleep 2
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/span[2]/div/input ${accpages}
|
||||
sleep 2
|
||||
press keys xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/span[2]/div/input ENTER
|
||||
sleep 2
|
||||
|
||||
Ui-Button
|
||||
[Arguments] ${accEnable}
|
||||
Menu administartion Accounts
|
||||
sleep 2
|
||||
click element id=userAdd
|
||||
sleep 2
|
||||
run keyword if "${accEnable}"=="close" run keywords click element xpath=//*[@id="app"]/div/div[3]/div/div/div[1]/div[2]/form/div[4]/div/div
|
||||
... AND sleep 1
|
||||
... ELSE log success
|
||||
@@ -6,13 +6,14 @@ Library Collections
|
||||
|
||||
*** Keywords ***
|
||||
CreatePage
|
||||
[Arguments] ${name} ${username} ${accPasswd}
|
||||
[Arguments] ${name} ${username} ${accPasswd} ${accEnable}
|
||||
Menu administartion Accounts
|
||||
sleep 3
|
||||
Accounts.CreateButton
|
||||
Accounts.Create-Name ${name}
|
||||
Accounts.Create-Username ${username}
|
||||
Accounts.Create-Password ${accPasswd}
|
||||
Accounts.Create-Enable ${accEnable}
|
||||
Accounts.Create-Ok
|
||||
|
||||
DeletePage
|
||||
@@ -37,9 +38,9 @@ CreatePage-null
|
||||
Accounts.Create-Ok
|
||||
sleep 2
|
||||
${text} get text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[1]/div/div[3]
|
||||
run keyword if "${text}"=="Name field is required." click element xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/button[2]
|
||||
run keyword if "${text}"=="Name field is required." click element xpath=//*[@id="app"]/div/div[3]/div/div/div[2]/button[2]
|
||||
... ELSE IF log "name值为空,不可以新建成功"
|
||||
|
||||
|
||||
|
||||
CreatePage-User-Name-null
|
||||
[Arguments] ${name} ${username} ${accPasswd}
|
||||
@@ -54,4 +55,11 @@ CreatePage-User-Name-null
|
||||
${text} get text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[2]/div/div[3]
|
||||
run keyword if "${text}"=="Account field is required." click element xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/button[2]
|
||||
... ELSE IF log "name值为空,不可以新建成功"
|
||||
|
||||
|
||||
Pages
|
||||
[Arguments]
|
||||
Menu administartion Accounts
|
||||
sleep 3
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user