美文网首页
loadrunning 测试 Restful接口

loadrunning 测试 Restful接口

作者: 袏扌戒指 | 来源:发表于2016-12-15 14:41 被阅读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);

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

    相关文章

      网友评论

          本文标题:loadrunning 测试 Restful接口

          本文链接:https://www.haomeiwen.com/subject/bsxckttx.html