Add wait between loop controllers in jmeter

梦想与她 提交于 2021-02-11 15:02:31

问题


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?


回答1:


Add Flow Control Action between Controllers and choose Pause with 10000 miliseconds

allows pauses to be included without needing to generate a sample




回答2:


Depending on what you're trying to achieve:

  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

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



来源:https://stackoverflow.com/questions/64975861/add-wait-between-loop-controllers-in-jmeter

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!