Skip to content

fix: Support Robot Framework 7.0+ output.xml format in robot plugin#1315

Merged
Konboi merged 1 commit into
v1from
fix/robot-rf7-output-format
Jun 4, 2026
Merged

fix: Support Robot Framework 7.0+ output.xml format in robot plugin#1315
Konboi merged 1 commit into
v1from
fix/robot-rf7-output-format

Conversation

@Konboi

@Konboi Konboi commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

Why

Robot Framework 7.0 (released January 2024) changed the output.xml format for status timestamps:

  • RF < 7.0: starttime/endtime attributes with format YYYYMMDD HH:MM:SS.fff
  • RF >= 7.0: start/elapsed attributes where elapsed is a float in seconds (ISO 8601 timestamp for start)

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 0 when parsing RF 7.0+ output files.

What

  • launchable/test_runners/robot.py: Updated parse_func to detect the format by checking for the elapsed attribute first (RF 7.0+), falling back to starttime/endtime parsing (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 new output.xml.
  • tests/data/robot/output_legacy.xml: Added legacy RF 3.2.2 output file (old starttime/endtime format) 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: Added test_record_test_legacy test case covering the RF < 7.0 format.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Konboi Konboi force-pushed the fix/robot-rf7-output-format branch from 5658793 to 200b5f6 Compare June 4, 2026 09:26
@Konboi Konboi merged commit 619ef53 into v1 Jun 4, 2026
14 checks passed
@Konboi Konboi deleted the fix/robot-rf7-output-format branch June 4, 2026 10:15
This was referenced Jun 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants