Questions tagged [cucumber-jvm]
Cucumber-JVM is a Cucumber implementation for the most popular JVM languages. Cucumber-JVM currently supports Java. There are also implementations for the following JVM languages, but as of version 2.1.0, they are unsupported: Groovy Scala Clojure Jython JRuby Rhino JavaScript Gosu
cucumber-jvm
1,373
questions
1
vote
0
answers
14
views
Why does the Cucumber report show only one feature when there should be two?
I have a Maven project with Java using Cucumber to generate the report. It includes Register and Login features. The project executes well, but when reviewing the Cucumber report, only the Login ...
1
vote
1
answer
25
views
Cucumber DataTableType annotation transposes table?
I have a small repo with the following dependencies: cucumber-java 7.16.1, junit-jupiter 5.10.2, selenium-java 4.21.0
I have 3 simple tests to check the saucedemo website where I'm creating a simple ...
0
votes
0
answers
22
views
Chrome Driver not closing properly and using a lot of CPU
I am currently using Chrome Driver with Serenity BDD and when the tests are done running, it is not closing properly, and it is consuming a lot of CPU. I am unable to run a full regression before my ...
0
votes
1
answer
46
views
junit 5 runs specific cucumber feature twice
Running Cucumber with JUnit 5 works ok as long as all feature files are run.
@Suite
@IncludeEngines("cucumber")
@ConfigurationParameter(key = Constants.FEATURES_PROPERTY_NAME, value = "...
0
votes
0
answers
88
views
Cannot build cucumber-java8 tests due to "cannot find symbol"... "class En"
I recently forked cucumber-jvm and I'm trying to build. Forgive me as I'm new to java development. I get the following build failure in IntelliJ...
C:\projects\cucumber-jvm\cucumber-java8\src\test\...
0
votes
0
answers
20
views
How to use cucumber-jvm to create live data?
I drove the development of my system through cucumber tests very successfully. Now the system is ready to be tested through a UI, and I would like to re-use the test data from my scenarios for this. ...
0
votes
0
answers
52
views
How to Change contents of Extent Spark reports with Cucumber Java
I am using Playwright with Cucumber BDD for automation and extentreports-cucumber7-adapter by grasshopper to generate test reports. I am looking for a work around where I can edit contents of the ...
1
vote
1
answer
66
views
Cucumber/Spring not injecting bean
I'm stuck for 3 days an inch away from having it work, it's really frustrating. I hope someone will be able to unblock me.
I'm building a standalone jar integrating the following libs:
<...
0
votes
0
answers
31
views
Can i call steps within step definitions in cucumber-jvm
I found this answer here:
To call steps within step definitions, inherit cuke4duke.Steps in java
import cuke4duke.StepMother;
import cuke4duke.Steps;
import cuke4duke.annotation.I18n.EN.When;
public ...
0
votes
0
answers
9
views
What is the correct way to transform an entire data table?
The @DataTableType annotation can mark a method which is able to take a Map<String, String> row from a data table and transform it to a stronger type. The example from here is:
@DataTableType
...
0
votes
1
answer
53
views
Running cucumber feature file directly from pom.xml
We are using cucumber(with java) in our project for the automation(with mvn). I have a case where I need to execute one feature file, say feature_fil1 in the beginning of the suite.
Since all our ...
0
votes
0
answers
61
views
Only run some cucumber tests in parallel and run the rest sequentially using gradle tasks
I have some cucumber tests that can be run in in parallel, and some that can't. I want a way to run them all at once. The only way I can think of doing it is to run the parallel tests first and then ...
0
votes
0
answers
46
views
Facing issue while running Testcases from runner class in the Cucumber with ObjectFactory with Latest Version of Cucumber
io.cucumber.core.exception.CucumberException: Could not find object factory org.example.CustomObjectFactory.
Cucumber uses SPI to discover object factory implementations.
Has the class been registered ...
0
votes
1
answer
26
views
Run only a certain scenario using maven
i have 2 scenarios in my feature file and i need to run only 1 scenario, can you please suggest me some mvn test command to do it
if i do :
mvn test -Dcucumber.options="src\test\resources\...
0
votes
1
answer
113
views
Cannot run testng because ngcucumber failed to run
I have this error:
Caused by: java.lang.NullPointerException: Cannot invoke "io.cucumber.testng.TestNGCucumberRunner.provideScenarios()" because "this.testNGCucumberRunner" is null
...