Create Test Case
testcase_createCreate a test case in TestOps by providing a name and project ID. Optionally include steps, tags, custom fields, precondition, and more.
Instructions
Create a new test case in TestOps. Required: name and projectId. Optional: steps, customFields, tags, precondition, etc.
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>",
"projectId": "<projectId>"
},
"name": "testcase_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Test case name (required) | |
| tags | No | Tags to attach | |
| links | No | External links | |
| steps | No | Scenario steps | |
| members | No | Team members | |
| external | No | Is external test case | |
| fullName | No | Full qualified name | |
| statusId | No | Status ID | |
| automated | No | Is automated test case | |
| projectId | Yes | Project ID (required) | |
| workflowId | No | Workflow ID | |
| description | No | Test case description | |
| testLayerId | No | Test layer ID | |
| customFields | No | Custom field values | |
| precondition | No | Precondition text (use \n for line breaks) | |
| postcondition | No | Postcondition text (use \n for line breaks) | |
| expectedResult | No | Expected result |