> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qa.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Get run test case

> Fetches a single run test case (one test's execution within a run) by its short ID — the `<shortId>` in a `/results/test/<shortId>` URL. Returns the goal and success criteria, the result and error classification, the evaluator's full assessment (verdict summary, expected vs actual behavior, root-cause hypotheses, step-anchored key observations and raised issues), durations, and a deep link plus best-effort media URLs. Use `get_run_test_case_screenshots` to see the steps the assessment cites, `get_run_test_case_logs` for network/console evidence, `get_run_test_case_trace` for the step-by-step action trace, and `get_test_case_history` for the pass/fail trend.



## OpenAPI

````yaml /api-reference/api.json get /v1/run-test-case/{shortId}
openapi: 3.0.0
info:
  title: QA.tech API
  version: 1.0.0
  contact:
    name: QA.tech
    url: https://qa.tech
    email: support@qa.tech
  description: API for triggering and managing AI-powered test runs
servers:
  - url: https://api.qa.tech
    description: Production
    variables: {}
security:
  - BearerAuth: []
tags:
  - name: Runs
  - name: Infrastructure
  - name: Test Cases
  - name: Application Builds
  - name: Status badge
  - name: Remote Tunnels
  - name: Chat
  - name: Applications
  - name: Features
  - name: Metrics
  - name: Projects
  - name: Knowledge
  - name: Rules
  - name: Configs
  - name: Labels
  - name: Issues
  - name: Todos
  - name: Automations
  - name: Test plans
paths:
  /v1/run-test-case/{shortId}:
    get:
      tags:
        - Runs
      summary: Get run test case
      description: >-
        Fetches a single run test case (one test's execution within a run) by
        its short ID — the `<shortId>` in a `/results/test/<shortId>` URL.
        Returns the goal and success criteria, the result and error
        classification, the evaluator's full assessment (verdict summary,
        expected vs actual behavior, root-cause hypotheses, step-anchored key
        observations and raised issues), durations, and a deep link plus
        best-effort media URLs. Use `get_run_test_case_screenshots` to see the
        steps the assessment cites, `get_run_test_case_logs` for network/console
        evidence, `get_run_test_case_trace` for the step-by-step action trace,
        and `get_test_case_history` for the pass/fail trend.
      operationId: GetRunTestCase
      parameters:
        - name: shortId
          in: path
          required: true
          schema:
            type: string
        - name: query
          in: query
          required: true
          schema:
            $ref: '#/components/schemas/GetRunTestCaseQuery'
          explode: false
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetRunTestCaseResponse'
components:
  schemas:
    GetRunTestCaseQuery:
      type: object
      properties:
        projectShortId:
          allOf:
            - $ref: '#/components/schemas/ProjectShortId'
          description: >-
            Target a specific project by its prefixed short ID
            (proj-slug_shortId or proj_shortId), as returned by the projects
            API. Required for organization-scoped API keys; project-scoped keys
            may only pass their own project's short ID.
    GetRunTestCaseResponse:
      type: object
      required:
        - id
        - shortId
        - name
        - status
        - result
        - resultTitle
        - evaluationThought
        - errorCode
        - classification
        - promptGoal
        - promptExamples
        - runShortId
        - projectTestCaseId
        - startedAt
        - completedAt
        - durationMs
        - url
        - screenshotUrl
        - recordingUrl
        - outboundIpAddress
        - assessment
      properties:
        id:
          type: string
        shortId:
          type: string
        name:
          type: string
        status:
          type: string
          description: >-
            Run lifecycle status: `INITIATED`, `RUNNING`, `COMPLETED`, `ERROR`,
            or `CANCELLED`.
        result:
          type: string
          nullable: true
          description: >-
            Outcome once complete: `PASSED`, `FAILED`, or `SKIPPED`. `null`
            while still running.
        resultTitle:
          type: string
          nullable: true
          description: Short human-readable summary of the result.
        evaluationThought:
          type: string
          nullable: true
          description: The evaluator's reasoning for the pass/fail verdict.
        errorCode:
          type: string
          nullable: true
          description: >-
            Error classification when the test did not cleanly pass/fail, e.g.
            `TEST_FAILED` (real product failure) vs an `AGENT_`/`PLATFORM_`
            execution miss. `null` for a clean pass.
        classification:
          type: string
          nullable: true
          description: '`POSITIVE` (expected to succeed) or `NEGATIVE` (expected to fail).'
        promptGoal:
          type: string
          nullable: true
          description: The test's goal / instructions.
        promptExamples:
          type: string
          nullable: true
          description: The success criteria / examples the evaluator checks against.
        runShortId:
          type: string
          description: Short ID of the run this test case belongs to. Use with `get_run`.
        projectTestCaseId:
          type: string
          description: >-
            Stable project test case ID. Use with `get_test_case_history` to see
            the pass/fail trend.
        startedAt:
          type: string
          nullable: true
        completedAt:
          type: string
          nullable: true
        durationMs:
          type: integer
          format: int32
          nullable: true
          description: >-
            Wall-clock duration in milliseconds, when both timestamps are
            present.
        url:
          type: string
          description: >-
            Deep link to the recording and trace in the QA.tech UI. Always
            works; the media URLs below may be time-limited.
        screenshotUrl:
          type: string
          nullable: true
          description: >-
            Best-effort link to the final screenshot. May be a time-limited URL;
            use `url` for a durable view.
        recordingUrl:
          type: string
          nullable: true
          description: >-
            Best-effort link to the session video recording, if captured. May be
            a time-limited URL; use `url` for a durable view.
        outboundIpAddress:
          type: string
          nullable: true
          description: >-
            Public egress IP address seen by the application under test. null if
            not yet resolved or unavailable.
        assessment:
          type: object
          allOf:
            - $ref: '#/components/schemas/RunTestCaseAssessment'
          nullable: true
          description: >-
            The evaluator's full assessment report. `null` when the test has not
            been assessed yet.
      description: >-
        Detailed view of a single run test case (one test's execution within a
        run), for root-cause investigation. Resolve the `<shortId>` from a
        `/results/test/<shortId>` URL.
    ProjectShortId:
      type: string
      pattern: ^proj(-.+_.+|_.+)$
    RunTestCaseAssessment:
      type: object
      required:
        - shortDescription
        - confidence
        - expectedBehavior
        - actualBehavior
        - notesAndHypotheses
        - keyObservations
        - issues
      properties:
        shortDescription:
          type: string
          nullable: true
          description: >-
            The evaluator's verdict summary, with `[step:N]` references into the
            execution.
        confidence:
          type: integer
          format: int32
          nullable: true
          description: Evaluator confidence in the verdict, 0-100.
        expectedBehavior:
          type: string
          nullable: true
        actualBehavior:
          type: string
          nullable: true
        notesAndHypotheses:
          type: string
          nullable: true
          description: The evaluator's hypotheses about the root cause.
        keyObservations:
          type: array
          items:
            $ref: '#/components/schemas/RunTestCaseKeyObservation'
        issues:
          type: array
          items:
            $ref: '#/components/schemas/RunTestCaseAssessmentIssue'
      description: The evaluator's structured assessment of a run test case.
    RunTestCaseKeyObservation:
      type: object
      required:
        - stepIndex
        - observation
      properties:
        stepIndex:
          type: integer
          format: int32
          nullable: true
          description: >-
            0-based execution step the observation refers to (the `[step:N]`
            references in the report). Pass it to
            `get_run_test_case_screenshots`. `null` when not tied to a step.
        observation:
          type: string
      description: One observation the evaluator anchored to a step of the execution.
    RunTestCaseAssessmentIssue:
      type: object
      required:
        - severity
        - title
        - description
        - category
      properties:
        severity:
          type: string
          description: '`CRITICAL`, `MAJOR`, or `MINOR`.'
        title:
          type: string
        description:
          type: string
        category:
          type: string
          description: >-
            Issue category, e.g. `unexpected_behavior`, `network_error`,
            `data_mismatch`.
      description: An issue the evaluator raised while assessing the execution.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: Bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.