数据分离逐步封装,差进行数据到逻辑的一层,后继补充

This commit is contained in:
dongxiaoyan
2021-01-07 10:24:42 +08:00
parent 4f17fda479
commit caa8dd2859
4 changed files with 393 additions and 15 deletions

View File

@@ -3,7 +3,6 @@ Library Collections
Library RequestsLibrary
Resource ../../../03-Variable/BifangApiVariable.txt
Resource ../../common/ApiHttpRequest.robot
Variables ../../../05-Other/variable/policy/apipolicyrequesttest.py
Library REST http://${host}:${port}
Library json
@@ -139,7 +138,7 @@ DelGroupObjects
FOR ${var} IN @{objectids}
log ${var}
DelGroupObject ${var}
END
END
DelGroupObject
[Arguments] ${objectids}
@@ -160,7 +159,7 @@ DelPolicyAndObjectAndProfile
DelProfiles
[Arguments] ${profiles}
FOR ${profile} IN @{profiles}
Run Keyword If "${profile}"!="" and ${profile}!="${EMPTY}" DelProfile ${profile}[typeUrl] ${profile}[profileIds]
Run Keyword If "${profile}"!="" and ${profile}!="${EMPTY}" DelProfile ${profile}[typeUrl] ${profile}[profileIds]
END
DelProfile
@@ -172,4 +171,5 @@ DelProfile
Should Be Equal As Strings ${response_code} 200
#Integer ${response_code} 200
${response} Convert to String ${response}
log ${response}
log ${response}