Update Test Case
update_test_caseUpdate an existing test case in QA Sphere. Modify optional fields like title, priority, steps, or tags; omitted fields retain current values.
Instructions
Update an existing test case in QA Sphere. Only users with role User or higher are allowed to update test cases. Optional fields can be omitted to keep the current value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | List of tag titles | |
| links | No | Additional links relevant to the test case | |
| steps | No | List of test case steps | |
| title | No | Test case title. In template test cases, may contain `${var}` placeholders that are substituted via `parameterValues` to produce filled test case titles. | |
| comment | No | Test case precondition (HTML format). DEPRECATED — prefer the `precondition` object | |
| isDraft | No | To publish a draft test case. A published test case cannot be converted to draft | |
| priority | No | Test case priority | |
| projectCode | Yes | Project code identifier (e.g., BDI) | |
| customFields | No | Custom field values to update. Only the specified keys are modified; others remain unchanged. | |
| precondition | No | Test case precondition: either `{sharedPreconditionId}` to reference a shared one, or `{text}` for a standalone precondition | |
| requirements | No | Test case requirements | |
| parameterValues | No | Full replacement of the template test case parameter values. Applies only when the target is a template test case: entries with `tcaseId` update the corresponding filled test case; entries without `tcaseId` generate a new one; any existing filled test case whose `tcaseId` is not present in this array will be deleted. To preserve existing filled test cases while appending, include their current `{tcaseId, values}` pairs. | |
| tcaseOrLegacyId | Yes | Test case identifier (can be one of test case UUID, sequence or legacy ID). Note: when the target is a `filled` test case, only `priority` can be updated directly; to change other fields, update the parent template or use `parameterValues`. | |
| filledTCaseTitleSuffixParams | No | Parameter names whose substituted values are appended to each filled test case title for disambiguation (e.g., pass `["env"]` to suffix titles with the `env` value). Applies only to template test cases. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Success message |