Running multiple Thread Groups sequentially in JMeter

前端 未结 5 1388
南笙
南笙 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.

    0 讨论(0)
  • 2020-12-08 13:50

    Here is the simple solution which I found for Running multiple Thread Groups in particular order:

    1. Check the option "Run Thread Groups consecutively" under "Test Plan"
    2. Order your "Thread Group/s" in the order you want to be executed using drag and drop approach
    0 讨论(0)
  • 2020-12-08 13:54

    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.

    0 讨论(0)
  • 2020-12-08 14:08

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

    0 讨论(0)
  • 2020-12-08 14:10
    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.
    0 讨论(0)
提交回复
热议问题