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/01-TestCase/tsg_ui/ui_administration/MyAccountCase.robot

82 lines
3.7 KiB
Plaintext
Raw Normal View History

*** 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 ${sleep_Wait}
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 ${sleep_Wait}
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 ${sleep_Wait}
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 ${sleep_Wait}
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 ${sleep_Wait}
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 ${sleep_Wait}
OpenMyAccountPage
EditMyAccount ${username} ${password} ${password} close
MyAccountEditDayMax
[Tags] Boundary UI Administration My Account
OpenMyAccountPage
EditMyAccount ${username} 1111111 1111111 open 2147483647
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
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}
Wait Until Element Is Enabled xpath=/html/body/div[last()]/p ${sleep_Wait}
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