This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dongxiaoyan-tsg-autotest/02-Keyword/tsg_ui/audit/Audit.robot

82 lines
3.3 KiB
Plaintext
Raw Normal View History

*** Settings ***
Library Selenium2Library
*** Keywords ***
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
sleep 2
Ui-User-Search
sleep 2
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
input text xpath=//*[@id="app"]/div/div[2]/div/div[3]/div/input 111111
sleep 1
click element id=login
sleep 2
Ui-login
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