3

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. enter image description here

Seirra
  • 49
  • 7

1 Answers1

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.

enter image description here

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
  • OP expect graceful tear down using duration – Ori Marko Dec 11 '19 at 12:14
  • 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