Questions tagged [cucumber-junit]

The JUnit integration provided by the Cucumber-Jvm project.

Cucumber-Jvm is the pure java rewrite of Cuke4Duke which just a port of Cucumber from Ruby to JRuby. Cucumber-JUnit provides integration with JUnit so that Gherkin tests can be run alongside other JUnit tests.

562 questions
0
votes
3 answers

Cucumber:- Unable to generate step definitions by running feature file as well as testrunner class

I am trying to generate the step definitions from my feature file and as well as I have also designed test runner class but upon execution both give output on console as :- 0 scenarios 0 steps 0m0s.000s Even though my feature file contains…
keshav dwivedi
  • 117
  • 4
  • 14
0
votes
2 answers

Fluentlenium and cucumber tests not starting

I have a cucumber and fluentlenium project that doesn't start when i run the CucumberRunner. It just skips all the tests .I tried to find a solution on internet but didn't figured out the problem so far. A little bit of help would be nice. This is…
T.Frincu
  • 43
  • 7
0
votes
2 answers

Cucumber test doesn't start Spring boot application

When starting my Cucumber tests (both via Selenium and integration/rest), the Spring Boot (Test) application is not started automatically. How can I configure the Cucumber start the Spring Boot application (as well)? I tried many ways. My files…
tm1701
  • 7,307
  • 17
  • 79
  • 168
0
votes
0 answers

Unable to import cucumber.api.junit.Cucumber and error in @RunWith(Cucumber.class)

Following is the code of TestRunner. TestRunner.class package com.run; import org.junit.runner.RunWith; import cucumber.api.junit.Cucumber; @RunWith(Cucumber.class) public class TestRunner { }
Shivam
  • 199
  • 2
  • 4
0
votes
1 answer

cucumber.runtime.CucumberException: Couldn't load plugin class: com.CustomHtmlFormatter

I am new to cucumber parallel execution. I need to do the parallel execution of cucumber TestCases with cucumber plugin "cucumber-jvm-parallel-plugin". When I run a pom.xml file It throws an error. Please let me know my mistake. [ERROR] Tests…
Rama
  • 815
  • 2
  • 17
  • 37
0
votes
1 answer

Structuring Cucumber JVM step definitions in different java files

I am working on an automation project based on Appium-cucumber-Java, which will be growing over time. Currently, I have Step definitions Given,When, Then in one file for iOS & another file for Android. Both of these, files extend from a common…
user2451016
  • 1,857
  • 3
  • 20
  • 44
0
votes
1 answer

How to create test result folder for every run using Selenium - Junit test runner file with cucumber options?

Anyone could you please suggest me, In Cucumber options by using 'plugin' or 'format'. How to create a separate test result folder for every run we do. As the below line of code creates the common folder for result and the results which are…
SAUMARS
  • 73
  • 1
  • 11
0
votes
0 answers

Maven dependencies complaining jars files are missing in .m2 repository, but jar files are inplace

Maven dependencies complaining that few jars files are missing for ex: cucumber-junit, cucumber-jave, surefile-plugin but these are in place , these jar present in .m2 repository. Please let me know , if anyone can help me I have added cucumber…
Shilpa
  • 75
  • 2
  • 5
  • 12
0
votes
1 answer

Maven not executing the test cases configured under runner class in cucumber

Trying to Achieve: Run cucumber test cases configured in runner class using Maven. Issue: Configured test cases are not being executed using maven. Configured pom.xml file:
Nagarjuna Reddy
  • 759
  • 9
  • 19
  • 39
0
votes
1 answer

Selenium - Cucument JUnit Test Runner - not getting annotation

I new to Selenium Cucumber , trying to setup basic Selenium Cucumber JVM using Eclipse, but when I run Testrunner as JUnit, annotations are missing and I need to manually add test steps in step definition. Below are my Feature & JUnit test runner…
Gayathri
  • 25
  • 2
  • 9
0
votes
1 answer

cucumber how to pass variables between testrunnner and step definition class

@RunWith(CucumberWithSerenity.class) @CucumberOptions() public Class TestRunner{} public Class StepDefinitions{} public Class SomeClass{} Is there a way to pass object of type SomeClass from TestRunner to StepDefintions? The…
0
votes
2 answers

null pointer exceptions error is showing after executing junit test

I created a program in cucumber and facing issue like this. pom.xml, step defination file , feature file and ruunable file are created. In pom.xml
0
votes
0 answers

Running Cucumber Scenarios in Parallel of Single Feature File

I have 2 feature file that include multiple scenarios, I want to run the scenarios of each feature file in parallel. For example: example1.feature has 2 scenarios example2.feature has 3 scenarios How to run the five scenarios in parallel ? Thanks…
Nael Marwan
  • 1,030
  • 1
  • 13
  • 32
0
votes
2 answers

How to make TestNG show cucumber scenarios in the "Results of Running Suite"?

I've created a maven project and trying to run Cucumber+Selenium+Java tests using TestNG plugin. While some tutorials that use JUnit+Cucumber shows results with every scenario of a feature, my TestNG results tab shows only the feature name. what am…
BugHunter
  • 61
  • 1
  • 7
0
votes
1 answer

Illegal argument name - Arquillian with Cucumber

I'm learning how to code a simple JUnit test with Arquillian framework and Cucumber jvm. Code: package br.com.cielo.batcha.test; ... @RunWith(CukeSpace.class) @Features("classpath:br/com/cielo/batcha/features/MSG_MANUTENCAO.feature") public class…