create_test_case
Creates a test case in Allure TestOps using a required name and optional project, tags, links, members, custom fields, and scenario steps, then returns its ID and name.
Instructions
Create a test case and return {ok, id, name, projectId}.
name is required, project_id defaults to TESTOPS_PROJECT_ID. JSON-string arguments: tags_json [{"id": 3, "name": "smoke"}] (the API requires the tag id) links_json [{"name": "JIRA", "type": "issue", "url": "https://jira/browse/ABC-1"}] members_json [{"id": 7, "name": "ivanov", "role": {"id": 1, "name": "MEMBER"}}] (role is an object RoleDto, not a plain string) custom_fields_json [{"customField": {"id": 12, "name": "Severity"}, "name": "high"}] (the API requires both id and name of the custom field) scenario_json {"steps": [{"type": "body", "body": "Open the form"}]} Ids for status_id, workflow_id and test_layer_id come from list_statuses and list_reference. More steps are added with add_test_case_step.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_test_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| automated | No | ||
| status_id | No | ||
| tags_json | No | ||
| links_json | No | ||
| project_id | No | ||
| description | No | ||
| workflow_id | No | ||
| members_json | No | ||
| precondition | No | ||
| postcondition | No | ||
| scenario_json | No | ||
| test_layer_id | No | ||
| expected_result | No | ||
| custom_fields_json | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |