Questions tagged [cucumber]
Cucumber is a tool for running automated acceptance tests written in a BDD (behaviour-driven development) style.
238
questions
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 ...
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 ...
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 ...
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?
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 ...
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-...
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 ...
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 ...
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....
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....
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.
...
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 ...
-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 ...
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 ...
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 ...
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 ...
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 ...
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" ...
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-...
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 ...
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 ...
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
...
-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.
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 ...
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.
...
-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
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 ...
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 ...
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")
...
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 ...
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,...
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?...
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.
<!-- ...
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 ...
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, ...
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 ...
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,...
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 ...
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, ...
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 ...
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?
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 ...
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 ...
-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 ...
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 ...
-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....
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 ...
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 &...
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 ...
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 ...