how to pass a List\dictionary variable to a pybot command

389 views
Skip to first unread message

nnc

unread,
Apr 3, 2015, 10:44:24 AM4/3/15
to robotframe...@googlegroups.com
Hi,
   I have built-in variable similar to below .

account_details = BuiltIn().get_variable_value("${account_details}") 

i am tried to run below command but it fails.

variables HOST and BROWSERTYPE works . but not account_details.


pybot --variable HOST:xxx.com -v BROWSERTYPE:ff -v account_details:`[{'owner_login' : '12345','password' : 'xxxx', 'properties' : ['33333']}]` smoke.txt

pybot --variable HOST:xxx.com --variable BROWSERTYPE:ff --variable account_details:[{'owner_login' : '12345','password' : 'xxxxx', 'properties' : ['33333']}] smoke.txt

any help will be appreciated.


Thankyou

Tatu Aalto

unread,
Apr 3, 2015, 2:03:51 PM4/3/15
to Nalini Chetty, robotframework-users

Ugh

One can only create scalar variables from command line, see more details from user guide [1].

-Tatu
Send from my mobile
[1] http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#setting-variables-in-command-line

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages