jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Speteanu <>
Subject Re: Global counter
Date Thu, 18 Aug 2011 11:31:23 GMT

According to the position of the counter, this is expected behaviour - you
are getting the value of the counter as you can use it (if you need the max
value of the counter at any time, I don't think this is how you want to
approach this). You place the counter as child to the thread group as you
did when you need it to be incremented with each new thread and with each
new loop of any thread. The counter increments when its parent is used again
(or enters the next loop), this is so so that you can you use the value of
the counter in that exact thread & loop.

Does this help?

Adrian S

On Thu, Aug 18, 2011 at 1:40 PM, Heinz Drews <> wrote:

> Hello,
> I'm using a global CounterConfig which is incremented once per thread.
> For testing I use following simple Testplan:
> ThreadGroup (Threads 10)
> +OnceOnlyController
> ++CounterConfig (Start 1, Increment 1, ref TC)
> +DebugSampler
> +WhileController
> ++DebugSampler
> The DebugSampler inside the WhileController always shows the same
> value per thread.
> Thread 1 has value 1, Thread 2 has value 2 etc.
> How can I get the actual value of the counter?
> Thanks,
> Heinz
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message