Executing Tests and Generating an xUnit-XML Report with Robot Framework
Robot Framework can generate an xUnit-XML report, which you can then upload to PractiTest using the FireCracker tool. Execute your test suites using the robot command with the –xunit option to generate an xUnit XML report.
robot --xunit xunit_output.xml login_test_suite.robot navigation_test_suite.robot
Once the test execution is complete Robot Framework will generate an xUnit-XML report.
Example xUnit-XML Output
?xml version="1.0" encoding="UTF-8"?>
<testsuite name="Login Test Suite" tests="1" errors="0" failures="0" skipped="0" time="25.000" timestamp="2024-05-30T12:30:17.167325">
<testcase classname="Login Test Suite" name="Valid Login" time="25.000">
</testcase>
<properties>
<property name="Documentation" value="A suite to test the login functionality of PractiTest website."/>
</properties>
</testsuite>
</testsuite>
<testsuite name="Navigation Test Suite" tests="1" errors="0" failures="0" skipped="0" time="20.00" timestamp="2024-05-30T12:45:18.964524">
<testcase classname="Navigation Test Suite" name="Navigate to Product Page" time="20.00">
</testcase>
<properties>
<property name="Documentation" value="A suite to test the navigation functionality of PractiTest website."/>
</properties>
</testsuite>
</testsuite>
</testsuite>