提交IP Libraries关键字以及部分用例和Administration模块新增用了和修改优化关键字

This commit is contained in:
lyf
2020-07-20 18:38:17 +08:00
parent 08b00ebebd
commit cd1fb78c2c
12 changed files with 423 additions and 95 deletions

View File

@@ -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