How to execute multiple requests sequentially in Apache Jmeter

I have an application where I need to execute load test.Its like I have request A and B and I have to test with 10 users and the request should go as first request - A, B, second request - A, B with rise period 0.

Can anyone help on this. I tried to do with a simple controller, but the request is sent randomly and fring error

+3


source to share


2 answers


Select the Run Thread Groups Consecutively checkbox in your test plan. It will send your request A and B to first users and then to second users, etc.

See this:



enter image description here

+1


source


If you really need to wait until the first user is executed before the second starts, the fastest and easiest solution would be to set Number of Threads

to 1 and program A and B queries 10 times in the Topic Group Configuration .

JMeter thread group configuration example




If for some reason you need to have 10 concurrent users but execute requests sequentially, you can upgrade to the cross-channel JMeter Communication plugin , which allows synchronization of JMeter threads (even those in different Thread groups)

The recommended way to install JMeter plugins and keep them up to date is JMeter Plugins Manager

JMeter Inter Thread Communication Plugin

+1


source







All Articles