Skip to main content
No Result Found

Reports API

Fetches the XML report for a specific build.

GET /api/v1/builds/{build-id}/report?type

Request parameters

Request

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" -X GET "https://lcnc-api.browserstack.com/api/v1/builds/{build-id}/report?type=browserstack"
  • build-id* string

    Unique identifier of the build. Replace build-id in the request path with your build ID.

  • type* string

    The type query parameter specifies the test management tool for the requested build report. The possible values are browserstack, testrail, or standard.

Response 200 xml

Response

<?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Sample Test Suite-1" tests="4" failures="2" time="395.5">
    <!-- Test Suite Properties -->
    <properties>
        <property name="Type" value="desktop" />
        <property name="Browsers" value="chrome" />
        <property name="Local testing" value="On" />
        <property name="Environment Host URL" value="https://www.google.com" />
        <property name="IP Geolocation" value="Argentina" />
    </properties>

    <!-- Test Case 1 -->
    <testcase name="Sample Test 1 - Apple | Add product to cart and checkout" time="124.6">
        <!-- Test Case Properties -->
        <properties>
            <property name="Resolution" value="1920x1080" />
            <property name="Browser" value="chrome" />
            <property name="Browser version" value="127.0" />
            <property name="Device name" value="" />
            <property name="Real device" value="" />
            <property name="Scenario name" value="" />
            <property name="id" value="TC-52628" />
        </properties>
        <failure message="One or more steps failed in this test">
            Click on "Get a demo" button: Could not find the element on the page. Please raise a bug or re-record the step.
            Validate element text equals 'Hello world': Could not find the element on the page. Please raise a bug or re-record the step.
            Validate screenshot of logo element: Captured screenshot does not match expected screenshot. Difference between screenshots is 25%, exceeding threshold value of 10%.
        </failure>
    </testcase>

    <!-- Test Case 2 -->
    <testcase name="Sample Test 2 - Flipkart | Add product to cart and checkout" time="183.6">
        <properties>
            <property name="Resolution" value="1366x768" />
            <property name="Browser" value="chrome" />
            <property name="Browser version" value="127.0" />
            <property name="Device name" value="" />
            <property name="Real device" value="" />
            <property name="Scenario name" value="" />
            <property name="id" value="TC-52624" />
        </properties>
        <failure message="One or more steps failed in this test">
            Click on "Get a demo" button: Could not find the element on the page. Please raise a bug or re-record the step.
        </failure>
    </testcase>

    <!-- Test Case 3 -->
    <testcase name="Sample Test 3 - Myntra | Add product to cart and checkout" time="84.5">
        <properties>
            <property name="Resolution" value="1920x1080" />
            <property name="Browser" value="chrome" />
            <property name="Browser version" value="127.0" />
            <property name="Device name" value="" />
            <property name="Real device" value="" />
            <property name="Scenario name" value="" />
            <property name="id" value="TC-52623" />
        </properties>
        <skipped message="Skipped execution as the build was aborted">
            TestSkipped: Build was aborted, hence test was skipped during execution
        </skipped>
    </testcase>

    <!-- Test Case 4 -->
    <testcase name="Sample Test 4 - Amazon | Add product to cart and checkout" time="104.9">
        <properties>
            <property name="Resolution" value="1440x900" />
            <property name="Browser" value="chrome" />
            <property name="Browser version" value="127.0" />
            <property name="Device name" value="" />
            <property name="Real device" value="" />
            <property name="Scenario name" value="" />
            <property name="id" value="TC-52328" />
        </properties>
    </testcase>
</testsuite>

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