diff --git a/02-Keyword/tsg_bfapi/PolicyObject.robot b/02-Keyword/tsg_bfapi/PolicyObject.robot index 350dbf7..2d7b45e 100644 --- a/02-Keyword/tsg_bfapi/PolicyObject.robot +++ b/02-Keyword/tsg_bfapi/PolicyObject.robot @@ -198,3 +198,20 @@ DeletePolicyAndObject DeleteAfterCase [Arguments] ${policyids} ${objectids} Run Keyword If '${testPart}'=='all' or '${testPart}'=='3' DeletePolicyAndObject ${policyids} ${objectids} +DeletePolicyAndObject1 + [Arguments] ${policyids} ${objectids} ${url} ${profiledId} + #删除策略 + log toDeletePolicy_DeletePolicyAndObject + ${listlenth}= Get Length ${policyids} + FOR ${var} IN RANGE ${listlenth} + log ${var} + DeletePolicy ${policyids}[${var}] + END + #删除对象 + log todeleteobj_DeletePolicyAndObject + Run Keyword If "${objectids}"=="${EMPTY}" log no obj to del + ... ELSE DeleteObject ${objectids} + #删除文件 + log todeleteobj_DeletePolicyAndObject + Run Keyword If "${profiledId}"=="${EMPTY}" log no file to del + ... ELSE DeletePolicyFile1 ${url} ${profiledId}