Skip to content

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

Closed
Konboi wants to merge 3 commits into
mainfrom
v1
Closed

fix: Support Robot Framework 7.0+ output.xml format in robot plugin#1314
Konboi wants to merge 3 commits into
mainfrom
v1

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.

github-actions Bot and others added 3 commits June 3, 2026 10:27
Robot Framework 7.0 changed the status timestamp format from
starttime/endtime attributes to start/elapsed attributes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Konboi Konboi closed this 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.

1 participant