0

I have the following Jmeter configuration where I have

1 Thread Group with Number of Threads 1 and under this 4 HttpRequest I have defined. The loop count is forever.

enter image description here

My question is how will my requests be fired ? Since I defined 1 as number of threads in our thread group , will it fire the above 4 requests sequentially or parallel ?

If I had defined 2 as number of threads in our thread group , then how would request would have been fired then ?

To make things simple, assume ramp up time is 0.

1

Since I defined 1 as number of threads in our thread group , will it fire the above 4 requests sequentially or parallel ?

As said in the manual,

samplers tell JMeter to send requests to a server and wait for a response. They are processed in the order they appear in the tree.

Regarding

If I had defined 2 as number of threads in our thread group

Eacher thread executes the requests in sequence independently. JMeter only takes care of ensuring the ramp-up period. If the requests from the first thread take longer than the ramp-up period, you will have some parallelism (overlap) between the two threads.

0

Each JMeter thread (virtual user) executes samplers upside down (or according to the logic controllers) sequentially. Each thread is independent

You can see which thread is doing what and when by adding __threadNum() function as the prefix/postfix for your Sampler labels and adding i.e. View Results in Table listener to your Test Plan

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.