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'
上一篇 Robot Framework 自定义自己的Python库
下一篇 Robot Framework中解析utf-8格式的中文转换
目录
文章列表
1 常用前端开发框架简介
常用前端开发框架简介
2
Spring Boot中MongoDB的使用
Spring Boot中MongoDB的使用
3
Spring Security 之多AuthenticationProvider认证模式实现
Spring Security 之多AuthenticationProvider认证模式实现
4
玩转Redis-干掉钉子户-没有设置过期时间的key
玩转Redis-干掉钉子户-没有设置过期时间的key
5
Python Selenium多表单切换
Python Selenium多表单切换
最新评论
一位WordPress评论者
一位WordPress评论者
2月12日
您好,这是一条评论。若需要审核、编辑或删除评论,请访问仪表盘的评论界面。评论者头像来自 Gravatar。