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
18
votes
4 answers
I cannot get specflow's code behind files to regenerate
When I edit a specflow feature file test, it doesn't update the code-behind file.
When I try to manually regenerate the code-behind files by right-clicking the project and choosing 'Regenerate Feature Files' I get an error:
Error: cannot find…

Megan Styles
- 631
- 1
- 5
- 10
6
votes
0 answers
Multiline values in cucumber datatables
I was wondering if anyone has ever successfully used multiline values in a cucumber data table. I have not been able to come up with a working solution.
I am working with smth like this:
Given i have a web service
When i make a request to "link"…

mara
- 61
- 1
- 3
4
votes
1 answer
Flutter driver Test Explorer
is there a way to get some kind of Flutter Test Explorer into the IntelliJ IDE?
I am thinking of something like JUnit has in Visual Studio. Let's say that it should be something like this. My tests are stored in Feature Files.
If yes please send me…

Apuna12
- 375
- 2
- 6
- 23
4
votes
3 answers
How to use same set of examples in multiple scenario outlines in cucumber features
I tried finding this solution but no luck. Its very simple requirement and I think cucumber has solution which I am not aware of.
I want to use same set of examples of scenario outlines to the multiple features. Every time I don't want to copy…

Bhavik Shah
- 140
- 4
- 16
4
votes
2 answers
Multiple Match bindings found on line with two different parameters
I have written two lines(When's) in my same feature file
When user $action1$ $key1$ with $value1$ for $atttributeType_Value$ in $Filename1_SectionId1$
Then abc
When user $action2$ $key2$ with $value2$ in $Filename2_SectionId2$
Then def
and…

Suraj Gupta
- 390
- 1
- 9
- 25
4
votes
2 answers
How to get SpecFlow to change step definition when renaming step in feature file?
Lets say i have a scenario in feature file like below
Given I log in as "super" user
When I click on login
Then Home page is displayed
With corresponding step definitions:
[Given(@"I log in as ""(.*)"" user")]
public void…

Dee
- 41
- 1
- 2
4
votes
1 answer
Integrating external data source with Cucumber feature file
I am new to Cucumber and the feature files it uses for BDD. I want to know if there is any way I could directly give the filepath of my external data file (eg. CSV file), and fetch the values of the parameters I use to create my test script.

realnikunj
- 101
- 1
- 5
3
votes
2 answers
How to add a Before() function in Cypress Feature Files?
I am using feature files in my Cypress framework.
Below is an example of a scenario:
Scenario: #1 Cancel should return to Customer Management landing page
Given User is on the Edit Customer Page
When User updates the email address to…

user9847788
- 2,135
- 5
- 31
- 79
3
votes
2 answers
Nested examples in cucumber scenario outline - List or Map values
I have recently seen a cucumber scenario outline like this.
sorry for my bad example below. But the format is in this way.
I really wonder if this type of format is supported by cucumber?
The nested Data tables. Has any one used this type of nested…

npp
- 45
- 2
- 6
3
votes
1 answer
Multiple scenarios within a specification feature file?
After having gotten more comfortable in Behaviour-Driven Developement using SpecFlow, I was wondering about having multiple scenarios for the same feature as follows:
Register.feature
Feature: Register a new user
In order to use the system,
…

Will Marcouiller
- 23,773
- 22
- 96
- 162
2
votes
1 answer
Is there a way to catch org.graalvm.polyglot.PolyglotException in karate, while a (Java) feature step is failing?
While I'm running karate feature files with java classes, the feature file step is failing with org.graalvm.polyglot.PolyglotException and do we have a way to handle those exceptions?
Since there are couple of test cases which has java…

Divya
- 65
- 4
2
votes
1 answer
Getting "not defined" error while calling a feature file from another feature file (Karate framework)
Whenever I try to call the feature file(one.feature) from another feature file(starter.feature), I am not able to access the info(caller) in specific scenario
But It is working fine and I am able to access info(caller),
when I run one.feature file…
2
votes
2 answers
Strongly-Typed values in specflow scenario
Is there any way to use Strongly-Typed values in Examples table of the scenario? (or alternative solution)
I'd like to know if I made a typo in userType column already during the coding (not during running the test).
UPDATED
file.feature
Scenario…

procma
- 1,174
- 3
- 14
- 24
2
votes
3 answers
In visual studio, what is the shortcut key to auto format feature file on windows platform?
I am using specflow with visual studio. Is there any shortcut key to auto format feature file code.
PLatform: Windows 10
Visual Studio 2017

Devdutta Goyal
- 985
- 2
- 11
- 27
2
votes
1 answer
How to reformat columns in feature file in intelliJ for MAC
I have a feature file in IntelliJ but don't know how to reformat the columns. Tried a couple of options but none of them are working
I have tried Ctrl + Alt + L, Ctrl + shft+ Alt + L
Then the "abc" box should show the following options
|…

pk786
- 2,140
- 3
- 18
- 24