---
title: "Report and create a new TestCaseResult"
method: POST
path: "/tests/{id}/testCaseResult"
tags: ["test"]
---

# Report and create a new TestCaseResult

`POST /tests/{id}/testCaseResult`

Report a TestCaseResult (typically used by a Test runner)

## Request body

- TestCaseReturnDTO
  - `operationName` string, required — Name of related operation for this TestCase

## Response `200`

TestCaseResult is reported

- TestCaseResult — Companion objects for TestResult. Each TestCaseResult correspond to a particuliar service operation / action reference by the operationName field. TestCaseResults owns a collection of TestStepResults (one for every request associated to service operation / action).
  - `success` boolean, required — Flag telling if test case is a success
  - `elapsedTime` number, required — Elapsed time in milliseconds since the test case beginning
  - `operationName` string, required — Name of operation this test case is bound to
  - `testStepResults` TestStepResult[] — Test steps associated to this test case
    - `success` boolean, required — Flag telling if test case is a success
    - `elapsedTime` number — Elapsed time in milliseconds since the test step beginning
    - `requestName` string — Name of request this test step is bound to
    - `message` string — Error message that may be associated to this test step
    - `eventMessageName` string — Name of event this test step is bound to

---

[API](https://skmtc.dev/microcks/apis/microcks-api-v1-7.md) · [All operations](https://skmtc.dev/microcks/apis/microcks-api-v1-7/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microcks/microcks-api-v1-7/revisions/cc062ec25192/schema)
