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?