This document explains how to connect your Low Code Automation tests with TestRail test cases.
Link TestRail to Low Code Automation
To link TestRail with Low-Code Automation:
Open Low Code Automation and record a test.
Click the Click here to link test cases link when saving the test.
Under Link test cases, select TestRail from the Test management tool menu.
In the Test case IDs field, enter the test case IDs, separated by commas.
Click Save and run.
Alternatively, you can also link the test cases when editing the test. Click the Configurations tab. In the Link test cases dialog, repeat the Step 3 and Step 4.
Enter the name and click Save changes.
Export the test data in XML format
After test execution, go to the Builds section, select the desired build, and click Download.
You can also use the Reports API to download the XML, in addition to using the Download icon.
The XML file will be saved to your system in the following format:
```xml
<?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="test_id" value="C52628" />
</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="test_id" value="C52624" />
</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="test_id" value="C52623" />
</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="test_id" value="C52328" />
</properties>
</testcase>
</testsuite>
```