Re-initialize the maximum value of the Jmeter counter

I spent a lot of time researching it, but found that the Counter element in my test plan Jmeter was initialized only once. Happening:

I have a ForEach controller with Counter as a child. The value of Counter Max is determined by the variable. I expect this maximum counter value to be reinitialized in every loop. But this is not true. Counter max is set once and will no longer be changed in other cycles.

Of course, I can easily implement the same functionality using BeanShell Sampler (and what I'm doing now). But my question is : is there a way to reinitialize the value of counter max without scripts?

+5
source share
1 answer

The maximum counter value is effectively read each time the counter is executed.

So, if you find that this is not the case, then most likely the problem is updating the maximum value.

You can add a Debug Sampler after setting this value to check the value of the variables and use the View result tree to see the values.

0
source

Source: https://habr.com/ru/post/1244277/


All Articles