576 questions
3
votes
2
answers
375
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 ...
0
votes
0
answers
76
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 ...
1
vote
0
answers
302
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 ...
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 ...
1
vote
2
answers
404
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
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
869
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
257
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 ...
1
vote
1
answer
176
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/...
1
vote
1
answer
456
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 ...
1
vote
1
answer
266
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
0
answers
32
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>
<...
0
votes
0
answers
375
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
1
answer
281
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....
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?
...
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
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 ...
1
vote
1
answer
457
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=...
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
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
205
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
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
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
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 ...
0
votes
0
answers
170
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 ...