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_adc/Wan_Nat/c_Dnat_Tests.robot
2020-08-18 09:32:49 +08:00

39 lines
1.4 KiB
Plaintext

*** Settings ***
Test Teardown DeletePolicyAndObject ${policyIds} ${objectids}
Library OperatingSystem
Resource ../../../02-Keyword/tsg_adc/SystemCommand.robot
Resource ../../../02-Keyword/tsg_bfapi/PolicyObject.robot
Resource ../../../02-Keyword/tsg_bfapi/LogVariable.robot
Resource ../../../05-Other/AllFlowCaseVariable.txt
Resource ../../../02-Keyword/tsg_adc/FileOperation.robot
Resource ../../../05-Other/AllFlowCaseVariable1.txt
*** Variables ***
${policyIds} ${EMPTY}
${objectids} ${EMPTY}
*** Test Cases ***
wan_nat-dnat-00001
#删除对象
${objectids} set Variable ${dnat_objectId}
#删除策略
${policyIds} Create List {"policyType":"wannat","policyIds":[${dnat_policyId}]}
wan_nat-dnat-00002
#删除对象
${objectids} set Variable ${dnat_objectId1}
#删除策略
${policyIds} Create List {"policyType":"wannat","policyIds":[${dnat_policyId1}]}
wan_nat-dnat-00003
#删除对象
${objectids} set Variable ${dnat_objectId2}
#删除策略
${policyIds} Create List {"policyType":"wannat","policyIds":[${dnat_policyId2}]}
wan_nat-dnat-00004
#删除对象
${objectids} set Variable ${dnat_objectId3}
#删除策略
${policyIds} Create List {"policyType":"wannat","policyIds":[${dnat_policyId3}]}