0

I have a one thread group with 100 requests in it, i am passing some ids from one request to another (it is a one complete flow of application). I want to achieve, if i give 50 threads, each thread should execute all requests without affecting the other thread flow i.e each thread should complete one flow of the application. And should be concurrently. we can achieve it by creating 50 thread groups but it does not seems good to have 50 thread groups. Is there any way to do it?

0

JMeter threads are absolutely independent, their context (session state, variables, etc) are stored locally hence each thread represents an individual virtual user.

Each thread executes samplers upside down (or according to Logic Controllers), this way you can pass the variables from one request to another within one thread

As you can see in below example 1 have 3 virtual users and they have different tokens while executing the same requests:

http://blazedemo.com/login

So it's absolutely OK to have 1 thread group as long as it represents single logical group of virtual users. The actual concurrency will depend on various factors like application response time, ramp-up period and test duration, check out What is the Relationship Between Users and Hits Per Second? for more insights.

| improve this answer | |
  • Thanks for your response cleared my some doubts ... if i run thread group with 1 thread it takes 30 sec to complete later if i increase thread to 2, should i expect execution duration to be 30 sec only? – Ash Jan 14 at 17:30

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.