python - Using the 'str.join' syntax within the robot framework -



python - Using the 'str.join' syntax within the robot framework -

i looking implement python str.join function on robot framework level , i'm not sure of proper syntax. i've showed code looks in python (which works)

i've tried this:

robot:

set suite variable @{list} ['a', 'h', 'b', 'a', 'f', 'h', 'l'] log @{','.join(list)}

code in python:

p = ['a', 'h', 'b', 'a', 'f', 'h', 'l'] print ','.join(p)

use builtin's catenate.

${my string}= catenate separator=, @{list}

also, not creating list in question. should more this:

@{list}= create list h b f h l

python join robotframework

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -