javascript - 如果我使用 Cypress-cucumber 对两个不同的示例使用两个不同的标签,会出现错误?
问题描述
我在 cypress 中有一个功能文件和步骤定义文件。
我的功能如下所示:
Scenario Outline:
Given when I go the page
When I login
Then Do some test
@test1
Examples:
|email|
|test@gmail.com|
@test2
Examples:
|email|
|test@gmail.com|
我用这个命令运行:npx cypress-tags run -e TAGS="test1"
但我收到以下错误:
使用 cypress.json 配置
规格文件:cypress/integration/**/*.feature
没有找到匹配的标签
但是,如果我有这样的场景,我会使用我使用的命令获得预期的结果。
@test1
Scenario Outline:
Given when I go the page
When I login
Then Do some test
Examples:
|email|
|test@gmail.com|
|email|
|test@gmail.com|
有什么方法可以根据示例中的标签运行吗?
解决方案
推荐阅读
- java - 使用条件转换 HashMap 中的流
- javascript - Javascript .forEach() 不适用于 DOM 节点,因为它们在过程中会发生变化
- sql - 如何从 SQL Server 中恢复已删除的数据?
- c# - OAuth2 + 生成新的授权承载访问令牌 C# MVC
- java - 变量存储在 Session 中?/ 在 JFrame 之间传递变量
- outlook - 如何通过导入 ics 文件 Office 365 将“发送提醒”设置为“所有与会者”
- c# - Word VSTO 加载项:如何设置自定义任务窗格的宽度?
- c# - VSTS 无法构建 docker 镜像
- android - Android Keylogger /System.out: [chmod, 7777, /sytem/xbin/su],null,null 权限被拒绝,找不到“su”文件
- asp.net-mvc - 使用 filterContext 的 MVC5 服务器端重定向