Closed chaosseed closed 1 year ago
Hi I have a Keyword template with dictionary args I would like to use in non-data-driven tests, too.
In my keyword I defined the dictionary type input arg as ${inputs} and in excel file I use &{inputs} and this works fine in data-driven tests.
Now I would like to change ${inputs} to &{inputs} in my Keyword so that it accommodate non-data-driven tests.
The issue is after the change, I am getting Variable '&{inputs}' not found error in data driver tests.
Could someone please suggest a solution? Thank you.
the &{input} is not a named argument it is an argument that consumes all named arguments given to a keyword.
example: Running Example with differences between $ and &
I hope that example helps
Hi I have a Keyword template with dictionary args I would like to use in non-data-driven tests, too.
In my keyword I defined the dictionary type input arg as ${inputs} and in excel file I use &{inputs} and this works fine in data-driven tests.
Now I would like to change ${inputs} to &{inputs} in my Keyword so that it accommodate non-data-driven tests.
The issue is after the change, I am getting Variable '&{inputs}' not found error in data driver tests.
Could someone please suggest a solution? Thank you.