loadrunning 测试 Restful接口

web_custom_request("request",//请求名称

"Method=POST",//请求的方法

"URL=http://192.168.1.141:8080/xxx/function",//请求地址

"RecContentType=application/json", //指定相应头的Content-Type,这里是JSON

"EncType=application/json", //指定请求头的Content-Type,这里也是JSON

"Mode=HTML",

"Body=参数",

LAST);

设置日志输出返回结果就能看出来是否请求成功

你可能感兴趣的:(loadrunning 测试 Restful接口)