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_settings/VPNAccountsCase.robot

77 lines
3.4 KiB
Plaintext
Raw Normal View History

*** 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 ***
VPNAccountsCreate
[Tags] Positive UI Settings VPNAccounts
${a}= RandomNumber
CreateVPNAccounts VPNAccountsCreate${a} 111111 name
VPNAccountsDelete
VPNAccountsEditPassword
[Tags] Positive UI Password Settings VPNAccounts
${a}= RandomNumber
CreateVPNAccounts EditVPNAccountsName${a} 111111 name
EditVPNAccounts EditVPNAccountsName${a} 222222 name
VPNAccountsDelete
# 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()]
VPNAccountsPagingDisplay
[Tags] Positive UI Settings VPNAccounts
OpenPages sidebarSetting_Wannat account
PagingDisplay_Second 50
VPNAccountsCreateNameMinSize
[Tags] Boundary UI name Settings VPNAccounts
CreateVPNAccounts a 111111 name
VPNAccountsDelete
VPNAccountsCreateNameMaxSize
[Tags] Boundary UI name Settings VPNAccounts
${a}= RandomNumber
CreateVPNAccounts VPNAccountsCreateNameMaxSizeVPNAccountsCreateNameMaxSizeCrea${a} 111111 name
VPNAccountsDelete
VPNAccountsCreatePasswordMinSize
[Tags] Boundary UI Password Settings VPNAccounts
${a}= RandomNumber
CreateVPNAccounts VPNAccountsCreatePasswordMin${a} 1 name
VPNAccountsDelete
VPNAccountsCreatePasswordMaxSize
[Tags] Boundary UI Password Settings VPNAccounts
${a}= RandomNumber
CreateVPNAccounts VPNAccounts${a} aaaaaaaa11111111 name
VPNAccountsDelete
VPNAccountsCreateNameSpecialChar
[Tags] Negtive UI name Settings VPNAccounts
OpenPages sidebarSetting_Wannat account
click id=app_create
sleep ${sleep_min}
input xpath=//*[@id="wannat_vpn_username"]/div/div/div[1]/input 中文+absc+моряков+@#¥%……&*
sleep ${sleep_min}
click id=wanAdd_ok
sleep ${sleep_min}
${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 (.)
VPNAccountsCreateNullNameAndPassword
[Tags] Negtive UI name Settings VPNAccounts
OpenPages sidebarSetting_Wannat account
click id=app_create
sleep ${sleep_min}
click id=wanAdd_ok
sleep ${sleep_min}
${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
Should Be Equal As Strings ${text2} This item is required