Skip to content

Expected 0 arguments, got n #14

Description

@oianson

On Robot Framework 7.0 when trying to use 'Debug' keyword and calling the following python keyword, I am getting an error saying expected 0 arguments, got 2.
I get the error regardless of how many arguments the keyword takes

    @keyword('attach module "${module:[^"]+}" console and execute "${command:[^"]+}"')
    def attach_console_and_execute(self, module, command):

attach module "100" console and execute "show version"
! Expression: attach module "100" console and execute "show version"
! Execution error: Keyword 'CXTA.robot.DeviceCli.attach module "${module:[^"]+}" console and execute "${command:[^"]+}"' expected 0 arguments, got 2.

Do not observe the same behaviour if using normal arguments

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions