Back to QMetry All Products Help Page
Create Test Case API example
API URL : http://localhost:8080/rest/qmetry/latest/testcase
Method : POST
Request Header
- Content-Type : application/json
Request Body
{
"projectId": "10109",
"summary": "Test Case Summary"
"reporter": "rpt1",
"duedate": "duedate",
"description": "description of test case",
"assignee": "Assignee_Id",
"priority": "priority_Id",
"versions": [
"ver_4.0.2",
"5.0.3"
],
"labels": [
"Label1",
"Label2"
],
"components": [
"component1",
"component2"
}
Response
Response Body
{ "success": true, "result": { "issueId": 10201, "issueKey": "IC-18", "self": "http://localhost:8080/rest/api/2/issue/10201" } }
Bad Request
Bad Request
{ "error": { "errorMessage": "Given projectId is invalid.", "errorCode": 400 }, "success": false }
Back to QMetry All Products Help Page