update_test_case
Update an existing test case in TestCollab by ID. Modify title, priority, suite, steps, tags, requirements, or custom fields; patch individual steps without replacing all.
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) | |
| tags | No | Replace tags with these IDs or names | |
| steps | No | Replace all steps | |
| suite | No | Move to a different suite by ID or title (null to remove) | |
| title | No | New test case title | |
| priority | No | New priority: 0=Low, 1=Normal, 2=High | |
| project_id | No | Project ID (optional if default is set) | |
| attachments | No | Replace attachments with these file IDs | |
| description | No | New description (HTML supported) | |
| steps_patch | No | Patch steps by step number (1-based) without replacing all steps | |
| requirements | No | Replace requirements with these IDs or names | |
| custom_fields | No | Update custom field values (id optional if name provided) |