Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we run two thread groups parallely in a single test plan in Jmeter?

can we run two thread groups parallel by creating a single test plan in Jmeter ??

Example:

I have to add 2 test cases in a test plan, which has to be executed in parallel and can we combine this test plan with any other test plan to be executed simultaneously

like image 211
user3743995 Avatar asked Jun 16 '14 07:06

user3743995


People also ask

How do I run multiple thread groups parallely in JMeter?

You should add multiple "Thread Group" into a "Test Plan". Inside "Test Plan" unselect "Run thread groups consecutively". Inside every "Thread Group" configure "Number of Threads(users)" as "5", "Ramp-Up Period" as "0", "Loop Count" as "1". For 5 Samplers you should need 5 "Thread Group".

Can we add multiple test plan in JMeter?

From my understanding and my point of view, to have multiple tests plans, you must create several . jmx file. For instance, if you need to test different servers or application. If you need to test multiple scenario in a same application, so combining them into in a single .

How many threads can I run JMeter?

This depends on the test plan and the number of listeners, but users have reported successfully running 1000 threads in a single JMeter instance. Also, note that JMeter can place a much higher load on a system than a human user can, as it can make requests much faster.

How do I run a concurrent thread in JMeter?

1. Setting up Concurrency Thread Group in JMeter — Create Test Plan in File in JMeter and add Concurrency Thread Group to it. For example: In the above case, 100 users need to be maintained on server for steady state of 5 min. Target Concurrency is 100 and Hold Target Rate Time is 5 min.


1 Answers

Jmeter supports running more than one scenario in parallel as part of the same test plan.

Each scenario is managed in its own Thread Group element.

So for your case, add a new Thread Group to the test plan, and set the steps for the second scenario there. When you have more than 1 Thread Group, you can configure the test plan to start them at the same time (or one after the other).

There is no guarantee that the requests will be in the exact same time, but both Thread Groups will start simultaneously.

Hope it helps :)

like image 62
itaymendel Avatar answered Oct 24 '22 00:10

itaymendel