How can I go about running tests/controllers based on random weight? For instance, have two tests, one with a weight of 25%, the other with 50%. The one with 50 should run twice as often.
Perhaps throughput controller mixed with random somehow?
I think you can use Throughput Controllers configured someway like the following:
Throughput values are pre-set, either from configuration properties or generated in acceptable range of values (0..100 in this case).
For some simple weightings you can use the fact the switch controller defaults to the first child to your advantage. Eg 50% 25% 25% like so
Switch Controller - ${__Random(0,3)}
- Child 0 (and 3)
- Child 1
- Child 2
You take this one step further by grouping tasks in Random and Simple controllers as the children.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With