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
1 answer

How to include multiple cucumber runner classes through mvn run by pom.xml

I have few runner classes say CucumberLocalTestRunner, CucumberFeatureBranchTestRunner, CucumberMasterTestRunner class . These runner classes use the extended cucumber options. I am using cucumber jvm version 4.4.0. In the pom file I have profiles…
asinha
  • 337
  • 1
  • 6
  • 24
-1
votes
1 answer

How to skip dependent feature file when parent feature file fails in protractor cucumber

I have 5 test scenarios in my 5 different feature files. TC-1 TC-2 TC-3 TC-4 TC-5 TC-3&TC-4 are dependent test cases when test scenario TC-3 failed automatically TC-4 should skip and TC-5 should execute how we can achieve this in cucumber any…
-1
votes
1 answer

Eclipse Cucumber intelligence failed to show undefined step definition warning

Eclipse Cucumber failed to show the warning for undefined step definitions enter image description here
-1
votes
1 answer

When I run the runner class in CUCUMBER then getting "courgette.runtime.CourgetteException: Unable to create the 'target\chrome' directory"

courgette.runtime.CourgetteException: Unable to create the 'target\chrome' directory at courgette.runtime.CourgetteHtmlReporter.createReportDirectories(CourgetteHtmlReporter.java:171) at…
-1
votes
2 answers

How can I define in Cucumber the execution order of a group of test cases in a text file?

I am working on the automation of test cases with the Cucumber JVM 1.2.2 framework and Selenium. Each test case corresponds to a Feature file. I have multiple Features files organized in folders, and I need to be able to define the order of…
-1
votes
1 answer

Passing current date to the json with Karate dsl

I have a json request which requires current date to create the contract. I am writing automation script using Karate. I know its possible use the javascript and java methods inside the feature file. I have tried using the javascript but I seem not…
Koos
  • 39
  • 1
  • 8
-1
votes
1 answer

How to pass value from testng.xml to hooks java class

Passing value from testNG.xml to hooks file gives error When a hook declares an argument it must be of type cucumber.api.Scenario. public void Step_Defination.Hooks.openBrowser(java.lang.String) throws java.io.IOException
Abhishek Gaur
  • 300
  • 1
  • 5
  • 20
-1
votes
1 answer

How to resolve : "The hierarchy of the type StepsCode is inconsistent" problem

How to use a method of class of project A in a class on project B, all projects are maven projects and it's an existing projects with lot of packages and classes , it's for a cucumber test projects, I have the application with lot of projects and…
Hajar Elatri
  • 15
  • 1
  • 6
-1
votes
1 answer

Gradle Groovy Cucumber plugin to check that all steps are implemented

I have several Cucumber features with steps, which are implemented by Groovy/Java code, but after several changes on the implementation side, like: I refactor step's regex, I can't be sure that all steps in feature files can be run now without…
skilgal
  • 172
  • 1
  • 4
  • 14
-1
votes
2 answers

Unable to invoke Cucumber Tests for Android app in Java

I wanted to run cucumber tests. I am unable to invoke or to run these tests. This is what I have done: In app/build.gradle defaultConfig { testApplicationId "com.my.app.test" testInstrumentationRunner…
-1
votes
2 answers

What are the important dependencies needed for Cucumber framework and TestNG integration?

I have created a basic Cucumber framework with the help of Maven project in Eclipse IDE. I am trying to execute all runner classes by using TestNG suite. In order to do that, I have to add all the dependencies required for Cucumber and TestNG…
Avinmita
  • 69
  • 1
  • 9
-1
votes
1 answer

Cucumber 4.2: Separate Runner for each browser

I had implemented Cucumber 4.2 parallel execution for chrome browser only.Now, I want to implement parallel execution for two browsers (Firefox/Chrome). Please provide an example or skeleton so that i can improve from it. Besides, where to search…
nicholas
  • 2,581
  • 14
  • 66
  • 104
-1
votes
1 answer

When I import a Project in intellij there is error in the whole project

enter image description hereI am facing a issue in IntelliJ IDEA Community Edition 2018.2.4 x64 , is that when i import a project into my system there error in the pom.xml file as "Failed to read artifact descriptor" and also there is a error in…
-1
votes
2 answers

can anyone tell me how to click on I am a fresher link using selenium webdriver testing on following url

https://my.naukri.com/account/createaccount?othersrcp=24167&wExp=N&id= i tried using following syntax: driver.findElement(By.xpath("//div[@class='box')]//div[@class='freshercont')]//div[@class='icon fresher')]//button[@title='I am a…
-1
votes
4 answers

Issue with Cucumber setup in eclipse

Have created a Maven project and added the following dependencies. So when I run the feature file, I get the error: Exception in thread "main" java.lang.NoClassDefFoundError: io/cucumber/datatable/dependency/com/fasterxml/jackson/databind/JavaType …
Vinay Sagar
  • 21
  • 3
  • 9