Gauge 中Step使用别名
来源:互联网 发布:爱扑网络招聘 编辑:程序博客网 时间:2024/04/29 12:49
所有内容均来自Gauge官网文档
在执行的过程中,可能需要使用不同的名称来执行同样的操作,所以使用别名来区分
- 在这个Scenario中,第一步和第三步是相同的操作,但是表示的方式不同
User Creation ============= Multiple Users -------------- * Create a user "user 1" * Verify "user 1" has access to dashboard * Create another user "user 2" * Verify "user 2" has access to dashboard
- 使用别名即可解决这个问题:
public class Users { @Step({"Create a user <user_name>", "Create another user <user_name>"}) public void createUser(String user_name) { // create user user_name } }
- 在这个两个Scenario中,发送邮件的操作是相同的
User Creation ------------- * User creates a new account * A "welcome" email is sent to the user Shopping Cart ------------- * User checks out the shopping cart * Payment is successfully received * An email confirming the "order" is sent
- 使用别名:
public class Users { @Step({"A <email_type> email is sent to the user", "An email confirming the <email_type> is sent"}) public void sendEmail(String email_type) { // Send email of email_type } }
0 0
- Gauge 中Step使用别名
- Gauge中文文档(4)—Gauge使用
- Gauge
- 在MDX中使用别名
- mysql中update别名使用
- Alert中添加Gauge对象
- Alert中添加Gauge对象
- Gauge中执行钩子(Hook)
- Gauge中执行数据库测试
- VC++中使用ADO连接数据库step by step
- SQL Update 语句中使用别名
- Ubuntu中使用alias设置命令别名
- Linux中命令别名的使用
- mysql delete 语句中使用别名 alias
- php命名空间中别名的使用
- mybatis中namespace和别名的使用
- CentOS中命令别名的使用
- Webpack中使用相对路径定义别名
- 串口并口
- 前端 jquery-ajax 的简单案例分析和总结
- 80端口被占用
- Apache Beam Overview
- 网站关键词排名怎么去优化到百度首页(思维与技巧结合)
- Gauge 中Step使用别名
- 备份表
- Microsoft visio 2016免费版 64位/32位
- 可视化 | 人物画像的设计方法
- React Native跨平台移动应用学习与开发(一) 环境的搭建
- LeetCode 353. Design Snake Game
- win7 + VMware Workstation+linux(centos7) win7 通过sabma访问linux
- 策略模式——小白入门
- 10gRAC建立两节点互信(SSH)