Reports
Retrieve paginated information about test reports
Test targets
Environments
Reports
Notifications
Private locations
Discoveries
Reports
Retrieve paginated information about test reports
Allow fetching the history of test reports for your test target.
GET
/
apiKey
/
v2
/
test-targets
/
{testTargetId}
/
test-reports
curl --request GET \
--url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-reports \
--header 'X-API-Key: <api-key>'
{
"data": [
{
"id": "826c15af-644b-4b28-89b4-f50ff34e46b7",
"testTargetId": "3435918b-3d29-4ebd-8c68-9a540532f45a",
"createdAt": "2024-09-06T13:01:51.686Z",
"updatedAt": "2024-09-06T13:01:51.686Z",
"executionUrl": "https://en.wikipedia.org/",
"status": "WAITING",
"context": {
"source": "manual",
"description": "manual trigger",
"triggeredBy": {
"type": "USER",
"userId": "2e2bb27b-a19c-47ce-a9b6-cd1bd31622dc"
}
},
"testResults": [
{
"id": "826c15af-644b-4b28-89b4-f50ff34e46b7",
"testTargetId": "3435918b-3d29-4ebd-8c68-9a540532f45a",
"testCaseId": "5b844cf1-d597-4048-9e74-7c0f9ce3e2ee",
"createdAt": "2024-09-06T13:01:51.686Z",
"updatedAt": "2024-09-06T13:01:51.686Z",
"status": "WAITING",
"errorMessage": "TimeoutError: locator.click: Timeout 30000ms exceeded.",
"traceUrl": "https://storage.googleapis.com/automagically-traces/826c15af-644b-4b28-89b4-f50ff34e46b7-trace.zip"
}
]
}
],
"key": {
"createdAt": "2024-09-06T13:01:51.686Z"
},
"hasNextPage": true
}
Authorizations
Path Parameters
ID of the test target for which to fetch the history for
Response
200
application/json
Test Reports information
The response is of type object
.
curl --request GET \
--url https://app.octomind.dev/api/apiKey/v2/test-targets/{testTargetId}/test-reports \
--header 'X-API-Key: <api-key>'
{
"data": [
{
"id": "826c15af-644b-4b28-89b4-f50ff34e46b7",
"testTargetId": "3435918b-3d29-4ebd-8c68-9a540532f45a",
"createdAt": "2024-09-06T13:01:51.686Z",
"updatedAt": "2024-09-06T13:01:51.686Z",
"executionUrl": "https://en.wikipedia.org/",
"status": "WAITING",
"context": {
"source": "manual",
"description": "manual trigger",
"triggeredBy": {
"type": "USER",
"userId": "2e2bb27b-a19c-47ce-a9b6-cd1bd31622dc"
}
},
"testResults": [
{
"id": "826c15af-644b-4b28-89b4-f50ff34e46b7",
"testTargetId": "3435918b-3d29-4ebd-8c68-9a540532f45a",
"testCaseId": "5b844cf1-d597-4048-9e74-7c0f9ce3e2ee",
"createdAt": "2024-09-06T13:01:51.686Z",
"updatedAt": "2024-09-06T13:01:51.686Z",
"status": "WAITING",
"errorMessage": "TimeoutError: locator.click: Timeout 30000ms exceeded.",
"traceUrl": "https://storage.googleapis.com/automagically-traces/826c15af-644b-4b28-89b4-f50ff34e46b7-trace.zip"
}
]
}
],
"key": {
"createdAt": "2024-09-06T13:01:51.686Z"
},
"hasNextPage": true
}