Snooz82 / robotframework-datadriver

Library to provide Data-Driven testing with CSV tables to Robot Framework
Apache License 2.0
131 stars 37 forks source link

Variable '&{inputs}' not found. #76

Closed chaosseed closed 1 year ago

chaosseed commented 2 years 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.

Snooz82 commented 1 year ago

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