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
}
}
}
}Metadata and execution summary for one automated test case.
Returns pass/fail/flaky rates, average duration, and a deep-link to the TestDino UI. Pass ?include=history to bundle past executions — paginated independently via historyPage, historyLimit, and historyStatus.
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
}
}
}
}Project PAT (tdp_) token with public-api scope
The project identifier (e.g. project_abc123). Must match the project associated with your PAT.
The test case identifier (e.g. test_case_abc123).
Comma-separated optional data sections: history, all.
Page number for execution history pagination (only applies when include=history).
Items per page for execution history (1–100, default 20). Only applies when include=history.
x <= 100Filter execution history by status (e.g. failed, passed). Only applies when include=history.
Was this page helpful?