add_loop_controller
Adds a loop controller to a JMeter test plan so child samplers repeat a set number of times or indefinitely, enabling iterative load testing scenarios.
Instructions
Add a Loop Controller under the given parent (usually a Thread Group). Samplers added under it (as its children) repeat for the given number of loops each time the controller is reached.
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_loop_controller"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Loop Controller | |
| loops | No | Number of iterations, or -1 to loop forever | |
| planId | Yes | ||
| parentId | Yes |