576 questions
3
votes
2
answers
395
views
How to align the dependency versions "io.cucumber:cucumber-bom" and "spring-boot-starter-test"?
After the upgrade to version 7.23 of io.cucumber:cucumber-bom I'm getting
Unable to load class 'org.junit.platform.engine.support.discovery.DiscoveryIssueReporter'.
when trying to run my tests.
I ...
9
votes
1
answer
3k
views
Unable to run tests with latest cucumber version 7.24.0
I have the below maven dependencies in my project using the latest cucumber version 7.24.0 and the tests are not getting executed.
All these tests run successfully if I switch to 7.23.0 . Any idea ...
0
votes
0
answers
81
views
Cucumber java integration tests are running twice in Intellij
I have AWS lambda with Java 21 and integration tests with cucumber using test containers and cucumber junit platform (including @Suite).
When I am running tests from it/java package, Cucumber tests ...
0
votes
0
answers
32
views
How to run feature files in parallel by package in cucumber in java?
I have a selenium cucumber java framework which runs feature files parallel using sure fire plugin in pom.xml. But now we have a new requirement where we need to run these files by package instead of ...
1
vote
0
answers
307
views
Getting "org.graalvm.polyglot.PolyglotException: ReferenceError: " when trying to call a remote feature file which perfectly works when run alone
I am having the below error while trying to call another feature file which will launch the Splunk UI to capture a accessToken and returns to my feature where I am going to use that token to run my ...
1
vote
1
answer
222
views
Importing multiple dependencies that have @CucumberContextConfigurations for leveraging their step definitions causes `CucumberBackendException`
I've been battling this issue for 2 days, but out of options I guess. I'm not a guru in Cucumber or Gradle, but since my area of expertise is close (Java/Spring/Maven), I've been working on updating ...
0
votes
1
answer
62
views
Enhanced Cucumber feature file scripts
I am new in Cucumber and want to write optime code for 50 test cases.
Every test case has different examples (set of test data flags) and different one when, different one then steps.
How can I write ...
0
votes
1
answer
188
views
Running different Junit5 Cucumber tests-suites with duplicate step definitions
I have two domain specific junit5 platform cucumber test suites.
A:
@Suite
@IncludeEngines("cucumber")
@SelectPackages("de.bla.blubb1")
@SelectClasspathResource("de/bla/blubb1&...
1
vote
2
answers
417
views
Cucumber java dynamic report filename
This is an example of my runner class.
@RunWith(Cucumber.class)
@CucumberOptions(
tags = "@tryout",
plugin = {"pretty",
"html:target/cucumber-...
0
votes
1
answer
134
views
Cucumber junit-xml-formatter: How to set testsuite name (with Gradle)?
I'm producing JUnit XMLs executing Cucumber tests with Gradle. The result XML looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<testsuite name="Cucumber" time="109.736&...
0
votes
0
answers
202
views
How to control the order of scenarios execution when running in parallel mode - Cucumber Junit5
I have the below use case. I have multiple feature files each feature file consists of scenarios as listed below.
Feature1:
@capture
Scenario C1:
@capture
Scenario C2:
.
.
.
@capture
Scenario Cn:
@...
0
votes
2
answers
583
views
how to run cucumber scenarios in parallel using Junit5
I am using cucumber project to execute test scenarios. Now want to execute parallelly using Junit5.
project details
<dependency>
<groupId>org.junit.jupiter</groupId>
<...
0
votes
2
answers
874
views
How do I convert a parameter in an example table to an integer in a Cucumber feature?
If I have a feature that looks like this:
Feature: My feature
Scenario Outline: My scenario outline.
Given foo
When bar
Then I get the status code "<Status Code>".
...
0
votes
1
answer
98
views
Endpoint with double backslashes resulting in failure of exporting results to JIRA using mikepenz/[email protected]
I am using mikepenz/[email protected] to import junit xml results to JIRA. It was working well earlier this year and suddenly started failing with below error in github:
Error: 🔥 Failed to import: /...
0
votes
1
answer
265
views
Edit custom fields in summary report at runtime
I have a test project that tests an application that's constantly getting updated. As such, I'm asked quite frequently to run regression tests for it and to keep track of which report is for which ...
2
votes
1
answer
754
views
Inject service into step definition when programmatically running cucumber tests
Given the code found here I am able to programmatically run cucumber tests.
Inside the step definition class I have commented the constructor injection of DummyService.
If I uncomment, then I receive (...
1
vote
1
answer
177
views
Cucumber API for listing/run features/scenarios/tags
Are there some API (for Java lang) which can be used to:
Retrieve the list of features files and all their scenarios
Retrieve list of tags
With information from 1 and 2, run a subset of these feature/...
0
votes
1
answer
337
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\...
1
vote
1
answer
460
views
How to run karate tags in sequence
I have multiple feature file with the tags @run_first @run_second @run_third
file m.feature
Feature: test feature1
Background:
* print " test feature1"
@run_first
Scenario: run first ...
0
votes
1
answer
21
views
Validate the text in the bounce toast
I want to validate the Text message displayed on the Bounce toast. I have tried many things link implicit wait and others. Can anyone suggest how to do it?
WebDriverWait wait = new WebDriverWait(...
1
vote
1
answer
274
views
Conditional Cucumber Steps class
I might be a little bit light on the mechanism of how Cucumber works with Spring, but my current understanding is that if there's a class on the classpath with some Cucumber hook in it, the Cucumber ...
0
votes
1
answer
112
views
all the scenarios are not working from the feature file example table
I am new to Cucumber and learning automation testing, here i have an example table but i am not able to run all the table content and it says only 1 Scenarios (1 passed). please help !!
Demo.feature
...
0
votes
0
answers
36
views
TestRunner is not picking up in Cucumber Reports - mvn build is not generating Cucumber reports
Pom .xml
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<...
1
vote
1
answer
788
views
How to run unit tests (non-cucumber) and Cucumber tests (Junit5 based) separately with maven in Spring Boot 3 project?
Problem: When using newer version of Cucumber & Junit5 with cucumber-junit-platform-engine, mvn test runs both unit tests and integration tests. We can no longer run them separately, and I'm ...
0
votes
0
answers
377
views
Junit5 launcher won't find my Cucumber tests
I'm trying to use the Cucumber Junit Platform engine for running my cucumber tests, but none are run.
They're all placed inside resources/features.
I have a RunCucumberTest.java class:
@Suite
@...
0
votes
0
answers
60
views
want to keep the app in the foreground while executing feature files using CucumberAndroidJUnitRunner
I want to keep the app in the foreground while executing feature files using CucumberAndroidJUnitRunner , Right now after executing below command from application, app is going background , but i ...
0
votes
1
answer
288
views
##[warning]SyntaxError: Unexpected end of JSON input
I have this issue when I try to run pipeline in Azure DevOps, I work with selenium + cucumber + java.
I have this error message :
npm WARN deprecated [email protected]: Please upgrade to version 7 or higher....
0
votes
1
answer
382
views
Citrus Cucumber testcase with Kafka not working as expected
I wrote a Cucumber testcase with Citrus Framework where I wanted to test an HTTP Call which internally publishes a message to Kafka. I wrote a testcase to validate this behaviour using "Given, ...
1
vote
1
answer
2k
views
Configure parallelism on features and scenarios level in the same time - cucumber with Junit5
I checked some similar questions, but did not found an answer for mine. The most similar question was this question, but it's for TestNG. May be somebody faced an issue like me and solved it already?
...
1
vote
1
answer
251
views
How to hit the url again in karate if I am getting 504 gateway timeout error sometimes
I am trying to write one karate script. The URL is working completely fine in postman and even in karate. But the problem is in one of the scenarios a particular test case is failing because of 504 ...
0
votes
0
answers
368
views
Tests are running twice when upgraded from cucumber 4 to cucumber 6
My project have 2 runners files and and 3 feature files and I was using cucumber 4. My team wants to upgrade to cucumber 6 and I am running through terminal using below command
mvn test -DEnv=qa -...
0
votes
1
answer
617
views
cucumber-junit-platform-engine does not pickup feature path from mvn command
I am using Cucumber 7.13.0 with Junit 5 (cucumber-junit-platform-engine - 7.13.0). My tests are only picking feature file path configured in TestRunner class.
they are not picking up feature file from ...
0
votes
1
answer
52
views
Intellji Cucumber Lambda symbol given not recoginised
Newbie/refresher at Cucumber in Java and have searched stack overflow trying various fixes (removing the scope from the JUnit dependency, changing the program structure language to 10, restarting and ...
0
votes
1
answer
1k
views
A method annotated with Before, After, BeforeStep or AfterStep must have one of these signatures:
`Trying to create an hooks in cucumber framework getting below error not sure what i am missing
Suppressed:io.cucumber.java.InvalidMethodSignatureException: A method annotated with Before, After, ...
1
vote
1
answer
466
views
Unable to implement Event Listener in latest Java Cucumber Maven project with JUnit5
Created a new Java Cucumber project with the command -
mvn archetype:generate "-DarchetypeGroupId=io.cucumber" "-DarchetypeArtifactId=cucumber-archetype" "-DarchetypeVersion=...
0
votes
1
answer
124
views
Facing an issue when trying to build an BDD framework using cucumber in loading url
Getting error:
java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.get(String)" because "this.driver" is null
I am trying to create sample framework but ...
1
vote
0
answers
16
views
How to connect zephyr with Eclipse project [duplicate]
we're using Karate Framwork in our project for API automation so the karate its basically work with a cucumber feature file(Gerkhin keyword based) so is that possible to connect zephyr board with this ...
0
votes
0
answers
370
views
Cucumber not finding feature files in JUnit tests
I'm facing an issue with setting up Cucumber tests using JUnit. I have followed the steps mentioned in the documentation, but the Cucumber runner is not finding my feature files.
Here's a brief ...
0
votes
1
answer
2k
views
Serenity Report aren't generated in case test is executed locally
I updated the serenity version. We used the 3.3.2 version and I updated to use the most recent one 3.9.8. The new version broke the serenity report generation. The report is not generated anymore in ...
0
votes
1
answer
117
views
Cucumber: Failed to instantiate class steps.Steps
I have created a small training Cucumber project.
My project tree:
project tree
pom dependencies:
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium&...
0
votes
1
answer
206
views
Jira/xRay - Embedded element in JSON-Report has the wrong name in Jira
We are running Cucumber Tests and upload the results into Jira using the xRay Plugin.
The uploaded report is a cucumber json report.
Sometimes we attach files to the cucumber scenario and therefor to ...
0
votes
0
answers
115
views
Post 1 Scenario failure Scenarios marked as Failed (ThreadLocal<WebDriver> tldriver = new ThreadLocal<>();
Hello can anyone please advise for below case.
I have implemented Cuc7+Junit5 to run scenarios in parallel, I have 34 scenarios to Run in parallel
'cucumber.execution.parallel.config.fixed.parallelism=...
0
votes
1
answer
1k
views
Running same feature file with two different Step definitions in a Springboot application
I am testing a Springboot application using cucumber (v7.2.3). I have a feature file to test application using @SpringBootTest and @Suite (from junit-platform) I am using @ConfigurationParameter to ...
0
votes
0
answers
95
views
How to get Cucumber glue to bind with DataTables
I'm adding Cucumber to an existing but relatively new Spring Boot app. The app has the following test runner:
package com.odinkirk.codecserver.integration;
// imports
@RunWith(Cucumber.class)
@...
0
votes
1
answer
1k
views
How to instantiate EmbeddedActiveMQResource object for spring integration test?
I am using EmbeddedActiveMQResource in my spring boot. While running the integration tests I see lots of javax.jms.JMSException: Failed to create session factory and this is because I am not ...
0
votes
1
answer
1k
views
Cucumner7+Junit5 @IncludeTag
Implemented (Junit5+ Cucumber7) parallelism on local machine using @Suite in RunCucumberTest
How do we run a single scenario @tag? (getting below error)
@Suite
@IncludeTags("@Tag") added in ...
0
votes
0
answers
106
views
Debug pointer is not working for maven project in IntelliJ
I have cloned the java-cucumber project and opened in IntelliJ, when I start doing debugging, I am not able to do it. I can set the break points but execution is not stopping at the debug pointer. I ...
1
vote
1
answer
644
views
order execution of Junit5 tests by launcher / engine
I have a Spring Boot 2.5.4 project with some @SpringBootTest tests and some @Cucumber tests. I am using gradle to build.
I have noticed that my build is failing depending on where it's executed, and I ...
0
votes
0
answers
174
views
java.lang.NoSuchMethodError org.openqa.selenium.support.PageFactory.initElements - Selenium 4
There is a requirement where I have to add extension in browser before running scripts.
For that I decided to use Browser Options (EdgeOptions).Browser option is introduced in selenium 4.
All required ...
1
vote
0
answers
6k
views
io.cucumber.core.backend.CucumberBackendException: Please annotate a glue class with some context configuration
I am facing issue with - io.cucumber.core.backend.CucumberBackendException: Please annotate a glue class with some context configuration issue when upgrading Spring , Gradle
Gradle - 7.6 , Spring boot ...