当尝试在Chrome和Electron浏览器中运行我的测试时,似乎得到以下异常:
cypress-auto-framework\cypress\integration\Cucumber\EATest.feature:2
Test the EA Features
^
ParseError: Unexpected token
我的功能文件用于捕获需求:
Feature: EaTestFeature
Test the EA Features
Scenario: Test the login feature
Given I visit the
我正在运行一个黄瓜特征文件在一个柏树跑。
db.feature
Feature: DB
Scenario: db test
When i try to connect to db
Then i get the code
我的步骤定义如下
db.ts
import { Given, When, Then, Before } from "cypress-cucumber-preprocessor/steps";
When(/^i try to connect to db$/, () => {
cy.task('log
我正在尝试将我的测试从Cypress 8.7.0版本迁移到Cypress 10.10.0版本。安装了最新版本,并执行了以下设置,但出现以下错误。使用以下版本:Cypress 10.10.0、"@badeball/cypress-cucumber-preprocessor": "^11.4.0"、node v18.4.0、@bahmutov/cypress-esbuild-preprocessor": "^2.1.5"
Expected to find a global registry (this usually means you a
我是第一次接触cucumber测试框架。我的目标是使用Junit和Maven并行运行场景文件。我遵循了以下步骤:
我有两个功能文件
特性1:
Feature: Scenarios feature file One
Scenario: Scenario Number One
When request is sent to fetch data with user one
Then check the result
特性2:
Feature: Scenarios feature file One
Scenario: Scenario Number Two
在Cucumber中导入一些依赖项时遇到问题。错误如下: Running: features\my_feature.feature... (1 of 1)
Browserslist: caniuse-lite is outdated. Please run next command `npm update`
Oops...we found an error preparing this test file:
cypress\integration\features\my_feature.feature
我将10.3.0从9.5.2升级到了9.5.2,以前我使用的是cypress-cucumber-preprocessor4.3.1,现在我将它升级到@badeball/cypress-cucumber-preprocessor**:**^11.4.0.
在升级之前,我使用cypress-tags使用命令运行测试。
npx cypress-tags run --env TAGS="@regression" --browser chrome
但是在升级之后,它把我抛在了错误之下。
npm ERR! could not determine executable to run
请查找下
在我将Cypress迁移到版本10之后,Cucumber预处理器停止工作。我已经找到了一些我实现的解决方案,我还安装了最新的@badeball/cypress-cucumber预处理器。
现在我被困在如何设置cypress.config.js文件,因为原来的插件文件夹是不推荐的。
在插件文件夹下的旧index.js中,我有:
const cucumber = require("cypress-cucumber-preprocessor").default;
module.exports = (on, config) => {
// `on` is used to h
我在IntelliJ中运行黄瓜测试时遇到了一个问题。当我尝试运行一个特性或场景时,我得到以下错误:
"Error running 'Feature <feature>': Command line is too long. Shorten command line for Feature: <feature> or also for Cucumber java default configuration"
我知道作为IntelliJ的的一部分,他们在运行/调试配置中添加了对"Shorten Command Line“选项的支持。但
有人能帮我吗?
1.我正在运行一个有两个数据选择的场景:
@PM
Feature: Product Move
Scenario Outline: Example test
Given I open Portal as admin
And open 'Product Move' widget from 'Portal'
And add products '<productName>'
| Product |
| <productName> |
@