Running multiple Thread Groups sequentially in JMeter

前端 未结 5 1397
南笙
南笙 2020-12-08 13:24

I have a Test plan in which there are multiple Thread Groups.
I want to run all of the Thread Groups sequentially.
Thread Groups are as below:

Thread         


        
5条回答
  •  执笔经年
    2020-12-08 13:50

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

    enter image description here


    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.

提交回复
热议问题