update_test_case
Update an existing test case with specific fields like title, priority, suite, steps, or tags. Only provided fields are modified, leaving others unchanged.
Instructions
Update an existing test case in TestCollab. Only provided fields will be updated. Tip: Call get_project_context first to resolve suite/tag/custom field names to IDs. Tip: If you need existing steps (e.g., to fill missing expected results), call get_test_case first and then use steps_patch.
Required: id (test case ID)
Optional fields:
title: New title
suite: Move to different suite
description: New description (HTML)
priority: 0 (Low), 1 (Normal), 2 (High)
steps: Replaces all existing steps
steps_patch: Patch steps by step number (1-based) without replacing all steps
tags: Replaces all existing tags
requirements: Replaces all existing requirements
custom_fields: Update specific custom fields
Example: { "id": 1712, "title": "Updated login test", "priority": 2 }
Example - patch a single step: { "id": 1714, "steps_patch": [ { "step_number": 1, "expected_result": "Appropriate expected result" } ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Test case ID to update (required) | |
| project_id | No | Project ID (optional if default is set) | |
| title | No | New test case title | |
| suite | No | Move to a different suite by ID or title (null to remove) | |
| description | No | New description (HTML supported) | |
| priority | No | New priority: 0=Low, 1=Normal, 2=High | |
| steps | No | Replace all steps | |
| steps_patch | No | Patch steps by step number (1-based) without replacing all steps | |
| tags | No | Replace tags with these IDs or names | |
| requirements | No | Replace requirements with these IDs or names | |
| custom_fields | No | Update custom field values (id optional if name provided) | |
| attachments | No | Replace attachments with these file IDs |