Skip to content

fix: resolve Robot Framework deprecated Return.args warning#458

Merged
gibiw merged 2 commits intomainfrom
fix/robotframework-deprecated-args-warning
Feb 17, 2026
Merged

fix: resolve Robot Framework deprecated Return.args warning#458
gibiw merged 2 commits intomainfrom
fix/robotframework-deprecated-args-warning

Conversation

@gibiw
Copy link
Contributor

@gibiw gibiw commented Feb 17, 2026

Summary

  • Fixed deprecation warning 'robot.result.Return.args' is deprecated and will be removed in Robot Framework 8.0 reported in Warning on deprecation given when using qase exporter for python #457
  • Access args attribute only on Keyword result objects (where it is not deprecated) and use values for all other body element types (Return, For, ForIteration, While, Group, IfBranch, Try, TryBranch, Var, Continue, Break, Error) that inherit DeprecatedAttributesMixin
  • Bumped qase-robotframework version to 5.0.1
  • Updated qase-python-commons dependency to ~=5.0.3

Details

In Robot Framework 7+, all body element types except Keyword inherit DeprecatedAttributesMixin which provides a deprecated args property that:

  • Always returns an empty tuple ()
  • Emits a deprecation warning on access
  • Will be removed in RF 8.0

The previous code had a blacklist approach (only skipping For and ForIteration), missing Return and all other types. The fix switches to a whitelist approach — only accessing .args on Keyword objects and using .values for everything else.

Closes #457

Test plan

  • Verify no deprecation warnings when running Robot Framework tests with qase-robotframework reporter
  • Verify keyword arguments are still correctly captured in step data
  • Verify RETURN, FOR, WHILE, and other non-keyword body elements display their values correctly in steps

Access 'args' only on Keyword result objects and use 'values' for all
other body element types that inherit DeprecatedAttributesMixin.
Bump qase-robotframework to 5.0.1, update qase-python-commons to ~=5.0.3;
The tox config referenced an 'all' extra that doesn't exist in
pyproject.toml, causing CI failures. Only 'testing' extra is available;
@gibiw gibiw merged commit 9b0916d into main Feb 17, 2026
36 checks passed
@gibiw gibiw deleted the fix/robotframework-deprecated-args-warning branch February 17, 2026 17:39
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.

Warning on deprecation given when using qase exporter for python

1 participant

Comments