update_test_case_step
Update an existing test step in QMetry by modifying its step details, expected result, or test data. Requires the test case ID and step ID.
Instructions
Edit an existing test step (PUT …/versions/{v}/teststeps with a JSON array). stepId is the numeric id from get_test_case_steps. Provide at least one of stepDetails, expectedResult, testData.
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": {
"testCaseId": "<testCaseId>",
"stepId": "<stepId>"
},
"name": "update_test_case_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | QMetry project ID (default: none) | |
| testCaseId | Yes | Internal id or key | |
| versionNo | No | ||
| stepId | Yes | Step id from test step search/list | |
| stepDetails | No | Action / step text | |
| expectedResult | No | ||
| testData | No | ||
| useLatestVersion | No | If true, use /versions/latest/… in the path instead of versionNo |