Robot Framework变量及关键字连接字符串
Variables 变量
使用 Catenate 关键字
${base_url} http://www.appblog.cn
${api_user_url} ${base_url}/api/user
Keywords 关键字
${str1} Catenate Hello World #默认以空格作为间隔符
${str2} Catenate SEPARATOR=--- Hello World
${str3} Catenate SEPARATOR= Hello World #无连接符,即以空字符串作为连接符
执行结果:
${str1} = 'Hello World'
${str2} = 'Hello---World'
${str3} = 'HelloWorld'
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/03/robot-framework-variables-and-keyword-connection-strings/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报
Robot Framework变量及关键字连接字符串
Variables 变量
使用 Catenate 关键字
${base_url} http://www.appblog.cn
${api_user_url} ${base_url}/api/user
Keywords 关键字
${str1} Catenat……
文章目录
关闭
共有 0 条评论