loadrunning 测试 Restful接口

2016-12-15  本文已影响83人  袏扌戒指

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);

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

上一篇下一篇

猜你喜欢

热点阅读