Zephyr: Create Test Case
zephyr_create_test_caseCreates a new test case in a specified Jira project with customizable fields including objective, priority, labels, and custom fields.
Instructions
Create a new Test Case in Zephyr specified project
Toolset: Test Cases
Parameters:
projectKey (string) required: Jira project key.
name (string) required
objective (string): A description of the objective.
precondition (string): Any conditions that need to be met.
estimatedTime (number): Estimated duration in milliseconds.
componentId (number): ID of a component from Jira.
priorityName (string): The priority name.
statusName (string): The status name.
folderId (number): ID of a folder to place the entity within.
ownerId (string): Atlassian Account ID of the Jira user.
labels (array): Array of labels associated to this entity.
customFields (record<string, any>): Multi-line text fields support HTML and should denote new lines with the <br> tag. Dates should be in the format 'yyyy-MM-dd'. Users should have values of Jira User Account IDs.
Examples:
Create a Test Case in project SA to ensure that the axial pump can be enabled
{
"projectKey": "SA",
"name": "Check axial pump",
"objective": "Ensure the axial pump can be enabled"
}Expected Output: The newly created Test Case with its details and key
Create a Test Case to ensure that the axial pump can be enabled. The test should be in project MM2, have labels 'automated' and 'mcp', and priority 'High'
{
"projectKey": "MM2",
"name": "Check axial pump",
"objective": "Ensure the axial pump can be enabled",
"labels": [
"automated",
"mcp"
],
"priorityName": "High"
}Expected Output: The newly created Test Case with its details and key
Create a Test Case for verifying strength of the axial pump with custom field 'Axial pump strength' having value '5' in project SA
{
"projectKey": "SA",
"name": "Check axial pump strength",
"objective": "Make sure the axial pump operates at the required strength",
"customFields": {
"Axial pump strength": 5
}
}Expected Output: The newly created Test Case with its details and key
Create a Test Case in project MM2 to verify the performance of the axial pump with Jira component having ID 10001, Jira owner having ID 10057 in folder 'Pumps'
{
"projectKey": "MM2",
"name": "Check axial pump performance",
"objective": "Ensure the axial pump performs within acceptable limits",
"componentId": 10001,
"ownerJiraUserId": 10057,
"folderId": 18
}Expected Output: The newly created Test Case with its details and key
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| labels | No | Array of labels associated to this entity. | |
| ownerId | No | Atlassian Account ID of the Jira user. | |
| folderId | No | ID of a folder to place the entity within. | |
| objective | No | A description of the objective. | |
| projectKey | Yes | Jira project key. | |
| statusName | No | The status name. | |
| componentId | No | ID of a component from Jira. | |
| customFields | No | Multi-line text fields support HTML and should denote new lines with the \<br\> tag. Dates should be in the format 'yyyy-MM-dd'. Users should have values of Jira User Account IDs. | |
| precondition | No | Any conditions that need to be met. | |
| priorityName | No | The priority name. | |
| estimatedTime | No | Estimated duration in milliseconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the entity | |
| key | No | ||
| self | No |