Questions tagged [cucumberjs]

The original intent of Cucumber project was to support Behavior Driven Development (BDD) in Ruby. However, as it gained traction, Cucumber's appeal expanded, leading to the creation of versions that catered to various other languages such as Java, .Net, Flex, and JavaScript.

Error: The update-config.json file could not be located in Protractor

I recently converted my Cucumber tests to TypeScript and started running them with Protractor. When I run the tests from the command-line using the following commands: rimraf cucumber/build && tsc -p cucumber && protractor cucumber/build/p ...

Running multiple instances of Chrome to execute all scenarios sequentially within a single feature file in Protractor

I need to run all scenarios in multiple instances of a browser. I've set the maximum instance value in capabilities, but only one instance of Chrome opens and the tests run sequentially. How can I ensure that the tests run in multiple instances simult ...

Error: Import statement cannot be used outside a module (@cucumber/cucumber) while using Node.JS, Playwright, and Cucumber framework

I encountered an issue while attempting to compile my Node.js code that is compliant with ECMAScript 6: $ npx cucumber-js --require features/step_definitions/steps.ts --exit import { Before, Given, When, Then } from "@cucumber/cucumber"; ^^^^^^ ...

The JsonFormatter is throwing an error because it is trying to access the property 'on' of an undefined variable

I have encountered an error while attempting to generate an HTML report using cucumber-html-reporter The error message is: Unhandled rejection TypeError: Cannot read property 'on' of undefined at new JsonFormatter (C:path-to-project ode_modulescucumbe ...

Is it possible to invoke Cucumber stepDefinitions from a separate project at the same directory level?

Currently, I have a project called integration_test that includes all test projects utilizing cucumberjs, typescript, and nodejs. Project1 contains the login implementation, and I would like to use this implementation in Scenarios from Project2 and Projec ...

Ensuring the presence of a bootstrap angular alert with protractor and cucumberJS

I am currently utilizing protractor, cucumberJS, and chai-as-promised for testing. There is a message (bootstrap alert of angularJS) that displays in the DOM when a specific button is clicked. This message disappears from the DOM after 6000 milliseconds. ...

Is there a way to pinpoint the line number of a failed cucumber-js step while running through webdriver.io?

After upgrading from an ancient version of cucumber-js (4.2.1) to a more recent one (7.2.1), I am facing an issue where I can no longer determine the line in my feature file where a test is failing. My setup involves using cucumber with Webdriver.io (v7.7) ...

Executing the cucumberjs + playwright tests after starting the angular app using the ng serve command

Our testing process involves using cucumberjs and playwright. Is it possible to initiate Angular with ng serve (using test configuration) before running our tests, and then close the application once the tests are complete? Similar to configuring a web s ...

Is there a way to launch IE in 32-bit mode using webdriver.io?

I am currently executing a test with WebDriver.io using the npm package gulp-wdio on selenium-standalone. The code snippet I am using in gulp is as follows: gulp.task('e2e', function () { return gulp.src('wdio.conf.js') .pipe(wdio({ wdio: { ...

Locate the grandchild of an element by utilizing the parent element

I'm working with HTML code that looks like this <div class="A"> <div class="B"> <div class="c"> </div> </div> </div> If I use A.element(by.css(.c)), will I be able to target the div with the class ...

Tips for ensuring the success of a cucumber scenario

I have successfully integrated my framework with JIRA. Each time I run scripts, the framework checks the status of the test case in JIRA before executing it. If the test case has already passed, I currently handle it by using: throw new SkipException(""S ...

The test session failed to launch due to an error in initializing the "@wdio/cucumber-framework" module. Error message: [ERR_PACKAGE_PATH_NOT_EXPORTED]

I added @wdio/cli to my project using the command 'npm i --save-dev @wdiocli'. Next, I ran 'npx wdio init' and chose 'cucumber', 'selenium-standalone-service', 'typescript', 'allure' along with the default options for the rest. This process resulted in d ...