Skip to main content
🎉 A11y Issue Detection Agent is now live! Detect accessibility issues like a WCAG expert with AI. Try now!
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

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

GET https://api-accessibility.browserstack.com/api/automated-tests/v1/builds/{thBuildId}/test-cases/{test-case-id}

For geo-restricted data, use the following endpoints:
https://accessibility-eu.browserstack.com/api/automated-tests/v1/builds/{thBuildId}/test-cases/{test-case-id} (European Union)
https://accessibility.browserstack.com/api/automated-tests/v1/builds/{thBuildId}/test-cases/{test-case-id} (United States)
https://accessibility-in.browserstack.com/api/automated-tests/v1/builds/{thBuildId}/test-cases/{test-case-id} (India)

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

    Contains details about the OS on which the test case was run.

    SHOW VALUES
    • name String

      Name of the OS used.

    • version String

      Version of the OS used.

    • logo Object

      Brand name of the OS used.

  • browserData Object

    Contains details about the browser on which the test case was run.

    SHOW VALUES
    • name String

      Name of the browser used.

    • version String

      Version of the browser used.

    • logo String

      Brand name of the browser used.

  • changesSinceLastRun Object

    Contains information about changes since the last run.

    SHOW VALUES
    • 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

    Contains the score and related information for the build.

    SHOW VALUES
    • score Integer

      The overall accessibility score of the build.

    • impact Object

      A detailed breakdown of the number of issues by severity level.

      SHOW VALUES
      • 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

    Contains a summary of the accessibility issues found out in analysis.

    SHOW VALUES
    • 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

    Contains separate counts of issues according to various classifications.

    SHOW VALUES
    • issueCountBySeverity Object

      Separate counts of minor, serious, critical, and moderate issues.

      SHOW VALUES
      • 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

      Separate counts of issues for each URL.

      SHOW VALUES
      • url String

        URL on which accessibility tests were performed.

      • count Integer

        Number of issues found on a specific URL.

    • issueCountByComponent Object

      Separate counts of issues for each component.

      SHOW VALUES
      • componentId String

        The component on which accessibility issues were found.

      • count Integer

        Number of issues found on a specific component.

    • issueCountByCategory Object

      Separate counts of issues for each component.

      SHOW VALUES
      • count Integer

        Number of issues found under a specific category.

      • category String

        A category under which issues were tracked.

  • pagination Object

    Contains information to facilitate fetching additional records if they exist.

    SHOW VALUES
    • 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.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Download Copy Check Circle