This directory contains schema definitions for Robot Frameworks output.xml files as well as for spec files created by Libdoc.
While Robot Framework is running tests, it generates an XML output file containing all information about the execution. After execution is over it creates, by default, log and report files based on the output.xml file. Logs and reports can be generated also afterwards both using the standalone Rebot tool and programmatically. The output.xml file format can be useful both for people interested in parsing the output and for people interested to create Robot Framework compatible outputs.
This directory contains XSD schema definitions that are compatible with
different Robot Framework versions. Newer output.xml files have schemaversion
attribute telling which version they support and older implicitly support schema
version 1.
- robot.02.xsd - Compatible with Robot Framework >= 4.0.
- robot.01.xsd - Compatible with Robot Framework < 4.0.
Due to XSD 1.1 not being widely adopted, these schema definitions use XSD 1.0. Newer schema definitions contain embedded documentation and comments explaining the structure in more detail. They also contain instructions how to make them XSD 1.1 compatible if needed.
Libdoc tool distributed with Robot Framework can generate machine readable spec files both in XML and JSON format. XML spec files have XSD 1.0 compatible schema definition and JSON spec schema is JSON Schema DRAFT-7 compatible.
- libdoc.03.xsd - Compatible with Robot Framework >= 4.0.
- libdoc.02.xsd - Compatible with Robot Framework == 3.2.
- libdoc.01.xsd - Compatible with Robot Framework < 3.2.
- libdoc_schema.json - Compatible with Robot Framework >= 4.0.
Both output.xml and Libdoc schema definitions are tested as part of acceptance test runs by validating created outputs against the appropriate schemas. Most output.xml files created during test runs are not validated, however, because that would slow down test execution a bit too much. Full validation can be enabled separately and that should be done if the schema is updated or output.xml structure is changed.