1.修改关键字 2.修改用例名添加用例 3。新建SNATIPPoolsCase代替文件SNAT_IP_Pools_Case
This commit is contained in:
75
01-TestCase/tsg_ui/ui_settings/SNATIPPoolsCase.robot
Normal file
75
01-TestCase/tsg_ui/ui_settings/SNATIPPoolsCase.robot
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
*** Settings ***
|
||||||
|
Force Tags tsg-ui settings SNAT IP Pools
|
||||||
|
Resource ../../../03-Variable/bifangapivariable.txt
|
||||||
|
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
||||||
|
Library OperatingSystem
|
||||||
|
*** Test Cases ***
|
||||||
|
CreateSNATIPPools
|
||||||
|
[Tags] PositiveTestCase Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35 192.168.50.34
|
||||||
|
CreateSNATIPPools SNAT_IP_Pools_Create-001 1 ${iplist} j=2
|
||||||
|
SNATIPDelete SNAT_IP_Pools_Create-001 Name
|
||||||
|
|
||||||
|
CreateSNATIPPoolsNameMinSize
|
||||||
|
[Tags] PositiveTestCase name Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35 192.168.50.34
|
||||||
|
CreateSNATIPPools 1 1 ${iplist} j=2
|
||||||
|
SNATIPDelete 1 Name
|
||||||
|
|
||||||
|
CreateSNATIPPoolsNameMaxSize
|
||||||
|
[Tags] PositiveTestCase name Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35 192.168.50.34
|
||||||
|
CreateSNATIPPools CreateSNATIPPoolsNameMaxSizeCreateSNATIPPoolsNameMaxSizeCreateSN 1 ${iplist} j=2
|
||||||
|
SNATIPDelete CreateSNATIPPoolsNameMaxSizeCreateSNATIPPoolsNameMaxSizeCreateSN Name
|
||||||
|
|
||||||
|
CreateSNATIPPoolsHistoryActiveIPAdd
|
||||||
|
[Tags] PositiveTestCase Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35
|
||||||
|
CreateSNATIPPools CreateSNATIPPoolsHistoryActiveIPAdd 2 ${iplist}
|
||||||
|
SNATIPDelete CreateSNATIPPoolsHistoryActiveIPAdd Name
|
||||||
|
|
||||||
|
EditSNATIPPoolsName
|
||||||
|
[Tags] PositiveTestCase name Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35
|
||||||
|
CreateSNATIPPools SNAT_IP_Pools_Create-001 1 ${iplist}
|
||||||
|
EditSNATIPPools SNAT_IP_Pools_Create-001 Name EditSNATIPPoolsSName null
|
||||||
|
SNATIPDelete EditSNATIPPoolsSName Name
|
||||||
|
|
||||||
|
EditSNATIPPoolsEditIP
|
||||||
|
[Tags] PositiveTestCase IP Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35
|
||||||
|
CreateSNATIPPools SNAT_IP_Pools_Create-001 1 ${iplist}
|
||||||
|
${iplist2} create list 192.168.50.34
|
||||||
|
EditSNATIPPools SNAT_IP_Pools_Create-001 Name EditSNATIPPoolsEditIP edit ${iplist2}
|
||||||
|
SNATIPDelete EditSNATIPPoolsEditIP Name
|
||||||
|
|
||||||
|
EditSNATIPPoolsAddIP
|
||||||
|
[Tags] PositiveTestCase IP Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35
|
||||||
|
CreateSNATIPPools SNAT_IP_Pools_Create-001 1 ${iplist}
|
||||||
|
${iplist2} create list 192.168.50.34
|
||||||
|
EditSNATIPPools SNAT_IP_Pools_Create-001 Name EditSNATIPPoolsAddIP create ${iplist2}
|
||||||
|
SNATIPDelete EditSNATIPPoolsAddIP Name
|
||||||
|
|
||||||
|
EditSNATIPPoolsReplaceIP
|
||||||
|
[Tags] PositiveTestCase IP Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35
|
||||||
|
CreateSNATIPPools SNAT_IP_Pools_Create-001 1 ${iplist}
|
||||||
|
${iplist2} create list 192.168.50.34
|
||||||
|
EditSNATIPPools SNAT_IP_Pools_Create-001 Name EditSNATIPPoolsReplaceIP delete ${iplist2}
|
||||||
|
SNATIPDelete EditSNATIPPoolsReplaceIP Name
|
||||||
|
|
||||||
|
SNATIPPoolsSearchID
|
||||||
|
[Tags] PositiveTestCase ID Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35
|
||||||
|
CreateSNATIPPools SNAT_IP_Pools_Create-001 1 ${iplist}
|
||||||
|
${text} Get text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]/td[1]/div/div/span
|
||||||
|
EditSNATIPPools ${text} ID EditSNATIPPoolsReplaceIP null
|
||||||
|
SNATIPDelete ${text} ID
|
||||||
|
|
||||||
|
SNATIPPoolsSearchIP
|
||||||
|
[Tags] PositiveTestCase IP Settings SNATIPPools
|
||||||
|
${iplist} create list 192.168.50.35
|
||||||
|
CreateSNATIPPools SNAT_IP_Pools_Create-001 1 ${iplist}
|
||||||
|
EditSNATIPPools 192.168.50.35 IP EditSNATIPPoolsReplaceIP null
|
||||||
|
SNATIPDelete 192.168.50.35 IP
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
*** Settings ***
|
|
||||||
Force Tags tsg-ui settings SNAT IP Pools
|
|
||||||
Resource ../../../03-Variable/bifangapivariable.txt
|
|
||||||
Resource ../../../02-Keyword/tsg_ui/setting/Settings.robot
|
|
||||||
Library OperatingSystem
|
|
||||||
*** Test Cases ***
|
|
||||||
SNAT_IP_Pools_Create-001
|
|
||||||
${iplist} create list 192.168.50.35 192.168.50.34
|
|
||||||
Create-SNAT-IP-Pools SNAT_IP_Pools_Create-001 1 ${iplist} j=2
|
|
||||||
SNAT-IP-Delete SNAT_IP_Pools_Create-001 Name
|
|
||||||
@@ -11,6 +11,12 @@ CreateTrafficMirrorProfilesNameMinSize
|
|||||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||||||
DeletetrafficMirrorDel
|
DeletetrafficMirrorDel
|
||||||
|
|
||||||
|
CreateTrafficMirrorProfilesNameMaxSize
|
||||||
|
[Tags] PositiveTestCase vlan Settings TrafficMirrorProfile
|
||||||
|
CreateTrafficMirrorProfiles CreateTrafficMirrorProfilesNameMaxSizeCreateTrafficMirrorProfilesNameMaxSizeCreateTrafficMirrorProfilesNameMaxSizeCreateTrafficM xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
|
||||||
|
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||||||
|
DeletetrafficMirrorDel
|
||||||
|
|
||||||
CreateTrafficMirrorProfilesVlanMinSize
|
CreateTrafficMirrorProfilesVlanMinSize
|
||||||
[Tags] PositiveTestCase vlan Settings TrafficMirrorProfile
|
[Tags] PositiveTestCase vlan Settings TrafficMirrorProfile
|
||||||
CreateTrafficMirrorProfiles lyf-test-001-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 1 name
|
CreateTrafficMirrorProfiles lyf-test-001-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 1 name
|
||||||
@@ -30,7 +36,7 @@ CreateTrafficMirrorProfilesMac
|
|||||||
DeletetrafficMirrorDel
|
DeletetrafficMirrorDel
|
||||||
|
|
||||||
EditTrafficMirrorProfilesMac
|
EditTrafficMirrorProfilesMac
|
||||||
[Tags] PositiveTestCase mac Settings TrafficMirrorProfile
|
[Tags] PositiveTestCase mac ID Settings TrafficMirrorProfile
|
||||||
CreateTrafficMirrorProfiles lyf-test-004-mac xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:11 name
|
CreateTrafficMirrorProfiles lyf-test-004-mac xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:11 name
|
||||||
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span
|
${id} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[1]/div/div/span
|
||||||
EditTrafficMirrorProfiles ${id} lyf-Edit-test-001 xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:12 id
|
EditTrafficMirrorProfiles ${id} lyf-Edit-test-001 xpath=/html/body/div/div[1]/div[1]/ul/li[2] 11:11:11:11:11:12 id
|
||||||
@@ -38,7 +44,7 @@ EditTrafficMirrorProfilesMac
|
|||||||
DeletetrafficMirrorDel
|
DeletetrafficMirrorDel
|
||||||
|
|
||||||
EditTrafficMirrorProfilesVlan
|
EditTrafficMirrorProfilesVlan
|
||||||
[Tags] PositiveTestCase vlan Settings TrafficMirrorProfile
|
[Tags] PositiveTestCase vlan name Settings TrafficMirrorProfile
|
||||||
CreateTrafficMirrorProfiles lyf-test-005-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 4094 name
|
CreateTrafficMirrorProfiles lyf-test-005-vlan xpath=/html/body/div/div[1]/div[1]/ul/li[1] 4094 name
|
||||||
${name} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
${name} get text xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[3]/div[1]/div/div[2]/div/div[3]/table/tbody/tr[1]/td[2]/div/div/span
|
||||||
EditTrafficMirrorProfiles ${name} lyf-Edit-test-002 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
|
EditTrafficMirrorProfiles ${name} lyf-Edit-test-002 xpath=/html/body/div/div[1]/div[1]/ul/li[1] 11 name
|
||||||
|
|||||||
38
01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot
Normal file
38
01-TestCase/tsg_ui/ui_settings/VPNAccountsCase.robot
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
*** 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 ***
|
||||||
|
CreateVPNAccounts
|
||||||
|
[Tags] PositiveTestCase Settings VPNAccounts
|
||||||
|
CreateVPNAccounts CreateVPNAccounts 111111 name
|
||||||
|
VPNAccountsDelete
|
||||||
|
|
||||||
|
CreateVPNAccountsNameMinSize
|
||||||
|
[Tags] PositiveTestCase name Settings VPNAccounts
|
||||||
|
CreateVPNAccounts 1 111111 name
|
||||||
|
VPNAccountsDelete
|
||||||
|
|
||||||
|
CreateVPNAccountsNameMaxSize
|
||||||
|
[Tags] PositiveTestCase name Settings VPNAccounts
|
||||||
|
CreateVPNAccounts CreateVPNAccountsNameMaxSizeCreateVPNAccountsNameMaxSizeCreateVP 111111 name
|
||||||
|
VPNAccountsDelete
|
||||||
|
|
||||||
|
CreateVPNAccountsPasswordMinSize
|
||||||
|
[Tags] PositiveTestCase Password Settings VPNAccounts
|
||||||
|
CreateVPNAccounts CreateVPNAccountsNameMaxSizeCreateVPNAccountsNameMaxSizeCreateVP 1 name
|
||||||
|
VPNAccountsDelete
|
||||||
|
|
||||||
|
CreateVPNAccountsPasswordMaxSize
|
||||||
|
[Tags] PositiveTestCase Password Settings VPNAccounts
|
||||||
|
CreateVPNAccounts CreateVPNAccountsNameMaxSizeCreateVPNAccountsNameMaxSizeCreateVP aaaaaaaa11111111 name
|
||||||
|
VPNAccountsDelete
|
||||||
|
|
||||||
|
EditVPNAccountsPassword
|
||||||
|
[Tags] PositiveTestCase Password Settings VPNAccounts
|
||||||
|
CreateVPNAccounts EditVPNAccountsName-01 111111 name
|
||||||
|
EditVPNAccounts EditVPNAccountsName-01 222222 name
|
||||||
|
VPNAccountsDelete
|
||||||
|
|
||||||
@@ -48,8 +48,8 @@ Settings-Search
|
|||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
|
||||||
Create-SNAT-IP-Pools
|
CreateSNATIPPools
|
||||||
[Arguments] ${name} ${type} ${ip} ${j}=1
|
[Arguments] ${name} ${type} ${ip} ${j}=1
|
||||||
Sleep 1
|
Sleep 1
|
||||||
click id=children6 #点击一级目录Settings
|
click id=children6 #点击一级目录Settings
|
||||||
Sleep 1
|
Sleep 1
|
||||||
@@ -66,7 +66,7 @@ Create-SNAT-IP-Pools
|
|||||||
... AND sleep 2
|
... AND sleep 2
|
||||||
... AND input id=statusInputedit ${ip}[0] #输入ip内容,这里${value}是一个列表
|
... AND input id=statusInputedit ${ip}[0] #输入ip内容,这里${value}是一个列表
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND SANT-IP-IF ${j} ${ip} #判断是添加一个ip还是多个ip
|
... AND SANTIPIF ${j} ${ip} #判断是添加一个ip还是多个ip
|
||||||
... AND click id=wan_reach_test #点击可达性测试按钮
|
... AND click id=wan_reach_test #点击可达性测试按钮
|
||||||
... AND Wait Until Element Is Visible id=edit_0 20 #等待时间,等待元素出现后在进行后续操作
|
... AND Wait Until Element Is Visible id=edit_0 20 #等待时间,等待元素出现后在进行后续操作
|
||||||
run keyword if "${type}"=="2" run keywords sleep 1
|
run keyword if "${type}"=="2" run keywords sleep 1
|
||||||
@@ -74,19 +74,22 @@ Create-SNAT-IP-Pools
|
|||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND input xpath=//*[@id="remoteInput"]/div/div/input ${ip}[0] #搜索输入框输入
|
... AND input xpath=//*[@id="remoteInput"]/div/div/input ${ip}[0] #搜索输入框输入
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click xpath=//*[@id="wannat_vpn_color"]/div[1]/div/div/div/div[2]/div[3]/div/div/div[3]/table/tbody/tr/td[1]/div/span/div #点击搜索到的ip添加
|
... AND press keys xpath=//*[@id="remoteInput"]/div/div/input ENTER #回车搜索
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND SANT-IP-IF1 ${j} ${ip} #判断是搜索添加一个ip还是多个ip
|
... AND click xpath=//*[@id="wannat_vpn_color"]/div[1]/div/div/div/div[2]/div[3]/div/div/div[3]/table/tbody/tr #点击搜索到的ip添加
|
||||||
|
... AND sleep 1
|
||||||
|
... AND SANTIPIF1 ${j} ${ip} #判断是搜索添加一个ip还是多个ip
|
||||||
|
... AND click id=wan_reach_test #点击可达性测试按钮
|
||||||
sleep 1
|
sleep 1
|
||||||
click id=wanAdd_ok #点击ok
|
click id=wanAdd_ok #点击ok
|
||||||
sleep 2
|
sleep 2
|
||||||
${status} Run Keyword And Return Status Page Should Contain Go to #判断页面是否包含该文本
|
${status} Run Keyword And Return Status Page Should Contain Go to #判断页面是否包含该文本
|
||||||
Should Be Equal As Strings ${status} True #断言
|
Should Be Equal As Strings ${status} True #断言
|
||||||
|
|
||||||
Edit-SNAT-IP-Pools
|
EditSNATIPPools
|
||||||
[Arguments] ${value} ${search} ${name} ${type} ${ip}=null ${j}=1
|
[Arguments] ${value} ${search} ${name} ${type} ${ip}=null ${j}=1
|
||||||
Sleep 1
|
Sleep 1
|
||||||
SNAT-IP-Search ${value} ${search}
|
SNATIPSearch ${value} ${search}
|
||||||
sleep 1
|
sleep 1
|
||||||
click id=appEdit #点击修改按钮
|
click id=appEdit #点击修改按钮
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -102,14 +105,19 @@ Edit-SNAT-IP-Pools
|
|||||||
... AND input id=statusInputedit ${ip}[0]
|
... AND input id=statusInputedit ${ip}[0]
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click id=wan_reach_test
|
... AND click id=wan_reach_test
|
||||||
run keyword if "${type}"=="create" Run Keywords SNAT-IP_Range_Create ${j} ${ip}
|
... AND sleep 1
|
||||||
|
run keyword if "${type}"=="create" Run Keywords SNATIPRangeCreate ${j} ${ip}
|
||||||
|
... AND click id=wan_reach_test #点击可达性测试按钮
|
||||||
|
... AND Wait Until Element Is Visible id=edit_0 20
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click id=wan_reach_test
|
... AND click id=wan_reach_test
|
||||||
run keyword if "${type}"=="delete" and "${type1}"=="create" Run Keywords click id=delForm0
|
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND SNAT-IP_Range_Create ${j} ${ip}
|
run keyword if "${type}"=="delete" Run Keywords click id=delForm0
|
||||||
|
... AND sleep 1
|
||||||
|
... AND SNATIPRangeCreate ${j} ${ip}
|
||||||
... AND sleep 1
|
... AND sleep 1
|
||||||
... AND click id=wan_reach_test
|
... AND click id=wan_reach_test
|
||||||
|
... AND sleep 1
|
||||||
run keyword if "${type}"=="null" log 不做更改
|
run keyword if "${type}"=="null" log 不做更改
|
||||||
sleep 1
|
sleep 1
|
||||||
click id=wanAdd_ok #点击ok
|
click id=wanAdd_ok #点击ok
|
||||||
@@ -117,17 +125,17 @@ Edit-SNAT-IP-Pools
|
|||||||
${status} Run Keyword And Return Status Page Should Contain Go to #判断页面是否包含该文本
|
${status} Run Keyword And Return Status Page Should Contain Go to #判断页面是否包含该文本
|
||||||
Should Be Equal As Strings ${status} True #断言
|
Should Be Equal As Strings ${status} True #断言
|
||||||
|
|
||||||
SANT-IP-IF
|
SANTIPIF
|
||||||
[Arguments] ${j} ${ip}
|
[Arguments] ${j} ${ip}
|
||||||
#多个ip添加
|
#多个ip添加
|
||||||
run keyword if "${j}"!="1" SNAT-IP_Range_Create ${j} ${ip}
|
run keyword if "${j}"!="1" SNATIPRangeCreate ${j} ${ip}
|
||||||
|
|
||||||
SANT-IP-IF1
|
SANTIPIF1
|
||||||
[Arguments] ${j} ${ip}
|
[Arguments] ${j} ${ip}
|
||||||
#多个ip搜索
|
#多个ip搜索
|
||||||
run keyword if "${j}"!="1" SNAT-IP_Range_Search ${j} ${ip}
|
run keyword if "${j}"!="1" SNATIPRangeSearch ${j} ${ip}
|
||||||
|
|
||||||
SNAT-IP_Range_Search
|
SNATIPRangeSearch
|
||||||
[Arguments] ${j} ${ip}
|
[Arguments] ${j} ${ip}
|
||||||
#for循环添加ip
|
#for循环添加ip
|
||||||
sleep 1
|
sleep 1
|
||||||
@@ -139,18 +147,18 @@ SNAT-IP_Range_Search
|
|||||||
\ sleep 1
|
\ sleep 1
|
||||||
\ click xpath=//*[@id="wannat_vpn_color"]/div[1]/div/div/div/div[2]/div[3]/div/div/div[3]/table/tbody/tr/td[1]/div/span/div #点击搜索到的ip添加
|
\ click xpath=//*[@id="wannat_vpn_color"]/div[1]/div/div/div/div[2]/div[3]/div/div/div[3]/table/tbody/tr/td[1]/div/span/div #点击搜索到的ip添加
|
||||||
\ sleep 1
|
\ sleep 1
|
||||||
SNAT-IP_Range_Create
|
SNATIPRangeCreate
|
||||||
[Arguments] ${j} ${ip}
|
[Arguments] ${j} ${ip}
|
||||||
#for循环添加ip
|
#for循环添加ip
|
||||||
sleep 1
|
sleep 1
|
||||||
: FOR ${i} IN RANGE 1 ${j}
|
: FOR ${i} IN RANGE 0 ${j}
|
||||||
\ sleep 1
|
\ sleep 1
|
||||||
\ click id=temporary_form
|
\ click id=temporary_form
|
||||||
\ sleep 2
|
\ sleep 2
|
||||||
\ input id=statusInputedit ${ip}[${i}]
|
\ input id=statusInputedit ${ip}[${i}]
|
||||||
\ sleep 1
|
\ sleep 1
|
||||||
|
|
||||||
SNAT-IP-Search
|
SNATIPSearch
|
||||||
[Arguments] ${value} ${search}
|
[Arguments] ${value} ${search}
|
||||||
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input 20
|
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input 20
|
||||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input #点击搜索框
|
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input #点击搜索框
|
||||||
@@ -163,7 +171,7 @@ SNAT-IP-Search
|
|||||||
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
|
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[2]
|
||||||
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||||
... ELSE IF "${search}"=="IP" run keywords sleep 1
|
... ELSE IF "${search}"=="IP" run keywords sleep 1
|
||||||
... AND click xpath=/html/body/div[7]/div[1]/div[1]/ul/li[4]
|
... AND click xpath=/html/body/div/div[1]/div[1]/ul/li[4] #xpath=/html/body/div[7]/div[1]/div[1]/ul/li[4]
|
||||||
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
... AND input xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div[1]/div[3]/div/input ${value}
|
||||||
sleep 1
|
sleep 1
|
||||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/i #点击搜索按钮
|
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/i #点击搜索按钮
|
||||||
@@ -171,46 +179,51 @@ SNAT-IP-Search
|
|||||||
click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]
|
click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
SNAT-IP-Delete
|
SNATIPDelete
|
||||||
[Arguments] ${value} ${search}
|
[Arguments] ${value} ${search}
|
||||||
SNAT-IP-Search ${value} ${search} #搜索需要删除的数据
|
SNATIPSearch ${value} ${search} #搜索需要删除的数据
|
||||||
click id=appDel #点击删除按钮
|
click id=appDel #点击删除按钮
|
||||||
sleep 2
|
sleep 2
|
||||||
click xpath=/html/body/div/div/div[3]/button[2]
|
click xpath=/html/body/div/div/div[3]/button[2]
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
||||||
Create-VPN-Accounts
|
CreateVPNAccounts
|
||||||
[Arguments] ${name} ${passwd} ${search}
|
[Arguments] ${name} ${passwd} ${search}
|
||||||
Sleep 1
|
Sleep 1
|
||||||
click id=children6 #点击一级目录Settings
|
click id=children6 #点击一级目录Settings
|
||||||
Sleep 1
|
Sleep 1
|
||||||
click id=account #点击VPN Accounts按钮
|
click id=sidebarSetting_Wannat #点击wan net
|
||||||
sleep 1
|
sleep 1
|
||||||
|
click id=account #点击SNAT-IP-Pools
|
||||||
|
sleep 1
|
||||||
click id=app_create #点击新建按钮
|
click id=app_create #点击新建按钮
|
||||||
|
sleep 1
|
||||||
input xpath=//*[@id="wannat_vpn_username"]/div/div/div[1]/input ${name} #输入vpnname
|
input xpath=//*[@id="wannat_vpn_username"]/div/div/div[1]/input ${name} #输入vpnname
|
||||||
sleep 1
|
sleep 1
|
||||||
input xpath=//*[@id="wannat_vpn_password"]/div/div/input ${passwd} #输入密码
|
input xpath=//*[@id="wannat_vpn_password"]/div/div/input ${passwd} #输入密码
|
||||||
sleep 1
|
sleep 1
|
||||||
click id=wanAdd_ok #点击ok按钮
|
click id=wanAdd_ok #点击ok按钮
|
||||||
VPN-Accounts-Search ${name} ${search}
|
VPNAccountsSearch ${name} ${search}
|
||||||
${text1} Get Text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span #获取点击后页面文本信息
|
${text1} Get Text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span #获取点击后页面文本信息
|
||||||
Should Be Equal As Strings ${text1} ${name} #断言
|
Should Be Equal As Strings ${text1} ${name} #断言
|
||||||
|
|
||||||
Edit-VPN-Accounts
|
EditVPNAccounts
|
||||||
[Arguments] ${name} ${passwd} ${search}
|
[Arguments] ${name} ${passwd} ${search}
|
||||||
sleep 1
|
sleep 1
|
||||||
click id=appEdit #点击修改那妞
|
click id=appEdit #点击修改那妞
|
||||||
sleep 1
|
sleep 1
|
||||||
click xpath=//*[@id="wannat_vpn_password"]/div/div/span/span/i #点击小眼睛按钮,查看密码
|
click xpath=//*[@id="wannat_vpn_password"]/div/div/span/span/i #点击小眼睛按钮,查看密码
|
||||||
sleep 1
|
sleep 1
|
||||||
input xapth=//*[@id="wannat_vpn_password"]/div/div/input ${passwd} #修改密码
|
Clear Element Text xpath=//*[@id="wannat_vpn_password"]/div/div/span/span/i/../../../input
|
||||||
|
sleep 1
|
||||||
|
input xpath=//*[@id="wannat_vpn_password"]/div/div/span/span/i/../../../input ${passwd} #修改密码
|
||||||
sleep 1
|
sleep 1
|
||||||
click id=wanAdd_ok #点击OK
|
click id=wanAdd_ok #点击OK
|
||||||
VPN-Accounts-Search ${name} ${search}
|
VPNAccountsSearch ${name} ${search}
|
||||||
${text1} Get Text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span #获取点击后页面文本信息
|
${text1} Get Text xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr/td[1]/div/div/div[2]/span #获取点击后页面文本信息
|
||||||
Should Be Equal As Strings ${text1} ${name} #断言
|
Should Be Equal As Strings ${text1} ${name} #断言
|
||||||
|
|
||||||
VPN-Accounts-Search
|
VPNAccountsSearch
|
||||||
[Arguments] ${value} ${search}
|
[Arguments] ${value} ${search}
|
||||||
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input 20
|
Wait Until Element Is Visible xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input 20
|
||||||
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input #点击搜索框
|
click xpath=//*[@id="app"]/div/div[3]/div[2]/div/div[1]/div/div[2]/div[2]/div/div/div[2]/div/div/div/input #点击搜索框
|
||||||
@@ -224,7 +237,7 @@ VPN-Accounts-Search
|
|||||||
click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]
|
click xpath=//*[@id="wannat-table"]/div[3]/table/tbody/tr[1]
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
VPN-Accounts-Delete
|
VPNAccountsDelete
|
||||||
click id=appDel #点击删除按钮
|
click id=appDel #点击删除按钮
|
||||||
sleep 2
|
sleep 2
|
||||||
click xpath=/html/body/div/div/div[3]/button[2]
|
click xpath=/html/body/div/div/div[3]/button[2]
|
||||||
|
|||||||
Reference in New Issue
Block a user