Get test case report summary API in Automated tests
Use this API to get a high-level summary of test cases in an Automated tests build report.
get test case report summary
If Geo Region Restriction (GRR) is enabled for your account, add your region code to the host name:
api-accessibility-<region>.browserstack.com. See Geo Region Restriction endpoints for the region codes and examples.
Request parameters
Request
curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
https://api-accessibility.browserstack.com/api/automated-tests/v1/builds/{thBuildId}/test-cases/{test-case-id}
-
next_page String
Used to fetch subsequent pages from the API when has_next parameter is true. Pass the next_page reference received in the response of last request.
Response Attributes 200 OK JSON
Response
{
"data": {
"name": "BStack Sample Test - Add product to cart",
"tags": null,
"file": "/src/test/resources/features/sample.feature",
"scopeList": [
"browserstack-demo"
],
"osData": {
"name": "OS X",
"version": null,
"logo": "mac"
},
"browserData": {
"name": "chrome",
"version": "131.0.6778.70",
"logo": "chrome"
},
"changesSinceLastRun": {
"newIssues": 165,
"retainedIssues": 120,
"resolvedIssues": 177
},
"scoreData": {
"score": 30,
"impact": {
"critical": 0,
"criticalPassed": 0,
"criticalFailed": 0,
"serious": 61,
"seriousPassed": 1,
"seriousFailed": 1,
"moderate": 0,
"moderatePassed": 0,
"moderateFailed": 0,
"minor": 9,
"minorPassed": 0,
"minorFailed": 1
}
},
"issueSummary": {
"issueCount": 76,
"pageCount": 1,
"componentCount": 12,
"needsReview": 568,
"hidden": 0
},
"issueCount": {
"issueCountBySeverity": {
"minor": 0,
"serious": 708,
"critical": 76,
"moderate": 0
},
"issueCountByURL": [
{
"url": "https://www.newday.co.uk/who-we-are/news-and-awards",
"count": 58
},
{
...
},
...
],
"issueCountByComponent": [
{
"componentId": "A#main-nav__link",
"count": 174
},
{
...
},
...
],
"issueCountByCategory": [
{
"count": 0,
"category": "keyboard"
},
{
...
},
...
],
"pagination": {
"has_next": true,
"next_page": "eyJhbGciOiJIUzI1NiJ9.eyJwYWdlIjoxLCJwYWdlX3NpemUiOjEwLCJidWlsZF91dWlkIjoic3pkdGplMnhsaHNydWZkajF3bnJnYnZndnNmZzJjdGRsdWt4Nnl5eCIsImV4cCI6MTczNjY4NDA1OH0.sLI7hWQwE_bB6AB-ORgz1K6D2VIHqH_H39qK8Jh3HqA"
}
}
}
}
-
name String
Name of the test case.
-
tags String
Any tag associated with the test case.
-
file String
The path of the filename that houses the test case.
-
scopeList Array
An array of strings that describes the scope of the test case.
-
osData Object
▶ SHOW VALUESContains details about the OS on which the test case was run.
-
name String
Name of the OS used.
-
version String
Version of the OS used.
-
logo Object
Brand name of the OS used.
-
- Show 6 more
-
browserData Object
▶ SHOW VALUESContains details about the browser on which the test case was run.
-
name String
Name of the browser used.
-
version String
Version of the browser used.
-
logo String
Brand name of the browser used.
-
-
changesSinceLastRun Object
▶ SHOW VALUESContains information about changes since the last run.
-
newIssues Integer
Number of new issues since the last run.
-
retainedIssues Integer
Number of issues that have been retained since the last run.
-
resolvedIssues Integer
Number of issues that have been resolved since the last run.
-
-
scoreData Object
▶ SHOW VALUESContains the score and related information for the build.
-
score Integer
The overall accessibility score of the build.
-
impact Object
▶ SHOW VALUESA detailed breakdown of the number of issues by severity level.
-
critical Integer
Number of critical issues.
-
criticalPassed Integer
Number of critical issues that passed.
-
criticalFailed Integer
Number of critical issues that failed.
-
serious Integer
Number of serious issues.
-
seriousPassed Integer
Number of serious issues that passed.
-
seriousFailed Integer
Number of serious issues that failed.
-
moderate Integer
Number of moderate issues.
-
moderatePassed Integer
Number of moderate issues that passed.
-
moderateFailed Integer
Number of moderate issues that failed.
-
minor Integer
Number of minor issues.
-
minorPassed Integer
Number of minor issues that passed.
-
minorFailed Integer
Number of minor issues that failed.
-
-
-
issueSummary Object
▶ SHOW VALUESContains a summary of the accessibility issues found out in analysis.
-
issueCount Integer
Number of issues reported.
-
pageCount Integer
Number of pages that have accessibility issues.
-
componentCount Integer
Number of components that have accessibility issues.
-
needsReview Integer
Number of issues that require manual confirmation.
-
hidden Integer
Number of issues that are hidden in the report.
-
-
issueCount Object
▶ SHOW VALUESContains separate counts of issues according to various classifications.
-
issueCountBySeverity Object
▶ SHOW VALUESSeparate counts of minor, serious, critical, and moderate issues.
-
minor Integer
Number of minor issues.
-
serious Integer
Number of serious issues.
-
critical Integer
Number of critical issues.
-
moderate Integer
Number of moderate issues.
-
-
issueCountByURL Object
▶ SHOW VALUESSeparate counts of issues for each URL.
-
url String
URL on which accessibility tests were performed.
-
count Integer
Number of issues found on a specific URL.
-
-
issueCountByComponent Object
▶ SHOW VALUESSeparate counts of issues for each component.
-
componentId String
The component on which accessibility issues were found.
-
count Integer
Number of issues found on a specific component.
-
-
issueCountByCategory Object
▶ SHOW VALUESSeparate counts of issues for each component.
-
count Integer
Number of issues found under a specific category.
-
category String
A category under which issues were tracked.
-
-
-
pagination Object
▶ SHOW VALUESContains information to facilitate fetching additional records if they exist.
-
has_next Boolean
True if there are more records to fetch. False if the current response is the last page of records.
-
next_page String
A reference to the next page. Pass this as a request parameter in the subsequent request as “next_page” to get the next page of records.
-
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.