Get test runs having attachment API in Test Reporting & Analytics
Use this API to retrieve details of test runs with attachments within a specific build run.
get test runs having attachment
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X GET "https://api-automation.browserstack.com/ext/v1/builds/o7coi5zrophfrxxc6lmz52yk3csgpuq6exyzs68s/testRuns/withAttachments?pageSize=15"
-
cursor integer
Cursor for pagination.
-
page_size integer
The number of test runs to be returned in a single response is 30 by default, with a maximum of 100 and a minimum of 1.
Response Attributes 200 OK JSON
Response
{
"test_runs": [
{
"id": 13229325,
"name": "Verify Elements Page.",
"uuid": "2d1cacf9-6872-430f-b3ec-38d49102a3f3",
"build_id": 16712167,
"attachments_count": 2,
"screenshots_count": 3
},
{
"id": 13229323,
"name": "Verify the text contents of PDF file.",
"uuid": "5caaac3a-9b7f-49b4-bf4a-ecb4fe2a26dd",
"build_id": 16712167,
"attachments_count": 1,
"screenshots_count": 0
},
{
"id": 13229321,
"name": "Verify Interactions Page",
"uuid": "ea8305aa-5d74-4ce4-8587-3e70b8422258",
"build_id": 16712167,
"attachments_count": 2,
"screenshots_count": 1
},
{
"id": 13229318,
"name": "Verify Alerts, Frame & Windows Page",
"uuid": "ba8b3f78-b33a-4b0f-bec7-5b11a0563654",
"build_id": 16712167,
"attachments_count": 2,
"screenshots_count": 1
},
{
"id": 13229316,
"name": "Connect to Postgres DB",
"uuid": "c90b951e-383c-49f9-94ce-c1290dd6122c",
"build_id": 16712167,
"attachments_count": 1,
"screenshots_count": 0
},
{
"id": 13229315,
"name": "postUsers",
"uuid": "0fb1c712-fe2c-477d-9ba5-33bca051cb97",
"build_id": 16712167,
"attachments_count": 1,
"screenshots_count": 0
},
{
"id": 13229314,
"name": "getUsers",
"uuid": "119ad749-ebb7-4894-bcb7-0837ca8660e6",
"build_id": 16712167,
"attachments_count": 1,
"screenshots_count": 0
},
{
"id": 13229312,
"name": "Verify Elements Page.",
"uuid": "2ea2e4d2-f12f-4368-bd6b-dc489b797e4a",
"build_id": 16712167,
"attachments_count": 1,
"screenshots_count": 0
},
{
"id": 13229310,
"name": "Verify the text contents of PDF file.",
"uuid": "0872e291-a257-4ffe-8773-c3189774d589",
"build_id": 16712167,
"attachments_count": 1,
"screenshots_count": 0
}
],
"next_cursor": 13229273
}
-
test_runs JSON Object
â–¶ SHOW VALUESInformation about test runs containing attachments or screenshots
-
id Integer
Unique ID of the test run.
-
name String
Name of the test run.
-
uuid String
Unique identifier (UUID) of the test run.
-
build_id Integer
Unique identifier of the build to which the test run belongs.
-
attachments_count Integer
Number of attachments in the test run.
-
screenshots_count Integer
Number of screenshots in the test run.
-
-
next_cursor String
Cursor information for pagination in the response.
We're sorry to hear that. Please share your feedback so we can do better
Contact our Support team for immediate help while we work on improving our docs.