jmeter持续时间循环控制器,在jmeter中的循环控制器之间添加等待

How to add wait of 30 sec. in between 2 loop controller?

Each loop controller has loop count 10.

Scenario:

1.No. of threads=5

2.For each user, No. of loop controllers=5

Loop_controller_1(count=10, i.e. 10 HTTP request)

Wait for 10 sec

Loop_controller_2(count=10 i.e. 10 HTTP request)

wait for 10 sec

Loop_controller_3(count=10 i.e. 10 HTTP request)

wait for 10 sec

Loop_controller_4(count=10 i.e. 10 HTTP request)

wait for 10 sec

Loop_controller_5(count=10 i.e. 10 HTTP request)

wait for 10 sec

Please check there is no wait between 10 HTTP request, it must wait after 10 are completed. How to use Jmeter components?

解决方案

Depending on what you're trying to achieve:

You can add a 30 seconds wait for each thread (virtual user) individually you can add a Constant Timer as a child of the first request in the Loop Controller 2, timers are executed before requests so each thread will wait for the defined amount of time prior to starting the new Loop Controller

dks03.png

You can configure JMeter to "gather" all threads and tell them to wait for the specified amount of time together by adding a Flow Control Action sampler and a Synchronizing Timer with number of users to group by equal to the number of threads in your thread group

jI0Mi.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值