提交孙姜月ui-administrator代码,其中create-user-001和create-001两个case存在定位问题。

This commit is contained in:
dongxiaoyan
2020-06-02 11:51:59 +08:00
parent a2cbffc976
commit c03a7c9358
14 changed files with 615 additions and 0 deletions

View File

@@ -0,0 +1,71 @@
*** Settings ***
Library Selenium2Library
*** Keywords ***
openbrower
Open Browser http:192.168.40.120 chrome
CreateButton
sleep 3
Click element id=ldapAdd
Create-Name
[Arguments] ${Name}
sleep 2
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[1]/div/div[1]/input ${Name}
Create-Host
[Arguments] ${Host}
sleep 2
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[2]/div/div[1]/input ${Host}
Create-Port
[Arguments] ${Port}
sleep 2
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[3]/div/div/input ${Port}
Create-Username
[Arguments] ${Username}
sleep 2
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[4]/div/div[1]/input ${Username}
Create-Usermapperprefix
[Arguments] ${Usermapperprefix}
sleep 2
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[5]/div/div[1]/input ${Usermapperprefix}
Create-Usermappersuffix
[Arguments] ${Usermappersuffix}
sleep 2
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[5]/div/div[2]/input ${Usermappersuffix}
Create-Password
[Arguments] ${Password}
sleep 2
input text xpath=//*[@id="app"]/div/div[3]/div/div/div/div[2]/form/div[6]/div/div/input ${Password}
Create-Ok
sleep 1
click button id=ldapAddSuccess
Create-Testconnection
sleep 1
click button id=ldapTestConnection
Create-Cancel
click button id=ldapCancel
login
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input sjy
sleep 1
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input 111111
sleep 1
click element id=login
sleep 2
Ui-login
click element id=children6
sleep 2
click element id=sidebarsystem_LadpServer
sleep 2