fix: Support Robot Framework 7.0+ output.xml format in robot plugin#1315
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5658793 to
200b5f6
Compare
ItIsUday
approved these changes
Jun 4, 2026
jothikumar-CB
approved these changes
Jun 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Robot Framework 7.0 (released January 2024) changed the output.xml format for status timestamps:
starttime/endtimeattributes with formatYYYYMMDD HH:MM:SS.fffstart/elapsedattributes whereelapsedis a float in seconds (ISO 8601 timestamp forstart)This change was introduced in RF 7.0 as part of #4258. The robot plugin only handled the old format, causing duration to always be
0when parsing RF 7.0+ output files.What
launchable/test_runners/robot.py: Updatedparse_functo detect the format by checking for theelapsedattribute first (RF 7.0+), falling back tostarttime/endtimeparsing (RF < 7.0).tests/data/robot/output.xml: Updated to a real RF 7.4.2 output file (new format).tests/data/robot/record_test_result.json: Updated golden file to match the newoutput.xml.tests/data/robot/output_legacy.xml: Added legacy RF 3.2.2 output file (oldstarttime/endtimeformat) to keep test coverage for the old format.tests/data/robot/record_test_legacy_result.json: Added golden file for the legacy format test.tests/test_runners/test_robot.py: Addedtest_record_test_legacytest case covering the RF < 7.0 format.