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
0
votes
1 answer
Need some help on my Four Feature file How to Run Multiple Feature File?
Here's my Code
@CucumberOptions(
features = "src/testresources",
glue={"Nismo.live.stepsdefinition"},
tags =…
0
votes
2 answers
How to run multiple feature files in sequence using Cucumber + protractor
I want to run feature files in a desired order or sequence, for example:
tags:"`@ProtractorScenario` or @CucumberScenario"
But cucumber scenario is getting executed first. Can someone guide me on this?
Note: Cucumber is executing scenario based…

Akanksha Jain
- 1
- 1
- 1
0
votes
0 answers
How to get a list of the feature files to be run before they start
When I run specflow i choose specific feature files to be tested.
I need to build virtual machine in order to run my tests and I want to build only the required environments for the testing (and sure it can be dynamically change) so I need to know…

Itay Biju
- 1
- 1
0
votes
2 answers
how to pass the data(from Examples) of one feature file to other feature file?
When I first execute a feature file , am updating the fields of it during run time. The same field's value is required to pass to other feature file. Is it possible to pass the data of one feature file to another feature file using java?
feature…

Rahul
- 759
- 3
- 21
- 43
0
votes
3 answers
How to configure Cucumber feature file in Eclipse?
I have a feature file as below:
Feature: Log in to the application
@OnlyOneTime
Scenario: Login to application as valid user
When User enter the valid credentials
And Click on Login
Then Home Page should be displayed
Scenario:…

Kushal Bhalaik
- 3,349
- 5
- 23
- 46
0
votes
2 answers
Java Cucumber: How to get string parameter values from all the steps in a single scenario
I'm looking for a way to get all the parameters that are being passed in each step before entering the actual scenario for each scenario in my feature file.
Sample feature file:
Feature: Login action
Background:
When "{login url}" is open
…

iamkenos
- 1,446
- 8
- 24
- 49
0
votes
1 answer
How can we write a BDD scenario fr complex flow
How can we write a BDD scenario fr complex flow.
****For example:**** I want to write a scenario for creating a new user registration for wifi connection.
It will be one scenario where it will ask for customer details, product details , payment…

clement dass
- 1
- 3
0
votes
1 answer
Karaf - generating feature file and creating custom distribution
I have an application which I want to deploy in karaf. I have created a feature file and I am able to add features through this file using karaf console. What I want to achieve now is that create this feature file through maven commands instead of…

Aviral Shukla
- 13
- 3
0
votes
2 answers
How to bypass repetitive step execution in cucumber feature files?
In Scenario outlines, if there are 2 or more scenarios, then all the steps of feature will execute for both of the 2 more scenarios.
But I need to execute one of the step only once i.e. login step.
For Example:
Scenario Outline: Acceptance page…

Hemanshu
- 39
- 2
0
votes
0 answers
Updating feature file will not update the generated step definitions
I wrote a feature file using Specflow and generated step definitions. I went back to my feature file to update my scenarios but when I generate step definitions, it won't update the step definitions, instead it would overwrite what's already been…

GeeK89
- 1
- 1
0
votes
1 answer
Unable to identify the object from ruby library
I recently updated the OS to ELcaptain and ever since my feature files are failing and not identifying object.
This is the error I get in terminal when I run a file:
cannot load such file -- rspec…

ownJava
- 33
- 5
0
votes
1 answer
is there any alternative for scenario.steps method in cucucmber 2.0.0?
I have just upgraded to Cucumber 2.0.0 and looks the version 2 is not supporting the steps method for the scenario.
The below code in the my hooks is not working due to this and dont see any alternative method in ruby docs for cucumber version…

Annette
- 214
- 1
- 3
- 16
0
votes
1 answer
Cucumber Feature file for testing web services
I'm working on testing the web service which has the following XML as a request.
ABCD1
12345
John
…

sdwp
- 1
0
votes
2 answers
java-Share data among different scenarios in a single feature
Cucumber java
My feature file looks like
Feature
Scenario1:.... Generate a unique number
Scenario2:.... Do some validations on the unique number generated
Using spring for dependency injection, the unique number generated @ Scenario1 is assigned to…

Guru
- 11
- 2
0
votes
3 answers
Passing parameter in "Examples:" table of "Scenario Outline:" in a feature file
Here as you can see I am trying fetch a value from .yml file located in config/environments in Examples: table.
But instead of fetching it is sending the value as it is?
Is it possible to pass parameter like this? If Yes, how?
If not, which Ruby or…

paul
- 4,333
- 16
- 71
- 144