提交孙姜月ui-administrator代码,其中create-user-001和create-001两个case存在定位问题。
This commit is contained in:
57
02-Keyword/tsg_ui/accounts/Accountspages.robot
Normal file
57
02-Keyword/tsg_ui/accounts/Accountspages.robot
Normal file
@@ -0,0 +1,57 @@
|
||||
*** Settings ***
|
||||
Library Selenium2Library
|
||||
Resource Accounts.robot
|
||||
Resource ../Menu.robot
|
||||
Library Collections
|
||||
|
||||
*** Keywords ***
|
||||
CreatePage
|
||||
[Arguments] ${name} ${username} ${accPasswd}
|
||||
Menu administartion Accounts
|
||||
sleep 3
|
||||
Accounts.CreateButton
|
||||
Accounts.Create-Name ${name}
|
||||
Accounts.Create-Username ${username}
|
||||
Accounts.Create-Password ${accPasswd}
|
||||
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
|
||||
|
||||
CreatePage-null
|
||||
[Arguments] ${name} ${username} ${accPasswd}
|
||||
Menu administartion Accounts
|
||||
sleep 3
|
||||
Accounts.CreateButton
|
||||
Accounts.Create-Name ${name}
|
||||
Accounts.Create-Username ${username}
|
||||
Accounts.Create-Password ${accPasswd}
|
||||
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]
|
||||
... ELSE IF log "name值为空,不可以新建成功"
|
||||
|
||||
|
||||
CreatePage-User-Name-null
|
||||
[Arguments] ${name} ${username} ${accPasswd}
|
||||
Menu administartion Accounts
|
||||
sleep 3
|
||||
Accounts.CreateButton
|
||||
Accounts.Create-Name ${name}
|
||||
Accounts.Create-Username ${username}
|
||||
Accounts.Create-Password ${accPasswd}
|
||||
Accounts.Create-Ok
|
||||
sleep 2
|
||||
${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值为空,不可以新建成功"
|
||||
|
||||
Reference in New Issue
Block a user