add_while_controller
Add a While Controller under a parent element in a JMeter test plan to repeat child samplers while a condition holds or until the last sampler succeeds.
Instructions
Add a While Controller under the given parent (usually a Thread Group). Samplers added under it (as its children) repeat while condition holds. Leave condition blank (or 'LAST') to loop while the last sampler in the loop succeeded; otherwise it's a JMeter expression re-evaluated each pass, looping until it evaluates to the literal string 'false'.
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_while_controller"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | While Controller | |
| planId | Yes | ||
| parentId | Yes | ||
| condition | No |