添加 Wan Vpn 新建与删除关键字 以及 使用示例

This commit is contained in:
朱明明
2020-08-03 15:20:03 +08:00
parent f5f1de9f00
commit eb69e84d5e
3 changed files with 62 additions and 2 deletions

View File

@@ -0,0 +1,36 @@
*** 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
*** Variables ***
${policyIds} ${EMPTY}
${objectids} ${EMPTY}
*** Test Cases ***
create_wan_vpn_1
#添加一个vpn
${wan_vpn_dict} Create Dictionary username=zmmtest1 password=abcdef iconColor=#dddddd
${wan_vpn_list} Create List ${wan_vpn_dict}
${a} AddWanVpn ${wan_vpn_list}
log ${a}
create_wan_vpn_2
#添加一个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}