diff --git a/02-Keyword/tsg_bfapi/policy_file_interface/FunctionalKeywords.robot b/02-Keyword/tsg_bfapi/policy_file_interface/FunctionalKeywords.robot index 9e68200..5c346d7 100644 --- a/02-Keyword/tsg_bfapi/policy_file_interface/FunctionalKeywords.robot +++ b/02-Keyword/tsg_bfapi/policy_file_interface/FunctionalKeywords.robot @@ -107,15 +107,7 @@ CreatePolicyFileNoFile [Documentation] ... 必传参数:url ... 可选参数:data(不传时使用默认值) - [Arguments] ${url} ${data} - ${suffix} Generate Random String - ${profileName} Catenate SEPARATOR=_ test ${suffix} - ${listlenth}= Get Length ${data} - ${requestbody} Set Variable {"opAction":"add","returnData":1,"trafficMirrorList":[{"profileName":"${profileName}","addrType":"mac","isValid":1,"addrArray":["00:A1:B2:06:C3:29"]}]} - FOR ${var} IN RANGE ${listlenth} - #log ${var} - ${request} Set Variable ${data}[${var}] - END + [Arguments] ${url} ${requestbody} ${content} Post-Request ${url} ${requestbody} ${msg} Set Variable ${content['msg']} ${list} Set Variable ${content['data']['list']}