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

80 lines
3.6 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
CreateVPNAccounts VPNAccountsCreate_-. 111111 name
VPNAccountsDelete
VPNAccountsEditPassword
[Tags] Positive UI Password Settings VPNAccounts
CreateVPNAccounts EditVPNAccountsName-01 111111 name
EditVPNAccounts EditVPNAccountsName-01 222222 name
VPNAccountsDelete
VPNAccountsCreateNameMinSize
[Tags] Boundary UI name Settings VPNAccounts
CreateVPNAccounts 1 111111 name
VPNAccountsDelete
VPNAccountsCreateNameMaxSize
[Tags] Boundary UI name Settings VPNAccounts
CreateVPNAccounts VPNAccountsCreateNameMaxSizeVPNAccountsCreateNameMaxSizeCreateVP 111111 name
VPNAccountsDelete
VPNAccountsCreatePasswordMinSize
[Tags] Boundary UI Password Settings VPNAccounts
CreateVPNAccounts VPNAccountsCreatePasswordMinSize 1 name
VPNAccountsDelete
VPNAccountsCreatePasswordMaxSize
[Tags] Boundary UI Password Settings VPNAccounts
CreateVPNAccounts VPNAccountsCreateNameMaxSizeVPNAccountsCreateNameMaxSizeCreateVP aaaaaaaa11111111 name
VPNAccountsDelete
VPNAccountsTurnPages
OpenPages sidebarSetting_Wannat account
click xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/button[2]
sleep 1
${text1} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/ul/li[2] class
click xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/button[1]
sleep 1
${text2} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/ul/li[1] class
Clear Element Text xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/span[2]/div/input
sleep 2
input text xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/span[2]/div/input 2
sleep 1
press keys xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/span[2]/div/input ENTER
sleep 1
${text3} Get Element Attribute xpath=//*[@id="ly-table1-listcontent"]/div[2]/div/div/ul/li[2] class
Should Be Equal As Strings ${text1} number active
Should Be Equal As Strings ${text2} number active
Should Be Equal As Strings ${text3} number active
VPNAccountsCreateNameSpecialChar
[Tags] Negtive UI name Settings VPNAccounts
OpenPages sidebarSetting_Wannat account
click id=app_create
sleep 1
input xpath=//*[@id="wannat_vpn_username"]/div/div/div[1]/input 中文+absc+моряков+@#¥%……&*
sleep 1
click id=wanAdd_ok
sleep 1
${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 1
click id=wanAdd_ok
sleep 1
${text1} get text xpath=//*[@id="wannat_vpn_username"]/div/div[2]
${text2} get text xpath=//*[@id="wannat_vpn_password"]/div/div[2]
Should Be Equal As Strings ${text1} This item is required
Should Be Equal As Strings ${text2} This item is required