Skip to content

Problems with **kwargs #52

Open
Open
@dtougas

Description

@dtougas

I am relatively new to Robot Framework, so maybe this is just a newbie error... I have a library method like this:

class MyLibrary:
    def do_something(self, *args, **kwargs):
        stuff_happens()

This library is getting launched remotely, and for the most part everything is working great, except for the kwargs. In my .robot file, if I call it like this:

My test
    Do something  x  y  z  my_arg=1

What I am seeing is that the my_arg=1 is getting passed in wholesale to args as a string, rather than as a k/v pair in kwargs. Am I doing something wrong here?

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