i474
i474

Reputation: 654

Simultaneous requests in 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

Upvotes: 4

Views: 6947

Answers (2)

Dmitri T
Dmitri T

Reputation: 168002

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.

Upvotes: 2

NaveenKumar Namachivayam
NaveenKumar Namachivayam

Reputation: 1202

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

Upvotes: 5

Related Questions