Create Test Case
create_test_caseCreate a structured test case in Allure TestOps, including steps with expected results, tags, attachments, and custom fields for issue tracking.
Instructions
Create a new test case in Allure TestOps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The name of the test case. | |
| tags | No | List of tag names. | |
| steps | No | List of steps. Each step must be a dict with 'action' and 'expected' keys. Example: [{'action': 'Login', 'expected': 'Dashboard visible'}] | |
| issues | No | Optional list of issue keys to link (e.g., ['PROJ-123']). | |
| project_id | No | Optional override for the default Project ID. | |
| attachments | No | List of attachments.Example Base64: [{'name': 's.png', 'content': '<base64>', 'content_type': 'image/png'}]Example URL: [{'name': 'report.pdf', 'url': 'http://example.com/report.pdf', 'content_type': 'application/pdf'}] | |
| description | No | A markdown description of the test case. | |
| custom_fields | No | Dictionary of custom field names and their values (string or list of strings).Example: {'Layer': 'UI', 'Components': ['Auth', 'DB']} | |
| output_format | No | Output format: 'json' (default) or 'plain'. | |
| test_layer_id | No | Optional test layer ID to assign (use list_test_layers to find IDs). If provided, the layer must exist in the project. | |
| integration_id | No | Optional integration ID for issue linking (use list_integrations to find IDs). Required when multiple integrations exist. Mutually exclusive with integration_name. | |
| test_layer_name | No | Optional test layer name to assign (exact case-sensitive match). Mutually exclusive with test_layer_id. | |
| integration_name | No | Optional integration name for issue linking (exact case-sensitive match). Required when multiple integrations exist. Mutually exclusive with integration_id. |