Hi guys, anyone tried to do a nested random switch?
I am simulating a scenario which requires nested chance distribution, the scenario looks like this:
def scenarioBuilder: ScenarioBuilder = scenario(getClass.getSimpleName)
.forever {
randomSwitch(
0.5 -> randomSwitch(
0.5 -> exec(http("ActionA1-25%").get("/")),
0.5 -> exec(http("ActionA2-25%").get("/"))
),
0.5 -> exec(http("ActionB-50%").get("/"))
)
}
Thus I expected the results to be converging at 50% ActionB and 25% ActionA1 and ActionA2.
However in results ActionB gets some 99% requests and ActionA1 and ActionA2 only a few requests every now and then.
Is this even supported functionality?
Thanks