在jmeter中的循环控制器之间添加等待 [英] Add wait between loop controllers in jmeter

查看:601
本文介绍了在jmeter中的循环控制器之间添加等待的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何添加30秒的等待时间.在两个循环控制器之间?

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

每个循环控制器的循环计数为10.
场景:
1.没有的线程数= 5
2.对于每个用户,循环控制器的数量= 5

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(计数= 10,即10个HTTP请求)
  • 等待10秒
  • Loop_controller_2(计数= 10,即10个HTTP请求)
  • 等待10秒
  • Loop_controller_3(count = 10,即10个HTTP请求)
  • 等待10秒
  • Loop_controller_4(计数= 10,即10个HTTP请求)
  • 等待10秒
  • Loop_controller_5(count = 10,即10个HTTP请求)
  • 等待10秒
  • 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

请检查在10个HTTP请求之间没有等待,它必须在10个完成之后等待.如何使用Jmeter组件?

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:

  1. 您可以为每个线程(虚拟用户)添加30秒的等待时间,分别您可以添加

  1. 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

您可以将JMeter配置为收集".所有线程,并通过添加流控制操作来告诉它们一起等待指定的时间采样器和同步计时器,并具有用户数按等于线程组中线程数的方式进行分组

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

这篇关于在jmeter中的循环控制器之间添加等待的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆