62 lines
2.0 KiB
Plaintext
62 lines
2.0 KiB
Plaintext
*** Settings ***
|
|
Library Selenium2Library
|
|
Resource ../../../03-Variable/BifangApiVariable.txt
|
|
Library Selenium2Library
|
|
Resource ../objects/Objects.robot
|
|
Resource ../objects/ObjectPages.robot
|
|
|
|
*** Keywords ***
|
|
Login
|
|
Open Browser http://${host}/#/login ${browserType}
|
|
Maximize Browser Window
|
|
input text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input ${username}
|
|
input text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input ${password}
|
|
Click button id=login
|
|
|
|
AddLocalIp
|
|
${obj1} create dictionary type=Ip name=LocahIPName ipads=${ipType} ipclient=masks ipclienttext1=${testClentIP} ipclienttext2=${ipMask}
|
|
CreatePage ${obj1}[type] ${obj1}[name] ipads=${obj1}[ipads] ipclient=${obj1}[ipclient] ipclienttext1=${obj1}[ipclienttext1] ipclienttext2=${obj1}[ipclienttext2]
|
|
set global variable ${LocahIPName} ${obj1}[name]
|
|
|
|
UiLoginAndAddLocalIP
|
|
log UiLoginAndAddLocalIP
|
|
Login.Login
|
|
Run Keyword If ${addTestClentIPFlag}==1 AddLocalIp
|
|
log UiLoginAndAddLocalIP:${LocahIPName}
|
|
|
|
|
|
Ui-login
|
|
click element id=children6
|
|
sleep 2
|
|
click element id=sidebarsystem_LoginLog
|
|
sleep 2
|
|
Ui-User-Search-Name
|
|
click element id=one-input
|
|
sleep 2
|
|
click element id=input_list_li1
|
|
sleep 2
|
|
click element id=update_sreach0
|
|
sleep 2
|
|
click element id=OperatorInfo01
|
|
sleep 2
|
|
click element id=select_new_search_btn
|
|
sleep 2
|
|
|
|
Ui-User-Search
|
|
click element id=one-input
|
|
sleep 2
|
|
click element id=input_list_li1
|
|
sleep 2
|
|
click element id=update_sreach0
|
|
sleep 2
|
|
click element id=OperatorInfo02
|
|
sleep 2
|
|
click element id=select_new_search_btn
|
|
sleep 2
|
|
|
|
User-Search-Name
|
|
[Arguments] ${name}
|
|
input text id=one-input ${name}
|
|
sleep 2
|
|
click element id=select_new_search_btn
|
|
sleep 2 |