---
title: "Get test instance model"
method: GET
path: "/test-instances/{testInstanceId}"
tags: ["Inspect"]
---

# Get test instance model

`GET /test-instances/{testInstanceId}`

## Request

- Base URL: `http://localhost:8090/inspect-api`
- URL: `http://localhost:8090/inspect-api/test-instances/{testInstanceId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/docs/test-instances/:testInstanceId/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `testInstanceId` string, required

## Response `200`

successful operation

- TestRunInfoDTO
  - `testName` string
  - `scopeId` string
  - `scopeType` string
  - `scopeDefinitionId` string
  - `scopeDefinitionKey` string
  - `scopeDefinitionName` string
  - `tenantId` string
  - `testRunMessages` TestRunLogEntryDTO[]
    - `message` string
    - `stepId` string
    - `logLevel` string
  - `testModel` TestModelDTO
    - `id` string
    - `name` string
    - `scopeId` string
    - `scopeType` string
    - `scopeName` string
    - `scopeDefinitionId` string
    - `scopeDefinitionKey` string
    - `scopeDefinitionName` string
    - `parentScopeId` string
    - `parentScopeType` string
    - `tenantId` string
    - `hasScopeInstance` boolean
    - `creationTime` string, date-time
    - `creatorId` string
    - `creatorUserName` string
    - `endTime` string, date-time
    - `steps` TestStepDTO[]
      - `id` string
      - `scopeId` string
      - `subScopeId` string
      - `scopeDefinitionId` string
      - `scopeDefinitionKey` string
      - `scopeType` string
      - `activityId` string
      - `activityName` string
      - `activityType` string
      - `childScopeId` string
      - `childScopeType` string
      - `taskId` string
      - `transactionOrder` integer
      - `userId` string
      - `active` boolean
      - `enabled` boolean
      - `available` boolean
      - `completed` boolean
      - `breakpointId` string
      - `breakpointType` string
      - `actions` TestActionDTO[]
        - `id` string
        - `type` string
        - `name` string
        - `transactionBoundary` string
        - `valueType` string
        - `value` JsonNode
          - `string` boolean
          - `valueNode` boolean
          - `missingNode` boolean
          - `short` boolean
          - `double` boolean
          - `bigDecimal` boolean
          - `bigInteger` boolean
          - `textual` boolean
          - `boolean` boolean
          - `container` boolean
          - `object` boolean
          - `binary` boolean
          - `number` boolean
          - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
          - `long` boolean
          - `pojo` boolean
          - `int` boolean
          - `integralNumber` boolean
          - `floatingPointNumber` boolean
          - `array` boolean
          - `empty` boolean
          - boolean
          - `float` boolean
          - `embeddedValue` boolean
        - `contextValues` JsonNode
          - `string` boolean
          - `valueNode` boolean
          - `missingNode` boolean
          - `short` boolean
          - `double` boolean
          - `bigDecimal` boolean
          - `bigInteger` boolean
          - `textual` boolean
          - `boolean` boolean
          - `container` boolean
          - `object` boolean
          - `binary` boolean
          - `number` boolean
          - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
          - `long` boolean
          - `pojo` boolean
          - `int` boolean
          - `integralNumber` boolean
          - `floatingPointNumber` boolean
          - `array` boolean
          - `empty` boolean
          - boolean
          - `float` boolean
          - `embeddedValue` boolean
        - `actionCounter` integer
        - `ignoreActionCounter` boolean
        - `editable` boolean
        - `deletable` boolean
      - `hasErrors` boolean
      - `errorMessage` string
      - `instanceIndex` integer
    - `testSets` TestSetDTO[]
      - `name` string
      - `key` string
      - `operationKey` string
      - `testDefinitions` ScopeTestDefinitionDTO[]
        - `name` string
        - `key` string
        - `operationKey` string
        - `inputParameters` object
        - `guardrailInputParameters` object
        - `serviceMockOverrides` ServiceMockOverrideDTO[]
          - `entryType` string
          - `serviceKey` string
          - `operationKey` string
          - `applyTo` string
          - `mode` string
          - `mockResponseKey` string
        - `expectedOutputParameters` JsonNode
          - `string` boolean
          - `valueNode` boolean
          - `missingNode` boolean
          - `short` boolean
          - `double` boolean
          - `bigDecimal` boolean
          - `bigInteger` boolean
          - `textual` boolean
          - `boolean` boolean
          - `container` boolean
          - `object` boolean
          - `binary` boolean
          - `number` boolean
          - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
          - `long` boolean
          - `pojo` boolean
          - `int` boolean
          - `integralNumber` boolean
          - `floatingPointNumber` boolean
          - `array` boolean
          - `empty` boolean
          - boolean
          - `float` boolean
          - `embeddedValue` boolean
        - `steps` TestStepDTO[]
          - `id` string
          - `scopeId` string
          - `subScopeId` string
          - `scopeDefinitionId` string
          - `scopeDefinitionKey` string
          - `scopeType` string
          - `activityId` string
          - `activityName` string
          - `activityType` string
          - `childScopeId` string
          - `childScopeType` string
          - `taskId` string
          - `transactionOrder` integer
          - `userId` string
          - `active` boolean
          - `enabled` boolean
          - `available` boolean
          - `completed` boolean
          - `breakpointId` string
          - `breakpointType` string
          - `actions` TestActionDTO[]
            - `id` string
            - `type` string
            - `name` string
            - `transactionBoundary` string
            - `valueType` string
            - `value` JsonNode
              - …
            - `contextValues` JsonNode
              - …
            - `actionCounter` integer
            - `ignoreActionCounter` boolean
            - `editable` boolean
            - `deletable` boolean
          - `hasErrors` boolean
          - `errorMessage` string
          - `instanceIndex` integer
        - `multiInstance` MultiInstanceMetaDTO[]
          - `activityId` string
          - `iterations` integer
          - `type` string
        - `skip` boolean
    - `securityScopes` object
    - `actionCounter` integer
  - `hasErrors` boolean
  - `testInstanceId` string
  - `testResults` TestResultDTO[]
    - `testSetKey` string
    - `key` string
    - `status` string
    - `failure` TestFailureDTO
      - `actual` JsonNode
        - `string` boolean
        - `valueNode` boolean
        - `missingNode` boolean
        - `short` boolean
        - `double` boolean
        - `bigDecimal` boolean
        - `bigInteger` boolean
        - `textual` boolean
        - `boolean` boolean
        - `container` boolean
        - `object` boolean
        - `binary` boolean
        - `number` boolean
        - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
        - `long` boolean
        - `pojo` boolean
        - `int` boolean
        - `integralNumber` boolean
        - `floatingPointNumber` boolean
        - `array` boolean
        - `empty` boolean
        - boolean
        - `float` boolean
        - `embeddedValue` boolean
      - `expected` JsonNode
        - `string` boolean
        - `valueNode` boolean
        - `missingNode` boolean
        - `short` boolean
        - `double` boolean
        - `bigDecimal` boolean
        - `bigInteger` boolean
        - `textual` boolean
        - `boolean` boolean
        - `container` boolean
        - `object` boolean
        - `binary` boolean
        - `number` boolean
        - `nodeType` 'ARRAY' | 'BINARY' | 'BOOLEAN' | 'MISSING' | 'NULL' | 'NUMBER' | 'OBJECT' | 'POJO' | 'STRING'
        - `long` boolean
        - `pojo` boolean
        - `int` boolean
        - `integralNumber` boolean
        - `floatingPointNumber` boolean
        - `array` boolean
        - `empty` boolean
        - boolean
        - `float` boolean
        - `embeddedValue` boolean
      - `exceptionMessage` string
    - `assertionResults` AssertionResultDTO[]
      - `name` string
      - `operator` string
      - `expectedValue` object
      - `actualValue` object
      - `passed` boolean
      - `missingField` boolean
      - `actualFallback` object
    - `evaluatorResults` EvaluatorResultDTO[]
      - `evaluatorKey` string
      - `score` number, double
      - `passed` boolean
      - `reason` string
      - `scoreMin` number, double
      - `scoreMax` number, double
    - `actualOutput` string
    - `durationMs` integer
    - `promptTokenCount` integer
    - `outputTokenCount` integer
    - `stepResults` TestStepResultDTO[]
      - `activityId` string
      - `status` string
      - `errorMessage` string
      - `scopeDefinitionKey` string
    - `scopeId` string
    - `scopeType` string
  - `skippedCount` integer
  - `setCount` integer
  - `definitionCount` integer
  - `passedDefinitionCount` integer

---

[API](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api.md) - [All operations](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flowable/apis/flowable-inspect-rest-api/revisions/5c72eb80b6c5?raw)
