multithreadingtestinggroovyjmeterload-testing

Configuring JMeter for Sequential Thread Execution with Parallel Load Testing


I'm currently working on a JMeter test plan that involves three thread groups. Typically, I run them one by one, ensuring sequential execution by checking the "Run Thread Groups consecutively" checkbox.

However, I now find myself facing a challenge in configuring the test plan to meet the following criteria:

1.Execute the first thread group once.
2.Execute the second thread group simultaneously for 500 users for a load test.
3.Execute the third thread group once.

Here's the catch: the threads are dependent on each other, meaning they should run sequentially. Additionally, when the second thread group is in execution, it should run concurrently for 500 users only after the completion of the first thread group.

I'm looking for guidance on how to set up JMeter to achieve this specific sequence and parallelism. Any insights, suggestions, or step-by-step instructions would be immensely helpful. Thanks a lot!

"I've set up a test plan with three threads, running sequentially. While this works well, I'm facing a challenge with the second thread. I need to perform a load test with 500 users, but when I use a Loop Controller for the second thread, it executes users one by one. Instead, I want all 500 users to run concurrently. How can I achieve this?"

Here is my 2nd thread group which i want to execute for 500 users concurrently after 1st thread group is executed.


Solution

  • If you're talking about "normal" Thread Group - it executes users according to your Ramp-Up period, number of iterations and/or the time to hold the load.

    You can either share your configuration or amend it according to the above information or consider switching to i.e. Ultimate Thread Group which provides easy visual way of defining ramp-up, time to hold the load, ramp-down, spikes, whatever you want.