2020-06-02 11:51:59 +08:00
|
|
|
*** Settings ***
|
|
|
|
|
Library Selenium2Library
|
|
|
|
|
|
|
|
|
|
*** Keywords ***
|
|
|
|
|
|
2020-12-09 18:10:46 +08:00
|
|
|
Ui-Audit-Search
|
|
|
|
|
[Arguments] ${type} ${value}
|
|
|
|
|
sleep 2
|
|
|
|
|
click element //*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[1]/input
|
|
|
|
|
sleep 2
|
|
|
|
|
run keyword if "${type}"=="ID" Run Keywords click element xpath=/html/body/div/div[1]/div[1]/ul/li[2]
|
|
|
|
|
... AND sleep 1
|
|
|
|
|
... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
|
|
|
|
run keyword if "${type}"=="Operator" Run Keywords click element xpath=/html/body/div/div[1]/div[1]/ul/li[3]
|
|
|
|
|
... AND sleep 1
|
|
|
|
|
... AND input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
|
|
|
|
... AND sleep 1
|
|
|
|
|
... AND click element xpath=/html/body/div/div[1]/div[1]/ul/li[1]
|
|
|
|
|
run keyword if "${type}"=="Time" Run Keywords click element xpath=/html/body/div/div[1]/div[1]/ul/li[4]
|
|
|
|
|
... AND sleep 1
|
|
|
|
|
... AND input text xpath=/html/body/div/div[1]/div/div[1]/span[1]/span[1]/div/input ${value}[0]
|
|
|
|
|
... AND sleep 1
|
|
|
|
|
... AND input text xpath=/html/body/div/div[1]/div/div[1]/span[1]/span[2]/div[1]/input ${value}[1]
|
|
|
|
|
... AND sleep 1
|
|
|
|
|
... AND input text xpath=/html/body/div/div[1]/div/div[1]/span[3]/span[1]/div/input ${value}[2]
|
|
|
|
|
... AND sleep 1
|
|
|
|
|
... AND input text xpath=/html/body/div/div[1]/div/div[1]/span[3]/span[2]/div[1]/input ${value}[3]
|
|
|
|
|
... AND sleep 1
|
|
|
|
|
... AND click element xpath=/html/body/div/div[2]/button[2]
|
|
|
|
|
sleep 2
|
|
|
|
|
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i
|
2020-06-02 11:51:59 +08:00
|
|
|
sleep 2
|
|
|
|
|
|
|
|
|
|
Ui-User-Search
|
2020-07-20 18:38:17 +08:00
|
|
|
sleep 2
|
2020-06-02 11:51:59 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
Ui-User-Search-Operator
|
|
|
|
|
[Arguments] ${operator}
|
|
|
|
|
input text id=one-input ${operator}
|
|
|
|
|
sleep 2
|
|
|
|
|
click element id=select_new_search_btn
|
|
|
|
|
sleep 2
|
|
|
|
|
|
|
|
|
|
login
|
|
|
|
|
Input Text xpath=//*[@id="app"]/div/div[2]/div/div[2]/div/input sjy
|
|
|
|
|
sleep 1
|
2020-07-20 18:38:17 +08:00
|
|
|
input text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input 111111
|
2020-06-02 11:51:59 +08:00
|
|
|
sleep 1
|
|
|
|
|
click element id=login
|
|
|
|
|
sleep 2
|
|
|
|
|
|
|
|
|
|
Ui-login
|
2020-07-20 18:38:17 +08:00
|
|
|
Menu administartion Audit Log
|
|
|
|
|
sleep 3
|
|
|
|
|
|
|
|
|
|
Ui-Pages
|
|
|
|
|
[Arguments] ${accpages}
|
|
|
|
|
click element xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/ul/li[1]
|
|
|
|
|
sleep 2
|
|
|
|
|
click element xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/button[2]/i
|
|
|
|
|
sleep 2
|
|
|
|
|
Clear Element Text xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/span[2]/div/input
|
|
|
|
|
sleep 2
|
|
|
|
|
input text xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/span[2]/div/input ${accpages}
|
|
|
|
|
sleep 2
|
|
|
|
|
press keys xpath=//*[@id="app"]/div/div[3]/div/div/div[4]/div/span[2]/div/input ENTER
|
|
|
|
|
sleep 2
|
|
|
|
|
|
|
|
|
|
Pages
|
|
|
|
|
[Arguments]
|
|
|
|
|
Menu administartion Audit Log
|
|
|
|
|
sleep 3
|