Jmeter: Sequential and Parallel execution

236 Views Asked by At

I want to run the login thread group always first and wait for it to finish. And then in the same test plan run other thread group in parallel.

e.g. Login-1 (always first ) Thread group-2 (after login in parallel) Thread group-3 (after login in parallel)

2

There are 2 best solutions below

0
On BEST ANSWER

Take a look at setUp Thread Group, as per description:

A special type of ThreadGroup that can be utilized to perform Pre-Test Actions. The behavior of these threads is exactly like a normal Thread Group element. The difference is that these type of threads execute before the test proceeds to the executing of regular Thread Groups.

More information: How to Use the SetUp Thread Group in JMeter

0
On

Below Test plan might help you. enter image description here

  • Here first thread group is a setUP Thread Group which will be executed once, Rest are regular thread groups.
    (You can run setUp Thread group with as many number of users and duration you want, other Regular Thread groups will wait until setup thread is completed)
  • On test plan level uncheck "Run Thread Groups consecutively"