make a join (list to string) in robotframework

2,363 views
Skip to first unread message

dnl 31337

unread,
Dec 15, 2015, 7:09:23 AM12/15/15
to robotframework-users
Hi all

I have a variable as like with this content =  [u'count-top-10-accepted-sites', u'1', u'12']

how do i convert them to a string like = "count-top-10-accepted-sites 1 12"

i try catenate keyword but not working.

I want to do like a .join in python..


thanks..

dnl 31337

unread,
Dec 15, 2015, 7:23:22 AM12/15/15
to robotframework-users
Sorry i just made it :D

Hélio Guilherme

unread,
Dec 15, 2015, 7:39:14 AM12/15/15
to robotframework-users
It would be interessing for you to share your solution, others may benefit from it.

(aren't we in a Sharing season?)

Thanks for sharing!

PS: Bug sharing is not included :)

--
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 https://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Rahul Maheshwari

unread,
Nov 18, 2016, 6:58:58 AM11/18/16
to robotframework-users
We can use Catenate as below. This will create a string with all list element.

${str} =    Catenate    @{words}
Reply all
Reply to author
Forward
0 new messages