create_test_case
Create a new test case with title, steps, priority, tags, and custom fields in TestCollab to manage test scenarios efficiently.
Instructions
Create a new test case in TestCollab. Tip: Call get_project_context first to resolve suite/tag/custom field names to IDs.
Required: title Optional: project_id, suite (ID or title), description, priority (0=Low, 1=Normal, 2=High), steps, tags, requirements, custom_fields, attachments
Steps format: [{ "step": "action", "expected_result": "result" }]
Custom fields format: [{ "id": 5, "name": "field_name", "value": "value", "valueLabel": "display" }]
Example: { "title": "Verify login", "priority": 2, "steps": [ { "step": "Navigate to login", "expected_result": "Page loads" }, { "step": "Enter credentials", "expected_result": "Login succeeds" } ] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | No | Project ID (optional if TC_DEFAULT_PROJECT is set) | |
| title | Yes | Test case title (required) | |
| suite | No | Suite ID or suite title | |
| description | No | Test case description (HTML supported) | |
| priority | No | Priority: 0=Low, 1=Normal, 2=High | |
| steps | No | Array of test steps | |
| tags | No | Array of tag IDs or names | |
| requirements | No | Array of requirement IDs or names | |
| custom_fields | No | Array of custom field values (id optional if name provided) | |
| attachments | No | Array of attachment file IDs |