51 lines
2.1 KiB
Plaintext
51 lines
2.1 KiB
Plaintext
|
|
*** Settings ***
|
||
|
|
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
|
||
|
|
Force Tags tsg_adc proxy_policy
|
||
|
|
Library OperatingSystem
|
||
|
|
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
|
||
|
|
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
|
||
|
|
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
|
||
|
|
Resource ../../../02-Keyword/tsg_bfapi/ApiRequest.robot
|
||
|
|
Resource ../../../03-Variable/AllFlowCaseVariable.txt
|
||
|
|
Library String
|
||
|
|
Library Custometest
|
||
|
|
|
||
|
|
*** Variables ***
|
||
|
|
${policyIds} ${EMPTY}
|
||
|
|
${objectids} ${EMPTY}
|
||
|
|
|
||
|
|
*** Test Cases ***
|
||
|
|
test
|
||
|
|
${isp} Create List transtel tnsplus ktel-mask ktel-bng ktel-mxpe
|
||
|
|
${value} Set Variable transtel
|
||
|
|
${aaaaa} Index ${isp} ${value}
|
||
|
|
# index ${isp} ${value}
|
||
|
|
log ${aaaaa}
|
||
|
|
create_PacketCapture_Select_Location
|
||
|
|
#添加一个vpn
|
||
|
|
${PacketCapture} Create Dictionary policyId= policyName=zmmtest addrType=4 protocol=6 clientIp=192.168.40.5 clientPort=120 serverIp=0.0.0.0 serverPort=0 maxPacket=1000 captureDuration=1
|
||
|
|
${location} Create List Almaty Nursurtan
|
||
|
|
# ${location} Create List
|
||
|
|
# ${isp} Create List transtel tnsplus ktel-mask ktel-bng ktel-mxpe
|
||
|
|
${isp} Create List
|
||
|
|
log ${PacketCapture}
|
||
|
|
${PacketCaptureresponse} Add&Edit_PacketCapture ${PacketCapture} ${location} ${isp}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
create_PacketCapture_Select_ISP
|
||
|
|
#添加一个vpn
|
||
|
|
${wan_vpn_dict} Create Dictionary username=zmmtest2 password=abcdef iconColor=#dddddd
|
||
|
|
${wan_vpn_dict_2} Create Dictionary username=zmmtest3 password=abcdef iconColor=#dddddd
|
||
|
|
${wan_vpn_list} Create List ${wan_vpn_dict} ${wan_vpn_dict_2}
|
||
|
|
${a} AddWanVpn ${wan_vpn_list}
|
||
|
|
log ${a}
|
||
|
|
delete_wan_vpn_1
|
||
|
|
# 删除一个vpn
|
||
|
|
${deletelist} Create List 31
|
||
|
|
${a} DeleteWanVpn ${deletelist}
|
||
|
|
delete_wan_vpn_2
|
||
|
|
# 删除一个vpn
|
||
|
|
${deletelist} Create List 35 33
|
||
|
|
${a} DeleteWanVpn ${deletelist}
|
||
|
|
${result} Replace String ${test01} ( ;
|