bzm - Weighted Switch Controller not processing all samplers in a subgroup

852 views
Skip to first unread message

Andre

unread,
Jul 8, 2016, 8:03:12 PM7/8/16
to jmeter-plugins
Hi,
I'm trying to use the new bzm - Weighted Switch Controller to randomise some transactions however some of my transactions consist of multiple samplers and others are a single sampler. The documentation on the new sampler is unfortunately fairly sparse.
I'd expect that the switch controller would simply direct a thread randomly to a child item and the thread would then finish processing all samplers it finds in that child item before being sent to another child item.
Currently it seems to execute a single sampler within a child item regardless of however many there are and then gets randomized again and sent to another child item.

An example test plan:

Thread Group
  > bzm - Weighted Switch Controller (50/50 weighting)
    > Simple Controller
      > SubSampler1
      > SubSampler2
    > Sampler3

If I loop the above 10 times, the results look like:
SubSampler1
Sampler3
SubSampler2
Sampler3
Sampler3
...
With 9 (?!) results total.

However, I'd expect the results to look more like this:

SubSampler1
SubSampler2
Sampler3
SubSampler1
SubSampler2
Sampler3
Sampler3
...
With 15 results total (5 runs of the simple controller yielding 10 sample results plus 5 samples from Sampler3)

What's the expected behaviour or the Weighted Switch Controller here? Does it effectively only work correctly if it exclusively has samplers as direct child items?

atchakr...@gmail.com

unread,
Dec 29, 2016, 6:16:03 AM12/29/16
to jmeter-plugins, acry...@gmail.com
I am seeing similar issues with weighted switch controller. any update on this post?

gli...@gmail.com

unread,
Dec 29, 2016, 8:51:30 PM12/29/16
to jmeter-plugins, acry...@gmail.com
As per the documentation:

This plugin is experimental and unstable. It is not recommended to use it.

So I would recommend using either Throughput Controller or Switch Controller instead. See Running JMeter Samplers with Defined Percentage Probability article for example configurations an usage instructions. 
Reply all
Reply to author
Forward
0 new messages