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
18 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
10 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 ...
Ingridd Brito's user avatar
1 vote
1 answer
179 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
134 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
26 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
1 answer
57 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
602 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
23 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
477 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
0 votes
0 answers
724 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
2 answers
319 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
1 answer
1k 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
-1 votes
1 answer
121 views

Generating test run/result for manual testing from Cucumber Feature files

For my simple mobile app, I have started migrating my test cases from a Google Doc into cucumber feature files. I have yet to automate the steps, so there are all manual cases. Is there a way for me ...
Phuah Yee Keat's user avatar
0 votes
2 answers
433 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
306 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
24 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
231 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
2 answers
2k 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
683 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
711 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
141 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
5k 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
2 answers
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
231 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,107
-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
53 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
5k 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
433 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
960 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
232 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
10k 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
528 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
117 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
6k 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
126 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
1k 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
309 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
279 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
156 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
1k 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,932
-1 votes
1 answer
222 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 vote
3 answers
125 views

Tests that cannot be automatable in BDD model but can be automatable in TDD model

I have been to a interview. The interviewer said they were using BDD model in their project. He asked me this question. Define some Tests that cannot be automatable in BDD model but can be ...
Jagadish Dabbiru's user avatar
-1 votes
1 answer
821 views

Still Getting Element is not currently visible and so may not be interacted with Can some one pls give your inputs

I am getting the above error : Below is the xpath : String MeetingTypedropdown = "//*[@id='meetingDatesForm:meetingDatesTable_data']/tr["+(i+1)+"]/td[3]//div[3]/span"; PageUtil....
sandy's user avatar
  • 23
1 vote
1 answer
668 views

Checkbox gets unchecked even though the Code is written to only select the checkbox..can someone pls help

Scenario: On the Screen once I navigate I have to click on the checkbox the first time only... Next time when I run the script the checkbox should not be unchecked.... but Issue: First Time if the ...
sandy's user avatar
  • 23
0 votes
3 answers
475 views

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button.Can some one pls guide.NeedHelp

In the screen how to navigate to the row which contains the text that needs to be Edited and then click on Edit button. Scenario: I have a screen where I need to find the row which has the value as &...
sandy's user avatar
  • 23
1 vote
1 answer
414 views

Not able to click Search button and also select the option from the drop down Getting .ElementNotVisibleException

Not able to click Search button and also select the option from the drop down Getting: org.openqa.selenium.ElementNotVisibleException: Element is not currently visible and so may not be interacted ...
sandy's user avatar
  • 23
0 votes
1 answer
341 views

How to check in the page if the name exists and then increment a unique name

I have a scenario where I need to add new username everytime is run the script. For instance, if the last time I had added a name as test1, then next time when I add another name I should not add ...
sandy's user avatar
  • 23

1
2 3 4 5