Malay
Malay

Reputation: 55

Can arguments be passed to List variable in ROBOT framework

My problem is:

I am trying something like this ${${variable}} Create List

${variable} --this will be passed as an argument.

I get the following error when I do it:- No keyword with name '${${variable}}' found

Upvotes: 1

Views: 10714

Answers (1)

Bfcm
Bfcm

Reputation: 2746

To make a list use @{list}, but not ${variable}. To parse ${variable} to list, use something like this: @{list} ${first_variable} {seconn_variable}.

More info you can get here: http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html?r=2.7.4#list-variables

Hope this would help you!

Upvotes: 2

Related Questions