2012/7/27 hoan <
hoan...@openx.com>:
> I found that I can use the Catenate keyword from the BuiltIn library to
> accomplish this. Maybe not elegant, but it gets it done.
>
> @{json_data} Set Variable
> ... { "key1": ["value11", "value12"],
> ... "key2": ["value21", "value22"]}
>
> ${json_str} Catenate @{json_data}
> Log ${json_data}
> Log ${json_str}
This is what I would have proposed. Although I would probably just use
Catenate directly without first creating temporary @{json_data}
variable:
${json_str} = Catenate
... { "key1": ["value11", "value12"],
... "key2": ["value21", "value22"]}
Hopefully it will be possible to wrap long values like this into
multiple lines also in the variable table:
http://code.google.com/p/robotframework/issues/detail?id=939
> A big thanks go to the folks who created and maintained RF. This is a great
> tool. Most of everything that is needed is already there.
Thanks!
Cheers,
.peke
PS: I've been on holiday lately and haven't had time to participate
discussion on this list too much. You can expect more activity next
week.
--
Agile Tester/Developer/Consultant ::
http://eliga.fi
Lead Developer of Robot Framework ::
http://robotframework.org