Skip to main content
GET
/
{projectId}
/
test-cases
/
{caseId}
Get test case details
curl --request GET \
  --url https://api.testdino.com/api/public/v1/{projectId}/test-cases/{caseId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "metadata": {
      "testRun": {
        "counter": 123,
        "git": {
          "branch": "<string>",
          "environment": "<string>",
          "commit": {
            "author": "<string>"
          },
          "repository": {
            "url": "<string>"
          }
        }
      },
      "testCase": {
        "status": "passed",
        "title": "<string>",
        "browser": "<string>",
        "tags": [
          "<string>"
        ],
        "annotations": [
          {}
        ],
        "startTime": "2023-11-07T05:31:56Z",
        "file": "<string>",
        "suiteName": "<string>"
      }
    },
    "overview": {
      "status": "passed",
      "failure_category": "<string>",
      "confidence": 123,
      "error_type": "<string>",
      "duration": 123,
      "attempts": [
        {
          "status": "passed",
          "duration": 123,
          "error": {
            "stack": "<string>"
          },
          "console": [
            {}
          ],
          "attachments": [
            {
              "name": "<string>",
              "contentType": "<string>",
              "path": "<string>"
            }
          ],
          "steps": [
            {
              "stepId": "<string>",
              "title": "<string>",
              "duration": 123,
              "category": "<string>",
              "location": {
                "file": "<string>",
                "line": 123,
                "column": 123
              },
              "titlePath": [
                "<string>"
              ],
              "parentStep": "<string>",
              "startTime": "2023-11-07T05:31:56Z",
              "error": {
                "message": "<string>",
                "stack": "<string>",
                "location": {
                  "file": "<string>",
                  "line": 123,
                  "column": 123
                },
                "snippet": "<string>"
              },
              "annotations": [
                {}
              ]
            }
          ]
        }
      ]
    },
    "url": "<string>",
    "history": {
      "testCase": {
        "fullTitle": "<string>",
        "branch": "<string>"
      },
      "summary": {
        "totalRuns": 123,
        "passed": 123,
        "failed": 123,
        "flaky": 123,
        "skipped": 123,
        "interrupted": 123,
        "stabilityScore": 123,
        "lastPassed": {
          "runNumber": 123,
          "testCaseId": "<string>",
          "testRunId": "<string>",
          "timestamp": "2023-11-07T05:31:56Z"
        },
        "lastFailed": {
          "runNumber": 123,
          "testCaseId": "<string>",
          "testRunId": "<string>",
          "timestamp": "2023-11-07T05:31:56Z"
        },
        "lastFlaky": {
          "runNumber": 123,
          "testCaseId": "<string>",
          "testRunId": "<string>",
          "timestamp": "2023-11-07T05:31:56Z"
        },
        "lastInterrupted": {
          "runNumber": 123,
          "testCaseId": "<string>",
          "testRunId": "<string>",
          "timestamp": "2023-11-07T05:31:56Z"
        }
      },
      "runs": [
        {
          "testCaseId": "<string>",
          "testRunId": "<string>",
          "runNumber": 123,
          "startTime": "2023-11-07T05:31:56Z",
          "status": "passed",
          "duration": 123,
          "retries": 123,
          "error": {
            "message": "<string>",
            "stack": "<string>"
          },
          "console": [
            {}
          ],
          "attempts": [
            {
              "attemptNumber": 123,
              "status": "passed",
              "duration": 123,
              "error": {
                "message": "<string>",
                "stack": "<string>"
              },
              "console": [
                {}
              ]
            }
          ],
          "trigger": {
            "type": "<string>",
            "provider": "<string>",
            "pipelineUrl": "<string>",
            "buildNumber": "<string>"
          }
        }
      ],
      "pagination": {
        "currentPage": 123,
        "limit": 123,
        "totalRuns": 123,
        "hasMore": true
      }
    }
  }
}

Authorizations

Authorization
string
header
required

Project PAT (tdp_) token with public-api scope

Path Parameters

projectId
string
required

The project identifier (e.g. project_abc123). Must match the project associated with your PAT.

caseId
string
required

The test case identifier (e.g. test_case_abc123).

Query Parameters

include
string

Comma-separated optional data sections: history, all.

historyPage
integer
default:1

Page number for execution history pagination (only applies when include=history).

historyLimit
integer
default:20

Items per page for execution history (1–100, default 20). Only applies when include=history.

Required range: x <= 100
historyStatus
string

Filter execution history by status (e.g. failed, passed). Only applies when include=history.

Response

Test case detail

success
boolean
data
object