I want to convert given list into [u'', u'src', u'kirti', u'lib', u'auto'] string using robot framework /src/kirti/lib/auto/
-
2Welcome to Stack Overflow! When you created your account here, it was suggested you take the tour and read the help center pages in order to familiarize yourself with the site. Specific pages that you should read include How Do I Ask a Good Question? and How to Create a Minimal, Complete, and Verifiable Example. Please take these introductory steps and then edit your post accordingly.chb– chb2018-02-15 07:37:42 +00:00Commented Feb 15, 2018 at 7:37
-
1groups.google.com/forum/#!topic/robotframework-users/… This may be exactly what you needcris– cris2018-02-15 12:57:40 +00:00Commented Feb 15, 2018 at 12:57
Add a comment
|
1 Answer
Assuming that the robot list @{data} contains the information you want to join, you can use evaluate along with robot's special syntax for variables to call the python join method:
*** Test Cases ***
Example
@{data}= create list ${empty} src kirti lib auto
${path}= Evaluate "/".join($data)
should be equal ${path} /src/kirti/lib/auto