cucumber - 使用标签在黄瓜场景中设置优先级
问题描述
我正在尝试按顺序执行黄瓜场景。我有多个具有不同区域的功能文件,并希望根据以下优先级执行我的场景。
功能文件:1
@IE priority=1
Scenario: A new user can place a Contact Lens order with WorldPay
Given the Guest user trying to buy a mobile phone
When user pay using a card
Then the product is added into the basket
@IE priority=2
Scenario: A returning customer can place a express order
Given The returning customer trying to buy a mobile phone
When user pay using a card
Then the product is added into the basket
@IE priority=3
Scenario: A returning customer can place an order
Given The returning customer trying to buy a mobile phone
When user pay using a card
Then the product is added into the basket
功能文件:2
@GB priority=1
Scenario: A new user can place a Contact Lens order with WorldPay
Given the Guest user trying to buy a mobile phone
When user pay using a card
Then the product is added into the basket
@GB priority=2
Scenario: A returning customer can place a express order
Given The returning customer trying to buy a mobile phone
When user pay using a card
Then the product is added into the basket
@GB priority=3
Scenario: A returning customer can place an order
Given The returning customer trying to buy a mobile phone
When user pay using a card
Then the product is added into the basket
我对黄瓜进行了同样的尝试,但无法按顺序执行。
解决方案
推荐阅读
- react-native - 如何在本机反应中定位子组件
- vue.js - 按钮组件不接收 DataTable 道具
- sql - 将行转置为列
- r - R: 添加当前行出现次数为多少的列
- r - R在列表中自动绑定多个df
- google-apps-script - Google Apps 脚本触发器执行太晚
- scala - 当我使用格式“MM/dd/yyyy HH:mm a”解析日期“03/12/2009 19:12 PM”时,它返回 true
- android - 我们应该在 Kotlin Android 项目中使用黄油刀还是 findViewById(),因为我们可以通过 id 直接访问视图
- django - Django rest框架:如何根据特定字段(=不是id)获取外键
- elasticsearch - 在 Kibana 和 Elasticsearch 中使用管道聚合进行可视化