3

I want to convert given list into [u'', u'src', u'kirti', u'lib', u'auto'] string using robot framework /src/kirti/lib/auto/

2

1 Answer 1

4

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
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.