Skip to content

WeightedSwitchController vs. RandomSwitchController #96

Answered by rabelenda
MaksSieve asked this question in Ideas
Discussion options

You must be logged in to vote

Hello,

I don't see in your implementation of randomSwitch the actual import for RandomSwitchController class. Is this jmeter RandomController, or is it WeightedSwitchController with "Random Choice" option selected, or is it some other controller implementation?

I think, that if you implement WeightedSwitchController, you might want to consider adding to it a randomSelection method to allow for setting the "Random Choice" option.

Now, considering that, jmeter RandomController would be similar to weightedSwitchController with random choice and all elements with same weight (or no weight). Ie:

//in this scenario we are not using add(double, ThreadGroupChild) since there is no need to set wei…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@MaksSieve
Comment options

@rabelenda
Comment options

@MaksSieve
Comment options

Answer selected by rabelenda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants