1.新增Login Logs页面Case 2.新增LoginLogs页面关键字 3.删除原有的Login logCase
This commit is contained in:
26
01-TestCase/tsg_ui/Administration/LoginLogsCase.robot
Normal file
26
01-TestCase/tsg_ui/Administration/LoginLogsCase.robot
Normal file
@@ -0,0 +1,26 @@
|
||||
*** Settings ***
|
||||
Force Tags tsg-ui Login Logs
|
||||
Resource ../../../02-Keyword/tsg_ui/administration/Administration.robot
|
||||
Library OperatingSystem
|
||||
*** Test Cases ***
|
||||
|
||||
LoginLogsSearchOperator
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 log 30 log superuser
|
||||
Login ${a} 111111
|
||||
AdminOpenPages sidebarsystem_LoginLog sidebarsystem_LoginLog
|
||||
LoginLogsSearch ${a}
|
||||
Assertion //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[6]/div/div/span/span ${a}
|
||||
Login ${username} ${password}
|
||||
|
||||
LoginLogsPagingDisplay
|
||||
[Tags] Positive UI Administration Login Logs
|
||||
AdminOpenPages sidebarsystem_LoginLog sidebarsystem_LoginLog
|
||||
AuditLogs-PagingDisplay 100
|
||||
|
||||
LoginLogsAdminTurnPage
|
||||
[Tags] Positive UI Administration Login Logs
|
||||
AdminOpenPages sidebarsystem_LoginLog sidebarsystem_LoginLog
|
||||
AdminTurnPage //*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/button[2] //*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/button[1] //*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/span[2]/div/input 2
|
||||
... //*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span/span 1 //*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/ul/li[last()]
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
*** Settings ***
|
||||
Force Tags tsg-ui login
|
||||
Resource ../../../02-Keyword/tsg_ui/login/Login.robot
|
||||
Library OperatingSystem
|
||||
Resource ../../../02-Keyword/tsg_ui/Menu.robot
|
||||
|
||||
*** Test Cases ***
|
||||
search-user-001
|
||||
#打开界面
|
||||
Ui-login
|
||||
#查找
|
||||
Ui-User-login-Search-Name lyf
|
||||
|
||||
|
||||
search-user-002
|
||||
#打开界面
|
||||
Ui-login
|
||||
#查找
|
||||
Ui-User-Search
|
||||
|
||||
search-user-003
|
||||
#打开界面
|
||||
Ui-login
|
||||
#查找
|
||||
User-Search-Name sunjiangyue
|
||||
|
||||
search-user-004
|
||||
#打开界面
|
||||
Ui-login
|
||||
#查找
|
||||
User-Search-Name @*%&
|
||||
|
||||
search-user-005
|
||||
#打开界面
|
||||
Ui-login
|
||||
#查找
|
||||
User-Search-Name a1@й
|
||||
|
||||
search-user-006
|
||||
#打开界面
|
||||
Ui-login
|
||||
#查找
|
||||
User-Search-Name малый
|
||||
|
||||
user-007
|
||||
Pages
|
||||
Ui-Pages 5
|
||||
@@ -228,6 +228,21 @@ AuditLogsSearch-NotID
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i
|
||||
sleep 2
|
||||
|
||||
LoginLogsSearch
|
||||
[Arguments] ${Operator}
|
||||
sleep 2
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div/input
|
||||
sleep 1
|
||||
click element xpath=/html/body/div/div[1]/div[1]/ul/li[2]
|
||||
sleep 2
|
||||
input text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/div/div[2]/div/div/div[3]/div/div/input ${Operator}
|
||||
sleep 2
|
||||
click element xpath=/html/body/div/div/div/ul/li/span[contains(text(), "${Operator}")]
|
||||
sleep 1
|
||||
click element xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/span/div/i
|
||||
sleep 2
|
||||
|
||||
|
||||
Login
|
||||
[Arguments] ${UserName} ${Password}
|
||||
Mouse Hover xpath=//*[@id="app"]/div/div[1]/div[2]/div/span/div/span
|
||||
@@ -335,11 +350,9 @@ AuditLogs-PagingDisplay
|
||||
${Page1} Evaluate ${quzheng}+${b}
|
||||
${Page} Set Variable if "${qumo}" != "0" ${Page1} ${qumo}
|
||||
sleep 1
|
||||
${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/ul/li[8]
|
||||
${text} Get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[4]/div/ul/li[last()]
|
||||
Should Be Equal As Strings ${text} ${Page}
|
||||
|
||||
|
||||
|
||||
Assertion
|
||||
[Arguments] ${assertxpath} ${asserttext}
|
||||
${text} Get text xpath=${assertxpath}
|
||||
|
||||
Reference in New Issue
Block a user