JMeter同步请求和同步计时器 [英] JMeter Synchronizing requests and Synchronizing Timer
问题描述
我想归档每个循环始终同时触发包含HTTP请求的各种事务控制器(TA).目前,他只是发送第一个同步的TA,而第二个则在1-5秒之间变化.
I want to archive that various transaction controller(TA) with containing HTTP requests are always fired at the same time for each loop. Currently, he's just sending the first TA synchronized and the second one varies between 1-5 sec.
JMeter设置:
-
线程组:5个线程,0上升,5个循环
Thread Group: 5 Threads, 0 Ramp up, 5 Loops
同步计时器:0和30000超时
Synchronizing Timer: 0 and 30000 Timeout
结果
- 在表中查看结果(使用Excel进行事务控制器过滤)
推荐答案
您正在滥用同步计时器.如果要对采样器进行分组,则需要在要分组的模拟用户数"输入中输入 5 .如果您保持 0 -将无效.
You're misusing Synchronizing Timer. If you want to group samplers you need to put 5 into "Number of Simulated Users to Group By" input. If you keep 0 - there will be no effect.
另外,最好删除顶部的同步计时器(在线程组下).
Also it's better to remove top Synchronizing Timer (under the Thread Group).
有关如何操作的详细信息,请参见使用JMeter同步计时器文章.使用计时器以及放置计时器的位置.
See Using the JMeter Synchronizing Timer article for detailed information on how to use and where to put the timer.
这篇关于JMeter同步请求和同步计时器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!