Jmeter简单接口测试实例

1、从配置元件----添加HTTP Cookie管理器

2、从配置元件----添加HTTP请求默认值

 

3、从Sampler----添加HTTP请求,此取样器是发送给服务器的POST请求

4、从Sampler----添加HTTP请求,此取样器是本地浏览器获取到服务器返回的GET请求

5、添加响应断言

6、添加监听器

7、 如果请求头为'Content-Type':'application/json;charset=utf-8'则必须要加上HTTP信息头管理器

 

用python脚本实现请参考http://www.cnblogs.com/szmcn/p/6840308.html

posted @ 2017-07-03 22:08  Next十年  阅读(535)  评论(0编辑  收藏  举报