Skip to content

Latest commit

 

History

History
125 lines (100 loc) · 3.76 KB

xcui-xml-report.md

File metadata and controls

125 lines (100 loc) · 3.76 KB
id title sidebar_label description keywords url site_name slug
xcui-xml-report
XCUI XML Reports
XML Reports
XCUI XML Report
xcui
java
xcui junit xml reports
lambdatest java
framework on lambdatest
testng
app testing
real devices
LambdaTest
xcui-report/

import CodeBlock from '@theme/CodeBlock'; import {YOUR_LAMBDATEST_USERNAME, YOUR_LAMBDATEST_ACCESS_KEY} from "@site/src/component/keys";

<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify({ "@context": "https://schema.org", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://www.lambdatest.com" },{ "@type": "ListItem", "position": 2, "name": "Support", "item": "https://www.lambdatest.com/support/docs/" },{ "@type": "ListItem", "position": 3, "name": "Report", "item": "https://www.lambdatest.com/support/docs/xcui-junit-report/" }] }) }} ></script>

Introduction


XML reports provide a detailed summary of test execution, allowing you to better understand your test outcomes. This document aims to guide you through the process of retrieving XML reports for XCUI tests executed on the LambdaTest platform.

Objective


By the end of this document, you should be able to:

  1. Fetch XML reports for non-shard XCUI builds.

  2. Fetch XML reports for shard builds, both for individual shards and all shards collectively.

XML report APIs


Non-shard build : To fetch the XML report for a non-shard build, you can use the following cURL command:

{`curl --location "https://mobile-api.lambdatest.com/mobile-automation/api/v1/framework/builds//report/" --header 'Authorization: Basic '`}

Shard build (For single shard): To fetch the XML report for a single shard in a shard build,use:

{`curl --location 'https://mobile-api.lambdatest.com/mobile-automation/api/v1/framework/jobs//report/?shard=' --header 'Authorization: Basic '`}

Shard build (For all the shards): To fetch the XML reports for all shards in a shard build, use:

{`curl --location 'https://mobile-api.lambdatest.com/mobile-automation/api/v1/framework/jobs//report/' --header 'Authorization: Basic '`}

:::note

  • Authenticate the API using your LambdaTest username and access key, and replace build_id, job_id and shard_id for which you want to fetch report.
  • It is recommended to run the sharding test(via HyperExecute CLI) in the verbose mode i.e. with the --verbose flag. This allows the shard ID(task ID) and build ID(Job ID) to be displayed in the logs and then they can be used to fetch the above reports. :::