testrail_add_cases
Create test cases in a TestRail section with steps, expected results, references, and custom fields. Supports dry run to preview payloads without creating cases.
Instructions
Create test cases in a TestRail section.
cases: [{"title": "Verify ...", "preconditions": "...", "refs": "optional per-case refs", "steps": [{"content": "one action", "expected": "one expected result"}]}] section_id: defaults to TESTRAIL_SECTION_ID. refs: references applied to every case (e.g. a story key), unless a case sets its own. fields: custom field values for every case, e.g. {"custom_automation_type": "Not Automated"}. Dropdowns accept the option id or its label. Merged over TESTRAIL_DEFAULT_FIELDS. dry_run: return the payloads that would be sent, without creating anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | ||
| cases | Yes | ||
| fields | No | ||
| dry_run | No | ||
| project_id | No | ||
| section_id | No |