add_teardown_thread_group
Add a tearDown Thread Group to the TestPlan root that runs once after all normal thread groups finish, providing a dedicated step for one-time cleanup regardless of its tree position.
Instructions
Add a tearDown Thread Group under the TestPlan root. Runs once, after all normal Thread Groups finish, regardless of where it sits in the tree - typically used for one-time cleanup.
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>",
"numThreads": "<numThreads>",
"rampTimeSeconds": "<rampTimeSeconds>"
},
"name": "add_teardown_thread_group"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | tearDown Thread Group | |
| loops | No | Number of loop iterations per thread, -1 for infinite | |
| planId | Yes | ||
| parentId | Yes | ||
| numThreads | Yes | ||
| delaySeconds | No | Startup delay: seconds to wait before this thread group starts (enables the scheduler). Use it to stage thread groups, e.g. a second group that begins 5s after the first. | |
| durationSeconds | No | If set, run on a scheduler for this many seconds instead of a fixed loop count | |
| rampTimeSeconds | Yes |