1、中间件比率测试:只出数据不出结论;增加日志总量查询关键字;
2、制造http支持alert数据; 3、删除策略中目标对象的默认引用
This commit is contained in:
@@ -103,6 +103,29 @@ CreatePolicyFile3
|
||||
Log profileId:${profileId}
|
||||
[Return] ${response}
|
||||
|
||||
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
|
||||
${content} Post-Request ${url} ${requestbody}
|
||||
${msg} Set Variable ${content['msg']}
|
||||
${list} Set Variable ${content['data']['list']}
|
||||
${profileId} Set Variable ${list[0]['profileId']}
|
||||
${profileName} Set Variable ${list[0]['profileName']}
|
||||
${response} Create Dictionary msg=${msg} profileId=${profileId} profileName=${profileName}
|
||||
Log add operation:${msg}
|
||||
Log profileId:${profileId}
|
||||
[Return] ${response}
|
||||
|
||||
CreatePolicyMutipartFile
|
||||
[Documentation]
|
||||
... 必传参数:url、filePath(文件路径)、pubFileName(证书文件名)、priFileName(私钥文件名)
|
||||
|
||||
Reference in New Issue
Block a user