In the SpecFlow BDD for .NET, feature files that are used to store the acceptance criteria of the features (use cases, user stories) of your application are described in a format that is called Gherkin, which is originally based on the Cucumber BDD language.
Questions tagged [feature-file]
127 questions
1
vote
1 answer
Why is my .feature file saying "Undefined step reference", although my cucumber tests run fine and detect the steps?
Intellij is saying my step is undefined when I'm looking at the .feature file.
Intellij undefined step
But the cucumber .feature file runs fine, and it is definitely matching on the step.
My TestNG runner code:
package package1;
import…

Joshua Strickland
- 31
- 5
1
vote
1 answer
Best approach to Ignore Cucumber feature files?
I have a large suite of feature files, and every single scenario is tagged @regression.
After running full regression I realized that some features do not need to be run for the current environment.
What is the best approach to ignore specific…

Harry
- 31
- 1
- 6
1
vote
0 answers
Unable to execute the TestRunner File using Junit Cucumber Getting Incompatible Class Error
When I am running the Test Runner file I am getting Incompatible Class Error:
java.lang.IncompatibleClassChangeError: Class cucumber.runtime.RuntimeOptions does not implement the requested interface io.cucumber.core.options.FeatureOptions
at…

Ragul
- 33
- 1
- 6
1
vote
1 answer
Gherkins feature file for POST rest call
I'm new to writing feature files. I'm trying to test POST call with json body, but the result says invalid request. I'm trying to send Json array in the body, definitely missing something in the body. Below are the json body and what I wrote for…

Lucky
- 783
- 2
- 10
- 28
1
vote
0 answers
How to write my scenario outline when i want to use multiple scenarios
Can i join multiple Scenario outlines with multiple examples
Something Like this:
Scenario Outline: Valid Scenario
Given i have written
When i execute
Then i
Given the test
Then validate the
Then i then…

Deep
- 11
- 1
1
vote
2 answers
My first basic Cucumber program (Scenario) fails - Java
I wrote my first Cucumber program today, and it fails. I wrote a very basic one, a simple scenario and it's step definition. Below is the feature file code and the step definition code.
Step Definiton code:
import cucumber.api.java.en.When;
…

skate_23
- 447
- 1
- 11
- 25
1
vote
2 answers
Error running cucumber in eclipse- Could not find or load main class cucumber.api.cli.Main
I'm trying to run a maven project using Oxygen.1 a release. I have the cucumber plugin installed. But when I run the default feature file, I'm getting an error Error: Could not find or load main class cucumber.api.cli.Main
Please help!

abi prakash
- 11
- 1
- 2
1
vote
1 answer
How to execute one scenario again and again in cucumber
I have a feature file in which there are two scenarios. After first iteration, I want these scenarios to be executed once again.
What do I need to add? Do I need to copy the same java code in the step definition file or is there another…

Mohini Gupta
- 11
- 2
1
vote
6 answers
How to navigate to the Step definition from the feature file using Appium and cucumber?
I am working with Intellij IDea and Appium and i have also installed cucumber.
But i am unable to navigate to the step definition from the feature file by holding Ctrl button and clicking on the step.. It says "Cannot find declaration to go to".
…

girish
- 302
- 1
- 5
- 17
1
vote
1 answer
Use a value in a feature file in a cucumber test?
Is there any way to declare a variable in a feature file to then use in a cucumber test? Something like this:
myFile.feature
Given whenever a value is 50
myFile.java
@Given("^whenever a value is 50$")
public void testing(value) {
…

kroe761
- 3,296
- 9
- 52
- 81
1
vote
1 answer
Is there any Editor in which I click on a line and it takes me to its definition defined in another page
I am working in a mobile app testing project. We do write feature files (like scenarios) in a simple Xcode editor as of now. What I want is if I click on any step written in my feature file, it should take me to its step definition which is written…

jsborn17
- 455
- 1
- 7
- 12
0
votes
0 answers
Appium Cucumber multiple scenarios on failed test re-run error occurs "404 session not started or terminated"
How to best use Cucumber's retry logic on appium w/o getting errors?
WebdriverIO Version
"@wdio/appium-service": "8.15.0"
"@wdio/cli": "8.15.0"
"@wdio/cucumber-framework": "8.15.0"
"@wdio/local-runner": "8.15.0"
Node.js Version: 18.16.1
Mode: Wdio…

vaidasian
- 1
- 2
0
votes
1 answer
How to glue stepdefinition file with feature file programmatically java with Appium
I am following BDD framework. I have 21 feature files and all the feature files tags are passed in Testrunner. Now suppose one of the feature files failed due to some reason my automation stops which I don't want so I have wrapped all my code in…

BraveEvidence
- 53
- 11
- 45
- 119
0
votes
1 answer
XRay REST API Feature File Import Fails Parsing
Version of Xray
6.5.0
Feature File Being Imported - Simplified Version
Feature: Something Something CC AllProducts
Scenario: Something With Three Products
Given billing something is xyz
When I make a something something transaction
…

Guy
- 666
- 1
- 10
- 34
0
votes
0 answers
Trying to run the FF from runner is not giving me any result
package testrunners;
import org.junit.runner.RunWith;
import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
@RunWith(Cucumber.class)
@CucumberOptions(
features = {"src/test/java/AppFeatures"},
glue…