jmeter学习总结

 

jmeter5.1.1:

使用jmeter客户端生成jmx后缀的测试脚本,在TestPlan节点下的ThreadGroup,等其他子节点,按照从上到下顺序执行,badboy脚本录制软件没有下载,

添加HttpRequest Defaults设置一些默认的信息,添加一个空的HttpCookieManager,不需要填内容,就可以实现线程组内所有线程的cookie共享,添加HttpHeaderManager设置一些

HttpHeader的编码格式,防止乱码,比如:Content-Type   charset=utf-8

遇到的坑:

测试http2netty-rpc-system

手写的httpserver绑定的ip地址写的是“127.0.0.1”,jmeter中Http Request Defaults设置的server name or ip为"localhost",看上去意思一样,然而结果是线程组内无法设置cookie,必须保持域名的一致,都写成localhost;

由于上面的坑,写了beanshell postprocessor和beanshellpreprocessor,查询了apache jmeter http的api,手动在两个request之间传送cookie,

https://blog.csdn.net/selingchen

https://blog.csdn.net/selingchen/article/details/48394649

http://pbook.testroad.org/

https://blog.csdn.net/lijing742180/article/details/81158212

有点累

posted on 2019-09-17 21:04  CreatorKou  阅读(291)  评论(0编辑  收藏  举报

导航