1.Settings关键字 2.修改增加 Adminstration关键字 3.修改usersCase 用例
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
Force Tags tsg-ui Users
|
||||
Resource ../../../02-Keyword/tsg_ui/administration/Administration.robot
|
||||
Library OperatingSystem
|
||||
|
||||
*** Test Cases ***
|
||||
UsersCreate
|
||||
[Tags] Positive UI Administration Users
|
||||
@@ -29,7 +28,7 @@ UsersCreateCloseEnableButton
|
||||
[Tags] Positive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 open 30 close superuser
|
||||
UserSearchName 0000 Name
|
||||
UserSearchName ${a} UserName
|
||||
sleep 1
|
||||
${text} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[10]/div/div/span/div class
|
||||
Should Be Equal As Strings ${text} el-switch
|
||||
@@ -38,7 +37,7 @@ UsersCreateRoleSuperReader
|
||||
[Tags] Positive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 open 30 close superreader
|
||||
UserSearchName 0000 Name
|
||||
UserSearchName ${a} UserName
|
||||
sleep 1
|
||||
${text} get text xpath=//*[@id="ly-table1-listcontent"]/div/div[3]/table/tbody/tr[1]/td[5]/div/div
|
||||
Should Be Equal As Strings ${text} superreader
|
||||
@@ -108,7 +107,7 @@ UsersCreatePasswordExpirationMinimum
|
||||
Should Be Equal As Strings ${name} 0000
|
||||
|
||||
UsersCreatePasswordExpirationMax
|
||||
[Tags] Boundary UI Administration Users
|
||||
[Tags] Negtive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 open 2147483647 log superuser
|
||||
UserSearchName 0000 Name
|
||||
@@ -116,7 +115,7 @@ UsersCreatePasswordExpirationMax
|
||||
Should Be Equal As Strings ${name} 0000
|
||||
|
||||
UsersCreateUserNameRepeat
|
||||
[Tags] Boundary UI Administration Users
|
||||
[Tags] Negtive UI Administration Users
|
||||
Menu administration Accounts
|
||||
UserCreatePage UsersCreateUserNameRepeat byb 111111 log 30 log superuser
|
||||
sleep 1
|
||||
@@ -124,7 +123,7 @@ UsersCreateUserNameRepeat
|
||||
Should Be Equal As Strings ${text} User already exists
|
||||
|
||||
UsersCreatePasswordFormatError
|
||||
[Tags] Boundary UI Administration Users
|
||||
[Tags] Negtive UI Administration Users
|
||||
Menu administration Accounts
|
||||
UserCreatePage UsersCreateUserNameRepeat byb @#¥%……&*(*-++ log 30 log superuser
|
||||
sleep 1
|
||||
@@ -134,7 +133,7 @@ UsersCreatePasswordFormatError
|
||||
Should Be Equal As Strings ${text2} Only English letters, numbers, and special characters ~!@#$%^&*_.?
|
||||
|
||||
UsersCreatePasswordDifferent
|
||||
[Tags] Boundary UI Administration Users
|
||||
[Tags] Negtive UI Administration Users
|
||||
Menu administration Accounts
|
||||
sleep 1
|
||||
Click element id=userAdd
|
||||
@@ -143,27 +142,27 @@ UsersCreatePasswordDifferent
|
||||
sleep 1
|
||||
Input Text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div[1]/input 111
|
||||
sleep 1
|
||||
Accounts.Create-Ok
|
||||
click button xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[2]/button[1]
|
||||
sleep 1
|
||||
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[4]/div/div[2]
|
||||
Should Be Equal As Strings ${text} The two passwords are inconsistent
|
||||
|
||||
UsersCreatePasswordExpirationFormatError
|
||||
[Tags] Boundary UI Administration Users
|
||||
[Tags] Negtive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 open 2147483648 log superuser
|
||||
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div[2]
|
||||
Should Be Equal As Strings ${text} Cannot be 0, exceed maximum 2147483647, and be empty
|
||||
|
||||
UsersCreatePasswordExpirationIs0
|
||||
[Tags] Boundary UI Administration Users
|
||||
[Tags] Negtive UI Administration Users
|
||||
${a} evaluate random.randint(1000,9999) random
|
||||
UserCreatePage 0000 ${a} 111111 open 0 log superuser
|
||||
${text} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div/div[1]/div[2]/form/div[6]/div/div[2]
|
||||
Should Be Equal As Strings ${text} Cannot be 0, exceed maximum 2147483647, and be empty
|
||||
|
||||
UsersCreateNull
|
||||
[Tags] Boundary UI Administration Users
|
||||
[Tags] Negtive UI Administration Users
|
||||
Menu administration Accounts
|
||||
sleep 1
|
||||
Click element id=userAdd
|
||||
|
||||
@@ -121,7 +121,7 @@ TrustedCertificateAuthoritiesInportEmptyFile
|
||||
|
||||
TrustedCertificateAuthoritiesInportErrorFile
|
||||
[Tags] Negtive UI Settings TrustedCertificateAuthorities
|
||||
UploadFilesSize TrustedCertificateAuthorities InportErrorFile ${path}keyrings//root//Error.pem Invalid public certificate
|
||||
UploadFilesSize TrustedCertificateAuthorities InportErrorFile ${path}keyrings//root//Error.pem save trusted certificate authorities failure: The uploaded certificate is incorrect.
|
||||
|
||||
TrustedCertificateAuthoritiesImportDuplicateCertificate
|
||||
[Tags] Negtive UI Settings TrustedCertificateAuthorities
|
||||
|
||||
Reference in New Issue
Block a user