add_random_controller
Add a Random Controller to a JMeter test plan to execute one randomly selected child per pass, enabling randomized test scenarios without manual setup.
Instructions
Add a Random Controller under the given parent (usually a Thread Group). On each pass it runs exactly one randomly chosen child (added under it) instead of all of them.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"planId": "<planId>",
"parentId": "<parentId>"
},
"name": "add_random_controller"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Random Controller | |
| planId | Yes | ||
| parentId | Yes |