Skip to content

Run on failure does not work correctly if named argument syntax is used #1396

Closed

Description

@aaltat

Describe the bug
Run on failure does not work correctly if named argument syntax is used in keywordxs args.

Originally reported in here

User are experiencing an issue:

[ WARN ] Keyword 'Take Screenshot ('fullPage', True)' could not be run on failure: 'tuple' object has no attribute 'upper' same with all possible arguments.

Tested on my local Windows environment and on browser-docker image.

Activity

  1. added
    bug
    on Oct 15, 2021
  2. added this to the v9.1.0 milestone on Oct 15, 2021
  3. added 2 commits that reference this issue on Oct 15, 2021
    64d86a1
    647d912
  4. added a commit that references this issue on Oct 15, 2021
    2936634
  5. tomekPawlak commented on Jan 17, 2022

    @tomekPawlak

    Hello @aaltat,
    Looks like it still not working correctly for filename argument. All others are fine.
    Try with:
    Register Keyword To Run On Failure Take Screenshot filename=robotframework-browser-screenshot-{index}
    It's failing because:
    Keyword 'Take Screenshot filename=robotframework-browser-screenshot-{index}' could not be run on failure: take_screenshot() got multiple values for argument 'filename'
    Working fine for positional argument.
    Checked on version 11.1.1

  6. aaltat commented on Jan 21, 2022

    @aaltat
    MemberAuthor

    Interesting, could you raise an issue about with --loglevel trace attached, so that we do not forget it.

  7. tomekPawlak commented on Jan 21, 2022

    @tomekPawlak

    done #1702

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugpriority: critical

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions