Running multiple Thread Groups sequentially in JMeter

非 Y 不嫁゛ 提交于 2019-11-29 00:57:47

Concerning consecutive execution of thread groups in test plan: simple check Run Test Group consecutively check-box on the Test Plan configuration screen:


  1. Use e.g. Loop Controller for this:

    Thread Group
    Number of Threads = 1
    Loop Count = 1
      ...
      Loop Controller
      Loop Count = N
          HTTP Request
      ...
    

    or even schema without Loop Controller but not so flexible:

    Thread Group
    Number of Threads = 1
    Loop Count = N
      ...
      HTTP Request
      ...
    
  2. Use Number of Threads property of standard Thread Group for this together with Ramp-Up Period property:

    Thread Group
    Number of Threads = N
    Ramp-Up Period = 0
    Loop Count = 1
      ...
      HTTP Request
      ...
    

    This will start N simultaneous threads executing same scenario.

Check the Run Thread Groups consecutively (i.e. run groups one at a time) in the Test Plan.

Regarding Alies Belik answer, there is another way than running thread group consecutively

which is to use Setup Thread Group for the first part.

Regarding setting ramp-up period, it is better to set a value > 0,

which is more realistic one as depending on the number of threads

to start it could delay there startup, the more you have the more it takes time to start.

Mangesh Bhapkar
  1. Just add more thread groups in your test plan.
  2. In test plan properties -> tick Run Test Group consecutively for step by step execution of thread groups.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!