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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -