---
title: "Get TestResult"
method: GET
path: "/tests/{id}"
tags: ["test"]
---

# Get TestResult

`GET /tests/{id}`

## Response `200`

Requested TestResult

- TestResult — Represents the result of a Service or API test run by Microcks. Tests are related to a service and made of multiple test cases corresponding to each operations / actions composing service. Tests are run against a specific endpoint named testedEndpoint. It holds global markers telling if test still ran, is a success, how many times is has taken and so on ...
  - `id` string, required — Unique identifier of TestResult
  - `version` number, required — Revision number of this test
  - `testNumber` number, required — Incremental number for tracking number of tests of a service
  - `testDate` integer, required — Timestamp of creation date of this service
  - `testedEndpoint` string, required — Endpoint used during test
  - `serviceId` string, required — Unique identifier of service tested
  - `elapsedTime` number — Elapsed time in milliseconds since test beginning
  - `success` boolean, required — Flag telling if test is a success
  - `inProgress` boolean, required — Flag telling is test is still in progress
  - `runnerType` 'HTTP' | 'SOAP_HTTP' | 'SOAP_UI' | 'POSTMAN' | 'OPEN_API_SCHEMA' | 'ASYNC_API_SCHEMA' | 'GRPC_PROTOBUF' | 'GRAPHQL_SCHEMA', required — Type of test strategy (different strategies are implemented by different runners)
  - `testCaseResults` TestCaseResult[] — TestCase results associated to this test
    - `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
  - `secretRef` SecretRef — Lightweight reference for an existing Secret
    - `secretId` string, required — Unique identifier or referenced Secret
    - `name` string, required — Distinct name of the referenced Secret
  - `operationHeaders` OperationHeaders — Specification of additional headers for a Service/API operations. Keys are operation name or "globals" (if header applies to all), values are Header objects DTO.
  - `timeout` integer — The maximum time (in milliseconds) to wait for this test ends

---

[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)
