cucumber-junit Questions

4

Solved

I have the following project structure: MyProject --src --test --acceptance --step_definitions --features --unit I would like to be able to run my cucumber tests (in test/acceptance) separ...
Barathea asked 10/8, 2013 at 17:34

3

Solved

I want to handle numeric parameters in the Cucumber step definitions. Please let me know how I can do this. Scenario Outline: Enter an invalid URL Given the context "Invalid URL" is open...
Jackfish asked 9/9, 2015 at 8:50

8

Solved

This is my first cucumber project and i followed a tutorial when setting everything up. It all seems to be the same but for some reason i get this: java.lang.ExceptionInInitializerError. Caus...
Onanism asked 18/1, 2022 at 13:32

11

In my cucumber -jvm, Maven, junit Setup I have my testRunner file as package com.lebara.testrunner; import cucumber.junit.Cucumber; import org.junit.runner.RunWith; @RunWith(Cucumber.class) @Cu...
Ignazio asked 21/1, 2013 at 11:32

9

Solved

I try to build my first executable specifications with Java and Maven. I created a simple project with this structure: specification |-src |-test |-java |-mypackage |-MyFeatureTest.java |-res...
Qadi asked 12/3, 2012 at 7:23

6

I am trying to setup Cucumber in my project. I am following the same configuration from my previous projects but I still have issues with running the tests. Now I am starting to suspect that the is...
Wakayama asked 16/7, 2020 at 14:5

8

Solved

I am trying to run Cucumber feature files in IntelliJ. Cucumber Options is pointing to the right folder, but I get the "No tasks available" notification when trying to execute the JUnit runner cl...
Hesperian asked 12/9, 2019 at 14:21

2

Solved

I'm new to the UnitTesting and Cucumber, and today I tried to implement a simple example from a tutorial in Intelij and Eclipse and I got the same error when I try run the TestRunner.java. My pom.x...
Minaret asked 11/4, 2021 at 22:26

3

I am using cucumber-jvm to perform some functional tests in Kotlin. I have the standard empty runner class: @RunWith(Cucumber::class) @CucumberOptions(features=[foo], glue=[bar], plugin=[baz], s...
Trout asked 24/8, 2020 at 14:20

2

Solved

What i would like to do is to pass cucumber options from command line to execute scenarios with tag name @extecuteThese but also i wanted to exclude scenarios that are with tag name @WIP so what am...
Sharlasharleen asked 15/6, 2016 at 17:5

6

I have a Cucumber-JVM, JUnit, Selenium setup. I initiate the run by running RunSmokeTests.java using JUnit within Eclipse. I have also set up a maven profile to run the tests from command line, and...
Karyoplasm asked 24/1, 2014 at 13:39

3

Solved

I'm trying to migrate my cucumber tests from cucumber-junit to cucumber-junit-platform-engine to be able to use new platform features. How do I redefine my runner to use old @CucumberOptions. I'm i...
Yokel asked 29/10, 2020 at 8:53

2

Solved

In cucumber-junit library I use @CucumberOptions to define feature files location: package com.mycompany.cucumber; import cucumber.api.CucumberOptions; import cucumber.api.junit.Cucumber; import o...
Snorkel asked 4/11, 2020 at 8:35

1

I have written a code to test adding items into an inventory but i keep getting Arity mismatch error. My code is as follows: @When("^(Coffee|Milk|Sugar|Chocolate) is (.*)$") @Then("...
Dang asked 23/8, 2021 at 9:42

3

Solved

I have a project with cucumber and maven also I am using the JUnit. I am able to run and build my project successfully from Eclipse. Now I want to run the test from command line in another syste...
Mclendon asked 22/3, 2016 at 8:59

3

Usage: java cucumber.api.cli.Main [options] [ [FILE|DIR][:LINE[:LINE]*] ]+ Options: -g, --glue PATH Where glue code (step definitions and hooks) is loaded from. -f, --format FORMAT[:PATH_OR_URL] ...

4

Solved

I have a bunch of IT cases with various cucumber tags. In my main runner class I want to exclude all the scenarios which have either @one or @two. So, below are the options I tried Option 1 @Cucum...
Ceremonial asked 9/2, 2015 at 11:42

3

Is there any way to continue executing Cucumber Steps even when one of the steps fails. In my current setup when a step fails , cucumber skips remaining steps....I wonder if there is some way to tw...
Clone asked 8/3, 2013 at 16:20

1

Solved

What is the best way to disable color output for my Cucumber JUnit tests when they are run by a build machine? It is possible to set monochrome = true in the @CucumberOptions annotation. The proble...
Astrophysics asked 20/11, 2020 at 8:55

6

Solved

Hi i am new to cucumber java. i am trying to run a simple cucumber feature test. below are my feature file, step definition file and junit runner file. but i am not able to run the test succesfully...
Karr asked 9/5, 2014 at 7:49

4

Solved

I'm new to Cucumber java and had this problem in initial stages: I'm not using MAVEN project for some reason. I just created a simple java project in eclipse. I have my features under "src/dummy/p...
Ronn asked 8/10, 2014 at 10:25

3

Consider I have below feature files: Login.feature Feature: Login on website Scenario: Login verification on site Given Navigate to site login page When User enters username 'admin1' And User ente...
Holbrook asked 28/9, 2017 at 7:21

6

Solved

Is it possible to take cucumber option values from a java .properties file? In this SO post, it shows that it is being passed from CLI. Here's my sample class: @RunWith(Cucumber.class) @Cucumbe...
Windbroken asked 14/7, 2017 at 5:48

1

Solved

I am learning Cucumber for unit testing and was trying to write unit tests for the Radix Sort code. But I am unable to figure out how to provide array of integers as an input to radix sort code fro...
Higher asked 23/5, 2020 at 18:24

3

Solved

I am facing an error whenever I run the cucumber test by Junit. Here is the following Exception. Any help will be awesome NOTE: THERE IS NO ERROR IN THE PROJECT java.lang.NoClassDefFoundError: c...
Broadbrim asked 13/8, 2014 at 16:30

© 2022 - 2024 — McMap. All rights reserved.