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
-1
votes
4 answers

How to ignore failure/skipping statement in cucumber for next than statements

In cucumber suppose my one than statement is failed then my all than statement is skipped by cucumber for that scenario and it started executing next scenario ... Do anyone have any way to assist cucumber to run next step without skipping all other…
Shubham Jain
  • 16,610
  • 15
  • 78
  • 125
-1
votes
1 answer

Old feature file path is used even after updating a new path

I am new to cucumber and I am automating a scenario. Initially I kept my features files in the path C:\Users\test\eclipse-workspace\Automation\src\test\resources\featureFile. Then I moved the feature files to a different path…
-1
votes
1 answer

Cucumber-jvm shared Driver example

Do somebody have a sharedDriver example with cucumber-jvm? SharedDriver has implemented as described by Ashlak, but how can I instantiate the driver and share between steps, page objects? Shared driver class: public class SharedDriver extends…
brobee
  • 231
  • 1
  • 5
  • 25
-1
votes
1 answer

Opening two different browser for same test case in Selenium

My test case need to interact with three different system, say system A, B, C. System A, B can be opened on chrome and IE both,but system C being legacy system, can be opened on IE only. On System A, I have to enter series of some user data which…
SachinB
  • 348
  • 6
  • 18
-1
votes
1 answer

when to use Scenario scenario parameter in cucumber jvm

I searched for exact reason & significance of using Scenario scenario parameter ( import cucumber.api.Scenario; ) but didn't clear answer. https://github.com/cucumber/cucumber/wiki/Hooks > Scenario Hooks section doesn't explain in detail. Please…
vikramvi
  • 3,312
  • 10
  • 45
  • 68
-1
votes
1 answer

Sharing object between cucumber scenarios

for workflow orchestra application where i say product is created and goes through continuous approval/workflow in which i would be creating product id which will be used across all the scenarios inside feature. The product id created in first…
Rajar R
  • 127
  • 1
  • 1
  • 10
-1
votes
4 answers

Duplicate Step definition in cucumber

Why cucumber compares same method and gives error as duplicate step definitions cucumber.runtime.DuplicateStepDefinitionException: Duplicate step definitions in stepDefinitions.LogIn.SDLogin.inputUserCredentials() in…
Nagarjuna Reddy
  • 759
  • 9
  • 19
  • 39
-1
votes
1 answer

As of today 03/24/2017 what versions of Cucumber Java are out there

The information on the net is a little misleading but here is what I was able to find out. A stable implementation of Cucumber is the 1.3.15. The stable Java implementation is 1.2.5. Is there is already a 2.4 version of Cucumber or just the version…
anon
-1
votes
1 answer

Get json from List>

Can some one please help me where I am wrong in my code: public void request_Body_From_Data(String json, DataTable requestBody) throws Throwable { List> body = requestBody.asMaps(String.class, String.class); String…
Eric
  • 23
  • 5
-1
votes
2 answers

click button in cucumber using xpath

I have tried to click a button using id, then class name, then xpath, id is given dynamically. Could you please tell me the exact xpath for this code package step_definitions; import org.openqa.selenium.By; import…
ali
  • 9
  • 1
  • 3
-1
votes
1 answer

Running 2 feature files in a Maven project by changing goals in pom.xml

I need to run my features file separately using different goals or tags in pom.xml. So whenever I set one goal respective feature files should run. If there are multiple ways we can achieve this I would appreciate the answers. Thanks in advance.
RV_Dev
  • 435
  • 1
  • 7
  • 21
-1
votes
1 answer

Conditional Inputs?

I'm trying to write a cucumber test for part of our application (I'm completely new to cucumber, and writing acceptance tests really), and I have a step in the test, which I want to do one of 2 different things. I want it to either check for a…
M21B8
  • 1,867
  • 10
  • 20
-1
votes
1 answer

Undefined step definition in cucumber java

I have written a scenario to login to the application using cucumber framework. Initially I had written the code in eclipse and It run successfully, but when I copied the same code and dependencies the code is not at all working it is saying that…
Deepa
  • 561
  • 1
  • 5
  • 7
-1
votes
1 answer

how to give a unique serial number to each scenario in a feature file using cucumber jvm and selenium webdriver

Since there are too many scenarios , when there is failure or error I find it difficult to jump to the scenario which has the problem. Is there a way to give a unique number to each scenario so that it is easy to map and can be used in logging too…
-1
votes
1 answer

Is there a way to read test data from XLS for a Gherkin (cucumber-jvm) feature file ?

I would like have layered design for tests and test data , looking for any option to read test data from XLS or any other files . If there is any API available in cucumber jvm please let me know.
1 2 3
90
91