Questions tagged [cucumber]
Cucumber is a tool for running automated acceptance tests written in a BDD (behaviour-driven development) style.
233
questions
0
votes
0
answers
12
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
4
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
37
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
42
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
57
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
222
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
37
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
153
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
179
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
23
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
115
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
744
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
809
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
423
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
12
views
how to locate element on a new window that pops up from a primary window [duplicate]
I am running a test on a story for payment, and when it gets to the page, a third party (Klarna), I was unable to locate the element from the new web page from the third party.
Could it be because the ...
0
votes
0
answers
454
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
90
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
4k
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
1k
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
158
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
1k
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
45
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
3k
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
358
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
709
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
210
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
8k
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
389
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
98
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
4k
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
102
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
973
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
239
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
237
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
150
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
773
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
200
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
123
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
714
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
546
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
307
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
324
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
264
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 ...
0
votes
1
answer
506
views
Getting java.lang.NumberFormatException: For input string: "517838839328"
PageUtil.clickOnButton(driver, AppXPathsConstants.UserAdminAddNewuser);
String id ="1517838839328";
String newid = "1517838839328" + (Integer.parseInt(id.substring(1,id.length()))+...
1
vote
1
answer
85
views
Supported Automation Framework for an Outsystems developed application
In my company development team has started using tool called "Outsystems " which has less code and less managing issue while developing .
So I wanted to know from QA side if anyone's company ...
2
votes
2
answers
3k
views
java.lang.UnsupportedClassVersionError -CucumberJvm4SMFormatter -Java runtime Version error
My testing framework is built with Cucumber, TestNG, Java 1.8 and Maven
I recently updated my IntelliJ IDE
Details: IDE : IntelliJ IDEA Ultimate 2020.3 - Runtime version : 11.0.9
Cucumber is ...
1
vote
2
answers
628
views
Which runner to use with Specflow Cucumber BDD: Specflow Runner, Nunit, Xunit
I have a Specflow Selenium BDD automation solution in C# using Visual Studio and want to start scheduling some automation runs based on tags and possibly features.
I've only used Nunit as a test ...
1
vote
1
answer
394
views
Automated testing of Google Pub/Sub
I'm new to test automation and Google Pub/Sub. I'm developing automation scripts for regression testing. My automation framework is built with Java, Maven, Cucumber and TestNG
My application is a ...