Breaking changes
- Changed default behavior of the
fail_on_errors
setting.-
When using the
Validate Xml Files
keyword, test cases that detect validation errors (of any kind) will have FAIL status. -
Previously, test cases received a PASS status, even when validation errors were found, unless
fail_on_errors=True
was explicitly set. -
This change improves alignment with common validation expectations and was motivated by user feedback.
-
To preserve the old behavior, explicitly set
fail_on_errors=False
either during library import or per keyword call:Library XmlValidator fail_on_errors=False
Or:
Validate Xml Files path/to/file.xml fail_on_errors=False
-
Note:
The library's batch validation behavior remains unchanged. That is, fail_on_errors=True
does not short-circuit the validation process in any way.
For example
- If you validate fifteen XML files and five of them contain schema violations or other errors, all files will still be processed.
- Errors are simply collected throughout the run and reported collectively, only after the final file has been (fully) processed.
- The test case will fail (assuming
fail_on_errors=True
) only after all files have been checked, ensuring comprehensive diagnostics.
Added
-
Support for setting
fail_on_errors
also at the library import level- Applies to all calls to
Validate Xml Files
unless explicitly overridden during keyword call (see also earlier/above). - Improves usability and test readability.
- Applies to all calls to
-
New Robot Framework demo test suite containing 8 self-contained test cases.
- Demonstrates key features:
- Single and batch XML validation
- Schema matching by filename and namespace
- Custom error facets
- Malformed XML handling
- XSD includes/imports
- CSV export
- Serves as a quickstart reference for users exploring the library.
- Demonstrates key features:
-
ROADMAP.md
to document planned features and/or improvements.
Changed
- Integration test suite updated to support and validate the new
fail_on_errors
behavior.- Tests now reflect expected
FAIL
orPASS
statuses depending on configuration. - Verifies both default (library-level) and keyword-level overrides.
- Tests now reflect expected
- Minor changes in the Robot Framework logging (based on user feedback).
- Changed some from level=WARN to level=INFO.
- Some got commented out.
- Some indentation changes as well.
- Fixed unit tests that now failed due to aforementioned changes in the logging.
- Changed documentation (READEME.md, keyword documentation, etc.) to reflect additions and changes in this version.