Link test cases to a requirement
qtest_link_test_cases_to_requirementCreate coverage links by assigning test cases to a requirement, enabling traceability.
Instructions
Create coverage links between a requirement and one or more test cases. This is the primary traceability action: it marks the listed test cases as covering the requirement. IDs are numeric test case IDs (use qtest_list_test_cases to find 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": {
"projectId": "<projectId>",
"requirementId": "<requirementId>",
"testCaseIds": "<testCaseIds>"
},
"name": "qtest_link_test_cases_to_requirement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Numeric project ID. | |
| testCaseIds | Yes | Numeric test case IDs to link as coverage. | |
| requirementId | Yes | Requirement ID to link to. |