Get Scenario Result by ID

get

/runtime/scenarioresult/{id}

Retrieves detailed scenario result by ID. Use `expand=case` to include test case and step data.

Request

Path Parameters
Query Parameters
  • Expand related test case result (e.g., `expand=case`)
Back to Top

Response

200 Response

Scenario result with optional case details
Back to Top

Examples

The following example shows how to retrieve details of a scenario result by ID by submitting a GET request on the REST resource using cURL. For more information about cURL, see "Use cURL".

curl -X GET "hostname:port/runtime/scenarioresult/136" -H "accept: */*"

Example of Response Body

If successful, the response code 200 is returned with a response body. For example:

{
  "_id": 136,
  "name": "Create Basic Subscription",
  "tags": null,
  "type": "TestScenario",
  "error": null,
  "status": "PASSED",
  "endTime": "1732603376192",
  "failure": null,
  "duration": "7876",
  "failCount": "0",
  "namespace": null,
  "passCount": "1",
  "skipCount": "0",
  "startTime": "1732603368316",
  "caseResult": [
    {
      "_id": 893,
      "name": "Create basic subscription",
      "stepResults": [
        8138,
        8139,
        8140
      ]
    }
  ],
  "errorCount": "0",
  "stackTrace": null,
  "totalCount": "1",
  "description": "Creates a new Basic Subscription",
  "resultFiles": "{'map':{'design bdd':'Create_Basic_Subscription.design.scenario','runtime bdd':'Create_Basic_Subscription.runtime.scenario'},'json':'{'design bdd': 'Create_Basic_Subscription.design.scenario','runtime bdd': 'Create_Basic_Subscription.runtime.scenario'}'}",
  "resultNamespace": null
}

If the request fails, the response includes the appropriate HTTP code. For a 4xx/5xx code, the message body also contains a ProblemDetails structure with the cause attribute set to the appropriate application error.

Back to Top