2020-12-28 18:27:00 +08:00
|
|
|
*** Settings ***
|
|
|
|
|
Force Tags tsg-ui settings VPN Accounts
|
|
|
|
|
Resource ../../../03-Variable/bifangapivariable.txt
|
|
|
|
|
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
|
|
|
|
Library OperatingSystem
|
|
|
|
|
|
|
|
|
|
*** Test Cases ***
|
2021-01-22 18:40:29 +08:00
|
|
|
VPNAccountsCreate
|
|
|
|
|
[Tags] Positive UI Settings VPNAccounts
|
2021-03-01 10:03:36 +08:00
|
|
|
${a}= RandomNumber
|
|
|
|
|
CreateVPNAccounts VPNAccountsCreate${a} 111111 name
|
2020-12-28 18:27:00 +08:00
|
|
|
VPNAccountsDelete
|
|
|
|
|
|
2021-01-26 14:35:49 +08:00
|
|
|
VPNAccountsEditPassword
|
|
|
|
|
[Tags] Positive UI Password Settings VPNAccounts
|
2021-03-01 10:03:36 +08:00
|
|
|
${a}= RandomNumber
|
|
|
|
|
CreateVPNAccounts EditVPNAccountsName${a} 111111 name
|
|
|
|
|
EditVPNAccounts EditVPNAccountsName${a} 222222 name
|
2021-01-26 14:35:49 +08:00
|
|
|
VPNAccountsDelete
|
2021-02-23 15:23:23 +08:00
|
|
|
|
2021-04-23 10:34:42 +08:00
|
|
|
# VPNAccountsTurnPages
|
|
|
|
|
# [Tags] Positive UI Settings VPNAccounts
|
|
|
|
|
# OpenPages sidebarSetting_Wannat account
|
|
|
|
|
# TurnPage //*[@id="ly-table1-listcontent"]/div[2]/div/div/button[2] //*[@id="ly-table1-listcontent"]/div[2]/div/div/button[1] //*[@id="ly-table1-listcontent"]/div[2]/div/div/span[2]/div/input
|
|
|
|
|
# ... 2 //*[@id="wannat-table"]/div[3]/table/tbody/tr[1]/td[1]/div/div/div[2]/span 1 //*[@id="ly-table1-listcontent"]/div[2]/div/div/ul/li[last()]
|
2021-02-23 15:23:23 +08:00
|
|
|
|
|
|
|
|
VPNAccountsPagingDisplay
|
|
|
|
|
[Tags] Positive UI Settings VPNAccounts
|
|
|
|
|
OpenPages sidebarSetting_Wannat account
|
|
|
|
|
PagingDisplay_Second 50
|
|
|
|
|
|
2021-01-22 18:40:29 +08:00
|
|
|
VPNAccountsCreateNameMinSize
|
2021-01-26 14:35:49 +08:00
|
|
|
[Tags] Boundary UI name Settings VPNAccounts
|
2021-03-01 10:03:36 +08:00
|
|
|
CreateVPNAccounts a 111111 name
|
2020-12-28 18:27:00 +08:00
|
|
|
VPNAccountsDelete
|
|
|
|
|
|
2021-01-22 18:40:29 +08:00
|
|
|
VPNAccountsCreateNameMaxSize
|
2021-01-26 14:35:49 +08:00
|
|
|
[Tags] Boundary UI name Settings VPNAccounts
|
2021-03-01 10:03:36 +08:00
|
|
|
${a}= RandomNumber
|
|
|
|
|
CreateVPNAccounts VPNAccountsCreateNameMaxSizeVPNAccountsCreateNameMaxSizeCrea${a} 111111 name
|
2020-12-28 18:27:00 +08:00
|
|
|
VPNAccountsDelete
|
|
|
|
|
|
2021-01-22 18:40:29 +08:00
|
|
|
VPNAccountsCreatePasswordMinSize
|
2021-01-26 14:35:49 +08:00
|
|
|
[Tags] Boundary UI Password Settings VPNAccounts
|
2021-03-01 10:03:36 +08:00
|
|
|
${a}= RandomNumber
|
|
|
|
|
CreateVPNAccounts VPNAccountsCreatePasswordMin${a} 1 name
|
2020-12-28 18:27:00 +08:00
|
|
|
VPNAccountsDelete
|
2021-01-26 14:35:49 +08:00
|
|
|
|
2021-01-22 18:40:29 +08:00
|
|
|
VPNAccountsCreatePasswordMaxSize
|
2021-01-26 14:35:49 +08:00
|
|
|
[Tags] Boundary UI Password Settings VPNAccounts
|
2021-03-01 10:03:36 +08:00
|
|
|
${a}= RandomNumber
|
|
|
|
|
CreateVPNAccounts VPNAccounts${a} aaaaaaaa11111111 name
|
2020-12-28 18:27:00 +08:00
|
|
|
VPNAccountsDelete
|
|
|
|
|
|
2021-01-26 14:35:49 +08:00
|
|
|
VPNAccountsCreateNameSpecialChar
|
|
|
|
|
[Tags] Negtive UI name Settings VPNAccounts
|
|
|
|
|
OpenPages sidebarSetting_Wannat account
|
|
|
|
|
click id=app_create
|
2021-03-09 11:03:39 +08:00
|
|
|
sleep ${sleep_min}
|
2021-01-26 14:35:49 +08:00
|
|
|
input xpath=//*[@id="wannat_vpn_username"]/div/div/div[1]/input 中文+absc+моряков+@#¥%……&*
|
2021-03-09 11:03:39 +08:00
|
|
|
sleep ${sleep_min}
|
2021-01-26 14:35:49 +08:00
|
|
|
click id=wanAdd_ok
|
2021-03-09 11:03:39 +08:00
|
|
|
sleep ${sleep_min}
|
2021-01-26 14:35:49 +08:00
|
|
|
${text} get text xpath=//*[@id="wannat_vpn_username"]/div/div[2]
|
|
|
|
|
Should Be Equal As Strings ${text} Only English letters, numbers, underscore _, minus sign -, English dot (.)
|
2020-12-28 18:27:00 +08:00
|
|
|
|
2021-01-26 14:35:49 +08:00
|
|
|
VPNAccountsCreateNullNameAndPassword
|
|
|
|
|
[Tags] Negtive UI name Settings VPNAccounts
|
|
|
|
|
OpenPages sidebarSetting_Wannat account
|
|
|
|
|
click id=app_create
|
2021-03-09 11:03:39 +08:00
|
|
|
sleep ${sleep_min}
|
2021-01-26 14:35:49 +08:00
|
|
|
click id=wanAdd_ok
|
2021-03-09 11:03:39 +08:00
|
|
|
sleep ${sleep_min}
|
2021-01-26 14:35:49 +08:00
|
|
|
${text1} get text xpath=//*[@id="wannat_vpn_username"]/div/div[2]
|
|
|
|
|
${text2} get text xpath=//*[@id="wannat_vpn_password"]/div/div[2]
|
2021-04-14 10:10:48 +08:00
|
|
|
Should Be Equal As Strings ${text1} The name can be up to 64 characters in length and cannot be empty
|
2021-01-26 14:35:49 +08:00
|
|
|
Should Be Equal As Strings ${text2} This item is required
|