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
Post a Comment