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 is a Java-based tool for behavior-driven development.

Cucumber-JVM is a pure Java implementation of Cucumber, with native support for the most popular JVM languages: Java, Scala, Groovy, Clojure, Rhino, Jython and JRuby.

Cucumber-JVM is the successor of Cuke4Duke, which was the Ruby implementation of Cucumber, running on JRuby. It is faster and also easier to run than its predecessor.

See GitHub project

1356 questions
0
votes
1 answer

CucumberJVM : Need to write Scenario name at start of each test

I've written a CucumberJVM test harness and a large set of feature files to test my application. Some of these tests can take 10 to 20 minutes to run which means that the test harness appears to hang for long periods of time. To give my end users…
Stormcloud
  • 2,065
  • 2
  • 21
  • 41
0
votes
2 answers

Cucumber-JVM + Selenium Firefox fails on Jenkins

I have Cucumber-JVM tests running selenium firefox webdriver. Everything works fine running tests from eclipse, but when they run on Jenkins, the url is set correctly on the browser, but the page never loads. Jenkins is installed on a windows…
cattox
  • 177
  • 2
  • 16
0
votes
2 answers

How to skip step definitions or mark the scenario as passed?

In the below feature I am checking for the existence of a particular job type (contract) and do something if found otherwise skip the rest of the steps. When skippedm, mark the scenario as passed (technically its not a pass nor a fail or…
Bala
  • 11,068
  • 19
  • 67
  • 120
0
votes
1 answer

Cucumber-JVM : How to read feature, scenario and step at run time

I am creating a automation framework using cucumber+Java+Selenium. I have created customized report, need above said detail to print it in report.
A B
  • 169
  • 2
  • 8
0
votes
1 answer

gradle cucumber jvm exception: No features found at [classpath:]

I have already looked at the similar posts and followed the suggestions in there, still not able to execute any cucumber test using command: gradle test. It always returns the same error saying cannot find .feature files. Similar posts: 1) cucumber…
amitbansalite
  • 309
  • 1
  • 6
  • 13
0
votes
1 answer

Unable to find the features file?

I am running Cucumber JVM for a POC with Selenium 2.37. The folder structure of my project as follows src >> main > test >java >package >TestRunner.java …
Karthikeyan
  • 2,634
  • 5
  • 30
  • 51
0
votes
1 answer

Generating ScalaCheck tests with Cucumber JVM - Generic Functions

To avoid X & Y problems, a little background: I'm trying to set up a web project where I'm going to be duplicating business logic server and client side, client obviously in Javascript and the server in Scala. I plan to write business logic in…
MalucoMarinero
  • 369
  • 3
  • 10
0
votes
1 answer

jenkins cucumber jvm reports plugin java screenshots

I'm using this plugin for cucumber, and I saw that if one or more steps are failed you have the screenshot on the report of that step. Is there a way to have the screenshots for each step also if they are not failed?
fege
  • 547
  • 3
  • 7
  • 19
0
votes
1 answer

How to implement If condition in Cucumber Scenarios

I have a specific scenario as follows: if (element shows up on UI) validate it else no harm done; move on... If I know upfront if the element shows up or not, I can frame two different scenarios, when the element shows up and when not. But,…
Sridevi Yedidha
  • 1,183
  • 1
  • 12
  • 13
0
votes
1 answer

cucumber-jvm: intercepting annotations on top of feature

I am using Cucumber-JVM (Groovy) and I was wondering if it is possible intercepting a customized annotation on top of a feature. Ex: @MyAnnotation Feature: Something here //and somewhere a method like this: def doSomethingForMyAnnotation()…
Randomize
  • 8,651
  • 18
  • 78
  • 133
0
votes
1 answer

How to integrate Vaadin with Cucumber

Is there a way to integrate Vaadin7 with Cucumber? Can Vaadin Testbench help me with this task? Is Vaadin Testbench necessary for this task?
Sebastian
  • 877
  • 1
  • 9
  • 20
0
votes
1 answer

Multiple implementations of one Cucumber scenario in Java

Wanted to ask for recommendation on how to implement one Cucumber scenarios in more then one way in Java. Here is what I mean by that - suppose there is a scenario that I would like to be verified from backed (regular JUnit Test) and from GUI…
Vlad
  • 121
  • 1
  • 2
  • 7
0
votes
1 answer

Cucumber reports can't take more than one formatter?

For some reason my code will only run when using one formatter. @RunWith(Cucumber.class) @Cucumber.Options(features={"src/test/resources/cucumber"}, glue={"cucumber.com.zzz.yyy.steps"}, format={"html:target/test-reports"}) public class…
Michael W
  • 3,515
  • 8
  • 39
  • 62
0
votes
0 answers

how to write behaviour tests for Struts 2?

I am writing behaviour tests with cucumber-jvm for a legacy project using Struts 2. I have successfully used cucumber-jvm to test the behaviour of a feature of the application. But I think I have chosen the wrong starting point: I am currently…
Tarek
  • 3,080
  • 5
  • 38
  • 54
0
votes
1 answer

Matching regex in step definition

I have a Given statement in my feature file Given I have $100.25 in my bank account The following step definition is not picking up the decimal fraction @Given("I have \\$\\d+(\\.\\d+) in my bank account") public void…
tintin
  • 5,676
  • 15
  • 68
  • 97