i am running a simple test with 10 users for 5 mins. my test has a single thread and different transactions within it. By the end of the test, there is a different number of samples for each transaction. Is there a way or a setting so that we don't start any new thread when the test is finishing, i tried ultimate thread group plugin with ramp down , hoping to see same samples for all requests but it didn't happen. Not sure if that is even possible.
Asked
Active
Viewed 1,672 times
3

Seirra
- 49
- 7
-
have you tried wrapping all your samplers into Transaction controller? I would assume that should do the trick. – Parth Mehta Dec 11 '19 at 13:39
-
i did try that but that didn't work either. – Seirra Dec 11 '19 at 13:58
1 Answers
1
Each JMeter thread (virtual user) executes Samplers upside down (or according to the Logic Controllers)
When you're defining test duration it might be the case that some virtual users are somewhere in the "middle" of the Samplers and they stop when they receive shutdown signal.
It means that the very first sampler will be executed with 100% of users and for further samplers the chance of getting executed becomes lower and lower.
The only way to have the same number of Sample Results for all Samplers is using normal JMeter Thread Group and providing fixed amount of loops.
Given above setup you will have strictly 80 executions of each and every Sampler in the Test Plan
More information: Getting Started with JMeter - A Basic Tutorial

Dmitri T
- 159,985
- 5
- 83
- 133
-
-
i have tried loop earlier and it works like you said. i was just trying to see if i can get it working without using the loops. I believe what i am trying is not possible without loops.Thanks – Seirra Dec 11 '19 at 14:03