jmeter疑难杂症

mac启动jmeter

进入jmeter文件夹下的bin目录
执行sh jmeter

如何线程与线程之间按照顺序执行

线程组内随机执行

选择线程组右键 >>> 添加 >>> 逻辑控制器 >>> 随机顺序控制器(Random Order Controller)
jmeter疑难杂症_第1张图片

如何提取cookie的值

1、修改JMeter的bin目录下的jmeter.properties
2、搜CookieManager.save.cookies
jmeter疑难杂症_第2张图片
3、重启jmeter
4、执行线程之后,获取到的cookie就会被保存在线程变量里,具体的格式为COOKIE_xxxx,其中xxxx为具体的实际cookie名;这样在同一个线程组内其它操作组件都是可以直接通过${COOKIE_xxxx}来获取的
注:localstorage的值是去不了的

设置/获取全局变量

jmeter疑难杂症_第3张图片
ps:在Function Helper里面都能找到
设置:

${__setProperty($.data,)}

获取:

${__property(,,)}

JMeter报JSONObject not found in namespace

https://blog.csdn.net/qq_38776582/article/details/105859428

JMeter–调试–查看日志

jmeter疑难杂症_第4张图片

vars/props的区别

https://www.lfhacks.com/tech/jmeter-vars-props/#saveobj
https://www.coder.work/article/4733834
https://www.yii666.com/blog/304384.html?action=onAll

你可能感兴趣的:(jmeter)