Create Test Scenario Example

API URL : http://localhost:8080/rest/qmetry/latest/testscenario

Method : POST

Request Header 

  • Content-Type : application/json

Request Body

{
"projectId": "10100",
"summary": "Scenario 55",
"reporter": "Mohit.Bajaj",
"description": "Example of Test Scenario",
"assignee": "Mohit",
"priority": "2",
"versions": [
"4.0.2 version",
"5.0.3"
],
"labels": [
"Label1",
"Label2"
],
"components": [
"component1",
"component2"]
}


Response

{
    "success": true,
    "result": {
        "issueId": 10209,
        "issueKey": "IC-26",
        "self": "http://localhost:8080/rest/api/2/issue/10209"
    }
}

Failed : 404 Not found

{
    "error": {
        "errorMessage": "summary field is required",
        "errorCode": 404
    },
    "success": false
}