2021-02-05 11:30:50 +08:00
*** 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
2021-03-05 17:43:21 +08:00
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
2021-02-05 11:30:50 +08:00
OpenMyAccountPage
EditMyAccount ${username} ${password} ${password} close
MyAccountEditOpen
[Tags] Positive UI Administration My Account
OpenMyAccountPage
EditMyAccount ${TEST NAME} 1111111 1111111 Open
2021-03-05 17:43:21 +08:00
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
2021-02-05 11:30:50 +08:00
OpenMyAccountPage
EditMyAccount ${username} ${password} ${password} close
MyAccountEditNameMinSize
[Tags] Boundary UI Administration My Account
OpenMyAccountPage
EditMyAccount 1 1111111 1111111 close
2021-03-05 17:43:21 +08:00
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
2021-02-05 11:30:50 +08:00
OpenMyAccountPage
EditMyAccount ${username} ${password} ${password} close
MyAccountEditNameMaxSize
[Tags] Boundary UI Administration My Account
OpenMyAccountPage
EditMyAccount MyAccountEditNameMaxSizeMyAccoun 1111111 1111111 close
2021-03-05 17:43:21 +08:00
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
2021-02-05 11:30:50 +08:00
OpenMyAccountPage
EditMyAccount ${username} ${password} ${password} close
MyAccountEditNameSpecialChar
[Tags] Boundary UI Administration My Account
OpenMyAccountPage
EditMyAccount 中文+absc+моряков+@#¥%……&* 1111111 1111111 close
2021-03-05 17:43:21 +08:00
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
2021-02-05 11:30:50 +08:00
OpenMyAccountPage
EditMyAccount ${username} ${password} ${password} close
MyAccountEditDayMinimum
[Tags] Boundary UI Administration My Account
OpenMyAccountPage
EditMyAccount ${username} 1111111 1111111 open 1
2021-03-05 17:43:21 +08:00
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
2021-02-05 11:30:50 +08:00
OpenMyAccountPage
EditMyAccount ${username} ${password} ${password} close
MyAccountEditDayMinimum
[Tags] Boundary UI Administration My Account
OpenMyAccountPage
EditMyAccount ${username} 1111111 1111111 open 2147483647
2021-03-05 17:43:21 +08:00
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
2021-02-05 11:30:50 +08:00
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}
2021-03-05 17:43:21 +08:00
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
2021-02-05 11:30:50 +08:00
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