Skip to main content
GET
/
{projectId}
/
test-cases
/
history
Get test case history
curl --request GET \
  --url https://api.testdino.com/api/public/v1/{projectId}/test-cases/history \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "testCase": {
      "title": "<string>",
      "fullTitle": "<string>",
      "specName": "<string>"
    },
    "summary": {
      "executions": 123,
      "passedRuns": 123,
      "failedRuns": 123,
      "flakyRuns": 123,
      "skippedRuns": 123,
      "successRate": 123,
      "failureRate": 123,
      "flakyRate": 123,
      "avgDuration": 123,
      "minDuration": 123,
      "maxDuration": 123,
      "platforms": [
        "<string>"
      ]
    },
    "history": [
      {
        "id": "<string>",
        "testRunId": "<string>",
        "testCaseId": "<string>",
        "counter": 123,
        "branch": "<string>",
        "platform": "<string>",
        "status": "passed",
        "duration": 123,
        "retries": 123,
        "timestamp": "2023-11-07T05:31:56Z",
        "attemptsCount": 123
      }
    ],
    "uniqueErrors": [
      {
        "message": "<string>",
        "occurrences": 123,
        "firstSeen": "2023-11-07T05:31:56Z",
        "lastSeen": "2023-11-07T05:31:56Z",
        "affectedPlatforms": [
          "<string>"
        ],
        "affectedEnvironments": [
          "<string>"
        ]
      }
    ],
    "platformMetrics": [
      {
        "platform": "<string>",
        "executions": 123,
        "failureCount": 123,
        "failureRate": 123,
        "flakyCount": 123,
        "flakyRate": 123,
        "avgDuration": 123,
        "minDuration": 123,
        "maxDuration": 123
      }
    ],
    "environmentMetrics": [
      {
        "environment": "<string>",
        "executions": 123,
        "failureCount": 123,
        "failureRate": 123,
        "flakyCount": 123,
        "flakyRate": 123,
        "avgDuration": 123,
        "platforms": [
          "<string>"
        ]
      }
    ]
  }
}

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.

Query Parameters

title
string
required

The full test case title from the test case explorer (e.g. Verify should display login form). URL-encode if it contains special characters.

limit
integer
default:20

Number of history entries to return (1–100, default 20).

Required range: 1 <= x <= 100
offset
integer
default:0

Number of entries to skip (for pagination). Default 0.

Required range: x >= 0

Response

Execution history with summary and breakdown metrics

success
boolean
data
object