Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [cucumber]

Cucumber is a tool for running automated acceptance tests written in a BDD (behaviour-driven development) style.

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

How to repeat the same test with Selenium Webdriver without opening a new browser instance each time?

I am using Selenium Webdriver on Node.js with Cucumber.js. I want to run the same test on multiple pages. In this case just checking for 404s in my footer. My Cucumber .feature file looks like: ...
MeltingDog's user avatar
0 votes
0 answers
12 views

Parallel feature files execution in Cucumber with TestNG runner? [duplicate]

How to run multiple feature files parallely in cucumber with TestNG runner? <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>...
kunaltester2304's user avatar
0 votes
0 answers
24 views

How to run multiple Feature files parallelly in Cucumber with TestNG Runner?

I am facing one issue: I need to run 5 feature files that are totally independent of each other, Each feature files logs into a different site. I want 5 different ChromeDriver Browser sessions to open ...
kunaltester2304's user avatar
-1 votes
0 answers
13 views

Cucumber parse features at build time

I have a requirement where I need to update a variable if a particular step is present in a scenario. I also need to something like this { "testCaseId/any unique identifier for a scenario" : ...
MarioBros's user avatar
-1 votes
0 answers
13 views

Cucumber fail with dry run option

I have a use-case where I need to run a dry-run using runCucumber API. I have added the dry run option using this parameter in my runConfigurations : runConfiguration.runtime.dryRun = true. I am ...
MarioBros's user avatar
0 votes
0 answers
11 views

loginPage login is not imported stuck on that point

package StepDefinations; import java.time.Duration; import org.openqa.selenium.WebDriver; import org.openqa.selenium.edge.EdgeDriver; import io.cucumber.java.en.And; import io.cucumber.java.en....
Tejas Nitin More's user avatar
0 votes
0 answers
17 views

Cucumber selenium testng getting error in testrunner

package Runner; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import io....
Anil's user avatar
  • 1
0 votes
1 answer
125 views

What is the best way to set up multiple tests on one webpage with Selenium Webdriver and Cucumber JS?

I am new to automated testing, Selenium and Cucumber.JS and am trying to set it up in Node.JS to run several tests on my website. I have gotten single scenarios/test working fine, but I am a bit ...
MeltingDog's user avatar
0 votes
0 answers
134 views

Can't walk dependency graph: Cannot find module '

When I try to run cypress using Cucumber, I got This is the structure of the folders The file I am trying to run is purchaseOrderCheckScreen.feature Cypress package version: 9.7.0 Cypress binary ...
IBrito's user avatar
  • 185
1 vote
1 answer
733 views

How to share data between steps in Cucumber feature file?

I am designing automation scripts using the REST APIs, RestAssured with Cucumber BDD framework. I have multiple APIs where one API's response is used as a parameter in another API. Here is my feature ...
iAutomate's user avatar
  • 359
0 votes
0 answers
268 views

how to send allure report as a attachment in email from jenkins to outlook

This is the email configuration could you please guide me on which path i should use to get the allure report?
Praveen Tiwari's user avatar
0 votes
1 answer
56 views

Cucumber, TestNG, Parallel - sometimes webdriver not controlling browser

I'm using Cucumber, TestNG, WebDriver, WebDriverFactory and PicoContainer. Scenarios run in parallel. I'm getting strange intermittent failures - every now and then (perhaps one in 20 runs) in one of ...
Scott Deagan's user avatar
0 votes
0 answers
66 views

The selector is not recognized by selenium java

I have the following HTML code for a button: <div class="link" data-background-color="#fb00ff" style="background-color: rgb(251, 0, 255);"> <div data-replace-...
AAa's user avatar
  • 1
0 votes
0 answers
842 views

Allure report not generated when one or more test cases at pending status, due to Cucumber tags

Error message; allure-results does not exist. When test cases pass failed only report generated with no issue. Project created by Cypress, Cucumber with typescript Run in Jenkins/Docket image Jenkins ...
Dev Perera's user avatar
0 votes
0 answers
54 views

Auto suggestions missing for built in locators like goto, click, fill in Playwright Javascript

I am doing playwright java script automation using POM cucumber BDD framework. I initiated page object in Hooks file. If I want to access that page object in another methods in the same file it is not ...
Meera Yogesh's user avatar
0 votes
0 answers
847 views

Java Cucumber - junit does not run any test

could you tell me why "mvn test" or "mvn verify" does not run any test ? Maybe any dependency is missing ? package cucumber.Options; import io.cucumber.junit.Cucumber; import io....
javabeginer's user avatar
1 vote
1 answer
1k views

Java Cucumber - pretty html reports net.masterthought - No JSON report file was found

I get the following error when I run the code About to generate Cucumber report. May 02, 2023 6:55:06 PM net.masterthought.cucumber.ReportBuilder generateErrorPage WARNING: Unexpected error net....
javabeginer's user avatar
0 votes
1 answer
734 views

Java selenium - pretty cucumber reports not generated with screenshot

could you tell me how to generate pretty html reports with screenshot ? After I run the test the "cucumber-reports.html" does not exist. Only "image.png" file is generated. ...
javabeginer's user avatar
1 vote
0 answers
3k views

How to Run cucumber Test cases in different environments

In our Application, We have webservices which are communicating with the other sub systems We are implementing cucumber BDD framework for testing. We have cucumber feature file, Step def file and ...
Naveena Ch's user avatar
0 votes
1 answer
621 views

Facing challenges to run java selenium tests with gitlab runner

I am trying to run cucumber maven tests on gitlab ci using selenium grid, from the output I have observed that containers for grid setup are up and running. But I am not able to run my cucumber tests ...
SRM21's user avatar
  • 299
0 votes
0 answers
405 views

Cucumber TestNG Gradle Parallel Execution ThreadCount

I am trying to run my Cucumber scenarios in parallel using the TestNG. But when I run it 'parallel=true' it executes the test cases in thread count=10 (testng default). I want to customise the thread ...
Alok's user avatar
  • 760
0 votes
0 answers
25 views

Design of shared Acceptance Tests steps for different test frameworks and languages

We have the following setup: Multiple client applications containing UI E2E tests written in different programming languages (java, c#, swift ...). All those client applications have basically same ...
trajgon123's user avatar
0 votes
0 answers
323 views

How do I run tagged Feature/scenario/Examples in Webdriverio-cucumber/boilerplate?

Hi _ if anyone can help here- I am trying to run a specific scenario with examples by using Cucumber tags- this is the expression I am using to run the tests built with Webdriver- Cucumber-boilerplate ...
sameer joshi's user avatar
0 votes
1 answer
4k views

How to load Config.properties file in Cucumber TestRunner.java file?

To run my Selenium/Cucumber java project, I need to pass some VM arguments, variables, properties path etc... now easiest way is to pass it in Eclipse run configuration under "VM arguments" ...
danny234's user avatar
0 votes
1 answer
2k views

Test has been compiled by a more recent version of the Java Runtime (org/testng/annotations/TestNG)

I found my issue below when using this dependencies: </dependency> <dependency> <groupId>io.appium</groupId> <artifactId>java-...
barzilai zio's user avatar
0 votes
0 answers
904 views

How to pass dynamically JSON test data file to json spec.js file to get data in Cypress + Cucumber?

I want to run same test for the same web page for different combinations. Therefore I'm planning to created different scenarios in same feature file or different files. I have already tried passing ...
Syrus's user avatar
  • 1,197
0 votes
0 answers
941 views

Cucumber .Hoook class is throwing errors due to not having an empty constructor

I've been struggling with this issue all the day and no way for solving it. The thing is that if I put a non-empty constructor (with the context) for the .Hooks class, there is an exception of the ...
Pedro Santangelo's user avatar
0 votes
0 answers
175 views

Why does my WebDriver object become null in next scenario?

The single feature file contains 2 Scenarios. Scenario: Go to Given Open Firefox When Go to "https://somewebsite.com/" Scenario: Find profile icon Given Find user profile icon ...
Abhinay Singh Negi's user avatar
-1 votes
2 answers
7k views

How to run the same scenario multiple times in Selenium Cucumber?

I have not used Example/Data Table to parameterized the test data, The ask is very straight forward run the same scenario multiple times sequentially.
Niks 's user avatar
0 votes
1 answer
2k views

How can I store a value as global variable from an API response and pass it to another API as parameter in Cucumber feature file using REST assured

I am designing automation scripts using the Cucumber BDD framework for REST APIs using RestAssured. I have one API which generates the "Token" and then there is another API for order ...
iAutomate's user avatar
  • 359
0 votes
1 answer
285 views

Measurement of APIs load and performance within a Cucumber test case possible?

Baseline: Currently, within a Java environment and Maven integration, we use Cucumber for our API testing procedures inside Junit Test. This is also well implemented and accordingly everything works. ...
Mornon's user avatar
  • 1,117
-1 votes
1 answer
2k views

can we prioritize test scenario in cucumber feature file during execution?

Login.feature Scenario: log in using valid credential Scenario: log in using invalid credential How can i execute second scenario first
Qa Test's user avatar
0 votes
1 answer
56 views

One Tests or Multiple Separate Test Automation BDD

How the system works (UI) Registration Form > Redirect to Another Page with Products (based on the submitted in the registration form) (backend) API will check the validity > Valid or not it ...
wizaiz's user avatar
  • 3
0 votes
3 answers
7k views

I am not able to ctrl + click on feature file in Cucumber step definition, definition not found error

Help Me I have installed Cucumber and Natural but my feature file is not getting highlighted after clicking ctrl + click. Also, it has highlighted with yellow color While running Test Runner, it says ...
Surbhi Agarwal's user avatar
1 vote
1 answer
538 views

Why do we need to initialize Page Object class again in every Step of Cucumber scenario?

User user1; Given("Add a new User profile") public void addUser(){ PageFactory.initElements(driver, User.class); user1.enterName(...); } Then("Edit a existing User profile") ...
arvind92's user avatar
0 votes
0 answers
2k views

Chrome Driver Maven Error "org.openqa.selenium.SessionNotCreatedException: Could not start a new session."

I am trying to run a selenium-based java test application on Intellij using maven. The problem is that if I run the test in IntelliJ the chrome driver starts and run successfully whereas if I Exeecute ...
Azeem Baloch's user avatar
0 votes
1 answer
1k views

How can we create our own Custom HTML report for Cucumber based Selenium Project?

I have a Cucumber based Selenium framework written in Java. Now, for reporting i use some common plugins/libraries like Extent report. That is fine. However, i want to create my own custom HTML report,...
raj49's user avatar
  • 11
0 votes
0 answers
252 views

I have a list with Incident numbers. I want to run a test case for each of the incident. How to pass the values from list into Cucumber feature file?

I have a list with Incident numbers. I want to run a test case for each of the incident. I get the list from an excel file during execution. How to pass the values from list into Cucumber feature file?...
Mithra's user avatar
  • 1
2 votes
2 answers
12k views

The plugin specification 'com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:' has a problem:

I am getting this error while trying to generate the extent report for cucumber-java and Junit. I am using cucumber version 6.9.1 and grasshopper adapter6. This is my pom.xml file. <!-- ...
user50964's user avatar
1 vote
1 answer
693 views

Cucumber - Accessing injected context in After scenario hook

I'm attempting to refactor a test automation framework I have inherited (Java, Selenide, Cucumber) from one that uses static global state for test data, to context injected test data using ...
gerdyw's user avatar
  • 13
2 votes
1 answer
128 views

Is Cucumber Scenario equivalent to a Java Class?

@Add User Scenario: Add a new User profile in the System Given user is on the Add User profile page Then Add a new user profile in the system Then verify that user has been added successfully Now, ...
user50752's user avatar
2 votes
4 answers
7k views

How to open outlook and click on the link that is there in the mail using Selenium

In my application I need to send a confirmation after which an mail will arrive to my Outlook which I need to open and click on the link which is sent in the mail. Can someone please let me know if ...
user50414's user avatar
1 vote
2 answers
168 views

how to add "\n" to the method

I have the below method: PUBLIC methodname(WebDriver driver,formEntryMap<String,String>,String Colkey) { String Xpath = This will have the xpath of the input text box inputfieldEntry(driver,...
user49933's user avatar
0 votes
2 answers
2k views

How can I run a login test for 100 users at the same time using Selenium, TestNG and Cucumber? [closed]

I am a newbie in Automation testing. I have a list of 100 users in a excel spreadsheet: User1: userid1/password1 User2: userid2/password2 ... and so on. I need to create a script and make all 100 ...
matt038's user avatar
  • 13
0 votes
2 answers
340 views

deserializing response body in java

I'm testing API with Rest Assured, I have all the necessary dependencies, all setup, the only question is, I have created all POJO classes for Request Body, I'm in the phase, where I have to verify, ...
Qa Automation's user avatar
0 votes
1 answer
332 views

java.lang.NullPointerException,at ✽.Given product is set with the following fields(src/test/resources/features/wizard/wizardNewProduct.feature:

Pls, I need help, I'm getting a null pointer exception, When I send a request, I'm catching values in Cucumber through the List<Map<String, String>>. I'm testing API with Rest Assured and ...
Qa Automation's user avatar
0 votes
0 answers
162 views

I am new with Ruby and Cucumber and I got this error undefined method `col_span' for class `Watir::TableCell' (NameError) what should I do?

I am new with Ruby and Cucumber and I got this error: undefined method 'col_span' for class 'Watir::TableCell' (NameError) What should I do?
Rekk Less's user avatar
1 vote
2 answers
2k views

What is the difference between BDD automation framework and Keyword driven automation framework?

I am using the Cucumber BDD framework for test automation. I have read articles on keyword-driven which state that keywords such as sign_in are exposed to nonprogrammers and the implementation is ...
JKC's user avatar
  • 35
0 votes
3 answers
2k views

How do I deal with duplicated testing steps in Cypress?

Writing test cases using Cypress and Cucumber. I have a few test cases written in Cucumber Syntax like following: @focus Scenario: All Accessibility tabs (Color scheme, Font size, Zoom) are visible ...
Yu Zhang's user avatar
  • 9,942
-1 votes
1 answer
252 views

I am trying to implement Extent Report in Cucumber project with Cucumber Event Publisher class but getting exception

I am trying to create Extent Report in cucumber project with EventPublisher class. Basically took help from How to implement Extent report in Cucumber using EventListener and Where to find ...
Techreviews4all Support's user avatar

1
2 3 4 5