Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simultaneous requests in JMeter

Tags:

jmeter

Assume I have two users in Thread Group and want them to fire two requests simultaneously. User 1 - HTTP Request A and User 2 - HTTP Request B.

Any ideas how to implement that ?

enter image description here

like image 718
i474232898 Avatar asked Oct 18 '25 22:10

i474232898


2 Answers

To trigger the requests simultaneously, you need to place your each requests in different thread group as shown below.

enter image description here

Also, make sure that in the Test Plan, below option is unchecked.

enter image description here

Above settings will execute the request simultaneously. Below is the sample output.

enter image description here

like image 72
NaveenKumar Namachivayam Avatar answered Oct 21 '25 09:10

NaveenKumar Namachivayam


Just add Synchronizing Timer to your Thread Group and set Number of Simulated Users to Group by to 2 like:

JMeter Synchronizing Timer

The Synchronizing Timer will pause the first thread until second one is ready to execute the HTTP Request sampler so both threads will be run simultaneously. See Using the JMeter Synchronizing Timer article for more details.

like image 26
Dmitri T Avatar answered Oct 21 '25 09:10

Dmitri T



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!