Skip to content
Novus Examples
xml6.2 KB

Robot Framework — output.xml

Robot Framework's output.xml, in which every keyword call carries its own status element and a trailing statistics section restates the totals by tag and by suite. Robot 7 reports elapsed seconds rather than the endtime attribute older versions used, so schemaversion is what a reader must branch on. Reports the same canonical run as the JUnit dialect files: 12 tests, 9 passed, 1 assertion failure, 1 error and 1 skip.

Preview — first 50 linesxml
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 7.0.1 (Python 3.12.4 on linux)" generated="2026-08-07T09:14:22.031" rpa="false" schemaversion="5">
<suite id="s1" name="Checkout" source="/builds/novus/tests/checkout.robot">
<test id="s1-t1" name="Applies Unit Price" line="12">
<kw name="Given The Cart Is Ready" library="CartLibrary"><status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.010"/></kw>
<kw name="Then Applies Unit Price" library="CartLibrary"><arg>cart.PricingTest</arg><status status="PASS" start="2026-08-07T09:14:22.041" elapsed="0.643"/></kw>
<tag>cart</tag>
<status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.643"/>
</test>
<test id="s1-t2" name="Applies Quantity Multiplier" line="18">
<kw name="Given The Cart Is Ready" library="CartLibrary"><status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.010"/></kw>
<kw name="Then Applies Quantity Multiplier" library="CartLibrary"><arg>cart.PricingTest</arg><status status="PASS" start="2026-08-07T09:14:22.041" elapsed="0.659"/></kw>
<tag>cart</tag>
<status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.659"/>
</test>
<test id="s1-t3" name="Rounds Half Up At Two Decimals" line="24">
<kw name="Given The Cart Is Ready" library="CartLibrary"><status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.010"/></kw>
<kw name="Then Rounds Half Up At Two Decimals" library="CartLibrary"><arg>cart.PricingTest</arg><status status="PASS" start="2026-08-07T09:14:22.041" elapsed="1.042"/></kw>
<tag>cart</tag>
<status status="PASS" start="2026-08-07T09:14:22.031" elapsed="1.042"/>
</test>
<test id="s1-t4" name="Rejects Negative Quantity" line="30">
<kw name="Given The Cart Is Ready" library="CartLibrary"><status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.010"/></kw>
<kw name="Then Rejects Negative Quantity" library="CartLibrary"><arg>cart.PricingTest</arg><status status="PASS" start="2026-08-07T09:14:22.041" elapsed="1.048"/></kw>
<tag>cart</tag>
<status status="PASS" start="2026-08-07T09:14:22.031" elapsed="1.048"/>
</test>
<test id="s1-t5" name="Applies Tax To Subtotal" line="36">
<kw name="Given The Cart Is Ready" library="CartLibrary"><status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.010"/></kw>
<kw name="Then Applies Tax To Subtotal" library="CartLibrary"><arg>cart.PricingTest</arg><status status="FAIL" start="2026-08-07T09:14:22.041" elapsed="0.352"/></kw>
<tag>cart</tag>
<status status="FAIL" start="2026-08-07T09:14:22.031" elapsed="0.352">expected:&lt;12.60&gt; but was:&lt;12.59&gt;</status>
</test>
<test id="s1-t6" name="Applies Percentage Discount" line="42">
<kw name="Given The Cart Is Ready" library="CartLibrary"><status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.010"/></kw>
<kw name="Then Applies Percentage Discount" library="CartLibrary"><arg>cart.DiscountTest</arg><status status="PASS" start="2026-08-07T09:14:22.041" elapsed="0.147"/></kw>
<tag>cart</tag>
<status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.147"/>
</test>
<test id="s1-t7" name="Stacks Discounts In Declared Order" line="48">
<kw name="Given The Cart Is Ready" library="CartLibrary"><status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.010"/></kw>
<kw name="Then Stacks Discounts In Declared Order" library="CartLibrary"><arg>cart.DiscountTest</arg><status status="PASS" start="2026-08-07T09:14:22.041" elapsed="0.327"/></kw>
<tag>cart</tag>
<status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.327"/>
</test>
<test id="s1-t8" name="Ignores Expired Coupon" line="54">
<kw name="Given The Cart Is Ready" library="CartLibrary"><status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.010"/></kw>
<kw name="Then Ignores Expired Coupon" library="CartLibrary"><arg>cart.DiscountTest</arg><status status="PASS" start="2026-08-07T09:14:22.041" elapsed="0.893"/></kw>
<tag>cart</tag>
<status status="PASS" start="2026-08-07T09:14:22.031" elapsed="0.893"/>
85 lines total — download for the full file.

Specifications

Seed
61200
Encoding
UTF-8
Line Endings
LF
Format
Robot Framework output.xml
Schema Version
5
Tests
12
Pass
9
Fail
2
Skip
1
Has Statistics Section
true
Elapsed Unit
seconds

Testing contract

Expected to pass
Scenario
Read Robot Framework totals from output.xml and cross-check the statistics section.
Expected result
The statistics total stat reads pass=9 fail=2 skip=1 and equals the per-test statuses counted from the suite tree.

What is a .xml file?

XML (Extensible Markup Language) is a verbose, self-describing markup language using nested tags, attributes, and namespaces to represent structured, hierarchical data. It supports schemas, entities, and validation and underlies many document and data formats. It remains common in enterprise, publishing, and interchange contexts.

How to use this file

Use an example XML file to test parsers, namespace and schema validation, XPath queries, and protection against entity-expansion and external-entity attacks.

How to use this file for testing

“Robot Framework — output.xml” is a deterministic Novus Examples fixture for Conversion testing, Log parsing, Error handling. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.

Documented properties for this file: seed 61200 · UTF-8 · LF. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.

Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such — expect parsers to fail loudly rather than silently accept them.

Test and coverage reports document their totals (suites, cases, passes, failures, skips, covered lines) in the spec table. Point your CI dashboard, coverage gate, or report converter at the file and assert those counts survive; format twins carry identical numbers so a conversion can be scored exactly.

Code examples

import xml.etree.ElementTree as ET

tree = ET.parse("robot-output.xml")
root = tree.getroot()
print(root.tag, [c.tag for c in root][:5])

Generated by generation/testing.py. Free for any use, no attribution required — license.