bzm Parallel Controller and vars.getIteration()

35 views
Skip to first unread message

Roger Johnson

unread,
Sep 1, 2025, 1:19:43 AMSep 1
to jmeter-plugins
Hello, folks. New subscriber, here.

I have JMeter 5.6.3 and, as of last week, BZM Parallel Controller & Sampler plug-in 0.12.

If my eyes aren't deceiving me, after adding this to some of my scripts, this plug-in is incrementing the iteration counter returned by the vars.getIteration() function when it shouldn't be. For said scripts, this affects a heap of If Controllers that are sensitive to the current iteration.

Wondering if anyone else has seen this; I'd be appreciative of any responses.

Regards, Roger
Message has been deleted

Dmitri T

unread,
Sep 1, 2025, 10:16:32 AMSep 1
to jmeter-plugins
It sounds like a bug in the plugin's implementation, you need to raise it with BlazeMeter Support.  What you could do is to save current iteration number into a JMeter Variable before the Parallel Controller and then overwrite the value after the Parallel Controller. 

Something like:

In the JSR223 Sampler before the parallel controller:

vars.putObject('iteration', vars.getIteration())

In the JSR223 Sampler after the parallel controller:

vars.iteration = vars.getObject('iteration')

More information on Groovy scripting in JMeter: Apache Groovy: What Is Groovy Used For?

Roger Johnson

unread,
Sep 1, 2025, 6:56:07 PMSep 1
to jmeter-plugins
Cheers, Dmitri.
Reply all
Reply to author
Forward
0 new messages