From 07a90e9334d05c6566ad4c7afbc302c54d83da3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=AC=E5=B7=8D=E5=B7=9D?= Date: Tue, 16 Jun 2020 11:48:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A0=E9=99=A4=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=85=B3=E9=94=AE=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-Keyword/tsg_bfapi/PolicyObject.robot | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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}