Add Test Case
add_test_caseCreates a new test case in an existing project and returns it; an existing suite/section and a valid test case type may be required.
Instructions
Creates a new test case in a project and returns it.
The test suite and section must already exist: this tool does not create them. There is no delete endpoint for test cases in the Tuskr API, so use a sandbox project while experimenting and name throwaway cases clearly.
Pass test_case_type as well: Tuskr rejects a create without one with
"Type is required", at least on a tenant with no default type. Find a
type's ID on the testCaseTypeId field of any list_test_cases row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | name of the new test case | |
| project | Yes | ID or name of the project where to create the test case | |
| test_suite | No | ID or name of an existing test suite | |
| description | No | description of the test case | |
| custom_fields | No | object of custom field values, keyed by the field's key. Keys and value shapes are specific to the tenant and depend on the field type. Tuskr's own example uses `stepsWithExpectedResults`, a `multi_select` field and a `date` field. | |
| test_case_type | No | ID or name of the test case type. Leave it unset only if the tenant has a default type | |
| test_suite_section | No | ID or name of an existing section in the suite | |
| estimated_time_in_minutes | No | estimated execution time, whole minutes, at least 1. Tuskr silently replaces 0 with its default (15), so 0 is rejected here before any request |