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
2 answers

Generate reports with selenium grid and cucumber

I am trying to integrate Selenium grid and cucumber. I am currently stuck in a situation where I want to execute my testscripts on the distributed system with the different browser configured as node. When the execution is triggered the hub…
karthik
  • 1
  • 2
0
votes
1 answer

What setups are necessary to run Cucumber with tags in Eclipse?

I am using Cucumber plugin to run feature file in Eclipse. I am trying to use tags to select which scenarios I'd like to run. In my feature file, I tag two scenarios with different tags as below: Feature: Test @one Scenario: Successful Login…
user1559625
  • 2,583
  • 5
  • 37
  • 75
0
votes
1 answer

Cucumber execution with maven

I am using the below maven project to try out the cucumber example. http://artoftesting.com/automationTesting/sampleScript/cucumberJava.zip The compilation works fine but the test fails with the below error.. Results : Tests in error:…
0
votes
0 answers

Able to locate frame with selenium, but doesn't work with Junit Cucumber

I am able to locate a frame using a selenium java program. The following code runs successfully: public static void TestCase() throws IOException, InterruptedException{ WebDriver driver = new FirefoxDriver(); …
sanaku
  • 309
  • 2
  • 6
  • 18
0
votes
1 answer

Facing issues while navigating between the reports in Serenity

I am able to run the serenity test cases by using gradle. I use the command $ gradle clean test aggregate. Reports are also getting generated however when I click on the links provided in the Reports it fails to navigate and gives an error message.…
Durgesh
  • 585
  • 4
  • 12
  • 33
0
votes
2 answers

Facing issues while running cucumber with serenity

To integrate Cucumber with Serenity, I have created below Gardle file. Serenity is working fine, however I am not able to use it with Cucumber. When I use @RunWith(CucumberWithSerenity.class) in runner class, it gives me unresolved type…
0
votes
2 answers

Cucumber Execution Error Java

Hello every body i am working on a project in which have to implement cucumber with selenium when i run my code following error message is shown I have JDK 7 installed and i am using Jars in image java.lang.NoSuchMethodError:…
fahad
  • 389
  • 2
  • 12
0
votes
2 answers

Java - Randomising Examples in Cucumber Scenario Outline

I have a weird request; I'm not sure if its even possible. I have loads of scenarios that I have defined using Scenario Outline but I don't want all of them to run on our CI environment as it will slow down the build. Is it possible to randomise the…
Johnson E
  • 66
  • 1
  • 5
0
votes
0 answers

Unable to run Cucumber through Maven

I am able to run my cucumber project as a junit test but unable to run it using maven. I am getting error: [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal…
Susanta Adhikary
  • 257
  • 2
  • 6
  • 20
0
votes
1 answer

How to execute SoapUI testcases for Cucumber scenarios?

I have a project in Eclipse with Maven, Cucumber, SoapUI and JUnit.I have been able to successfully build it without errors (Yay! I am new to Maven, SoapUI and Cucumber). This project has a Cucumber feature file with two scenarios. I have the…
FaMa
  • 1
  • 1
  • 1
0
votes
1 answer

How to match parentheses in Cucumber test

I currently have a problem with Java and Cucumber. Accessing a website's element by using Selenium, I want to use phrases like the following: Then the value of the attribute XYZ should be 1000 That example is quite trivial and works fine for each…
sascha_lamp
  • 179
  • 2
  • 12
0
votes
1 answer

Automating Browser with Cucumber with the use of Parameter

How to use parameter for example: @When("^I enter \"([^\"]*)\" in the Keywords textbox$") public void I_enter_in_the_Keywords_textbox(String Job ) throws Throwable{ driver.findElement(By.id(id)).sendKeys(Job); } In the File I have: When I…
Emily
  • 3
  • 3
0
votes
1 answer

Cucumber Junit Testing Code

I tried to work with webdriver to see if the cucumber will open browser with junit. It is recognizing everything except for opening the web browser or even doing what I asked to do. Here is the code snippet: public class JobSearch { …
0
votes
2 answers

Trying to setup a cucumber-project in eclipse without using Maven

I am new to cucumber, I am trying to configure a Java-project without using Maven, I am having the following exception. I think there is an issue with the path of a .feature file Exception: java.lang.NoClassDefFoundError:…
Zain
  • 5,391
  • 11
  • 34
  • 34
0
votes
1 answer

Maven surefire report's filename has redundant spaces when the tests are written using cucumber

I am using maven-surefire-plugin version 2.16 along with tests written using cucumber. The .xml and .txt reports do come up fine in the sure-fire reports folder. The text within the the .xml and .txt file along with the names has a lot of extra…
Kshitiz Gupta
  • 248
  • 1
  • 3
  • 9