create_test_case
Create Zephyr Scale test cases using STEP_BY_STEP, PLAIN_TEXT, or BDD content, while setting project, name, priority, folder, custom fields, and test steps.
Instructions
Create a new test case with STEP_BY_STEP, PLAIN_TEXT, or BDD content. To match your project's structure, use the zephyr://testcase/EXISTING-KEY resource to fetch a real test case and use its structure as a template, especially for custom_fields.
Test Script Types:
STEP_BY_STEP: Use for simple, structured test steps with clear descriptions and expected results. Each step has description, testData, and expectedResult fields.
PLAIN_TEXT: Use for complex test cases. Structure: separate each step with "---" separator. Each step should contain description and Ожидаемый результат: at the end. Images as
will be auto-uploaded.
BDD: Use for Behavior Driven Development tests with Given/When/Then syntax (Gherkin format).
When to use each type:
Choose STEP_BY_STEP for basic test procedures with numbered steps
Choose PLAIN_TEXT for detailed test documentation with step separators (---) and expected results
Choose BDD for acceptance criteria and behavior specifications
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": {
"project_key": "<project_key>",
"name": "<name>"
},
"name": "create_test_case"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Test case name (required) | |
| owner | No | Test case owner (optional) | |
| labels | No | Array of labels (optional) | |
| status | No | Test case status (optional) | Draft |
| folderId | No | Folder ID (optional, e.g., 667). Use suggest_folder_for_test_case to get the right folderId. | |
| priority | No | Test case priority (optional) | |
| component | No | Component name (optional) | |
| objective | No | Test objective (optional) | |
| parameters | No | Test parameters for data-driven testing (optional) | |
| issue_links | No | Array of issue links (optional) - will be mapped to issueLinks in API | |
| project_key | Yes | Project key (required) | |
| test_script | No | Test script object containing type and content | |
| precondition | No | Test precondition (optional) | |
| custom_fields | No | Custom fields object (optional). Use the zephyr://testcase/EXISTING-KEY resource to fetch a real test case and copy its customFields structure. Common examples: {"Type": "Functional", "Priority": "P2", "Regression": false, "Execution Type": "Manual - To Be Automated", "Risk Control": false} | |
| estimated_time | No | Estimated time in milliseconds (optional) |