72 lines
2.0 KiB
Plaintext
72 lines
2.0 KiB
Plaintext
*** 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
|