我创建了一个将两个字符串连接起来并返回新字符串的关键字,但是我无法理解某些错误。
Set error
[Arguments] ${userName} ${error}
${errorStr} Catenate ${error} ${userName}
log to console ${errorStr} #->works 'No value in database for John'
[Return] ${errorStr}
但返回时出现此错误:
答案 0 :(得分:0)
尝试这样。
[Arguments] ${userName} ${error}
${errorStr}= Catenate SEPARATOR= \ ${error} ${userName}
Log ${errorStr} #->works 'No value in database for John'
[Return] ${errorStr}