create_autotest
Creates an automated test and links it to test cases, marking those cases automated so test runs can be generated from a test plan.
Instructions
Create an autotest. Linking it to test cases (workItemIds) makes those cases automated, which is required to create test runs from a test plan. Results are later sent by externalId (submit_test_run_results). Extra AutoTestCreateApiModel fields can go into "payload".
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": {
"externalId": "<externalId>",
"name": "<name>"
},
"name": "create_autotest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| tags | No | ||
| setup | No | ||
| steps | No | ||
| title | No | ||
| payload | No | ||
| teardown | No | ||
| classname | No | ||
| namespace | No | ||
| projectId | No | Project UUID (defaults to TESTIT_PROJECT_ID). | |
| externalId | Yes | Stable ID of the test in your code, unique per project. | |
| description | No | ||
| projectName | No | ||
| workItemIds | No | Work item UUIDs to link the autotest with. |