1.新增加MyAccount测试用例 2.新增关于MyAccount的关键字
This commit is contained in:
80
01-TestCase/tsg_ui/Administration/MyAccountCase.robot
Normal file
80
01-TestCase/tsg_ui/Administration/MyAccountCase.robot
Normal file
@@ -0,0 +1,80 @@
|
||||
*** Settings ***
|
||||
Force Tags tsg-ui My Account
|
||||
Resource ../../../02-Keyword/tsg_ui/administration/Administration.robot
|
||||
Library OperatingSystem
|
||||
*** Test Cases ***
|
||||
|
||||
MyAccountEditClose
|
||||
[Tags] Positive UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${TEST NAME} 1111111 1111111 close
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} ${password} ${password} close
|
||||
|
||||
MyAccountEditOpen
|
||||
[Tags] Positive UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${TEST NAME} 1111111 1111111 Open
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} ${password} ${password} close
|
||||
|
||||
MyAccountEditNameMinSize
|
||||
[Tags] Boundary UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount 1 1111111 1111111 close
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} ${password} ${password} close
|
||||
|
||||
MyAccountEditNameMaxSize
|
||||
[Tags] Boundary UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount MyAccountEditNameMaxSizeMyAccoun 1111111 1111111 close
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} ${password} ${password} close
|
||||
|
||||
MyAccountEditNameSpecialChar
|
||||
[Tags] Boundary UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount 中文+absc+моряков+@#¥%……&* 1111111 1111111 close
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} ${password} ${password} close
|
||||
|
||||
MyAccountEditDayMinimum
|
||||
[Tags] Boundary UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} 1111111 1111111 open 1
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} ${password} ${password} close
|
||||
|
||||
MyAccountEditDayMinimum
|
||||
[Tags] Boundary UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} 1111111 1111111 open 2147483647
|
||||
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p 20
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} ${password} ${password} close
|
||||
|
||||
MyAccountEditDayExceedMax
|
||||
[Tags] Negtive UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} 1111111 1111111 open 2147483648
|
||||
Assertion //*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[6]/div/div[2] Cannot be 0, exceed maximum 2147483647, and be empty
|
||||
|
||||
MyAccountPasswordNotModified
|
||||
[Tags] Negtive UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} ${password} ${password}
|
||||
Assertion /html/body/div[last()]/p The password setting cannot be the same as the previous one.
|
||||
|
||||
MyAccountTwoPasswordsAreInconsistent
|
||||
[Tags] Negtive UI Administration My Account
|
||||
OpenMyAccountPage
|
||||
EditMyAccount ${username} 111 111111111
|
||||
Assertion //*[@id="app"]/div/div[3]/div[1]/div/div/div[1]/div/div/div[1]/div/div/div[1]/div[2]/form/div[4]/div/div[2] The two passwords are inconsistent
|
||||
|
||||
Reference in New Issue
Block a user