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
Error shown as " org.openqa.selenium.JavascriptException: javascript error: Cannot read property 'setAttribute' of null"
New to Cucumber, executing it along with Selenium. I have written a feature file as where user first goes to a home page then clicks on Register link & verify that the said fields are displayed.:-
The step definition for the same has also been…

neha sharma
- 117
- 1
- 3
- 11
0
votes
1 answer
Is it possible to reference feature files from external folders in Specflow like we use glue in Java with Cucumber
I been working on creating tests for API's. I wanted to write tests in both Java and .Net and I started of with Java using Cucumber and Rest Assured Library. Now when I am trying to write the same tests with .Net using Specflow, But I want to reuse…

Vishal Mangwani
- 23
- 1
- 4
0
votes
1 answer
How to have List of Strings in step definition function instead of number of parameters from gherkin feature file
I have a Scenario in the feature file, whose Then steps list the number of fields from JSON which should be confirmed that they are present in Response body.
Step in the Scenario of feature file is:
Then The response fields should be…

Waqas Raza
- 5
- 2
0
votes
1 answer
Getting Multiple matching bindings for two GIVEN having different statements
I've written two Scenario's in Specflow, one for UI and other for API.
The scenario's and the step definitions are as follows:
Scenario 1:
@Regression
Scenario Outline: Add Single New External User
Given the is logged on to the portal with…

TrueDroider
- 59
- 1
- 13
0
votes
3 answers
"How to execute a whole scenario with 5 steps before some particular scenarios in cucumber"
"Can i execute a specific scenario that is having suppose 5 steps before some specific scenaros in Cucumber?
Suppose i have a feature file that contains 3 scenarios say A,B and C.
I am writing another feature file and there are suppose 5 scenarios…

Ranjan
- 1
- 2
0
votes
2 answers
Fetching all cucumber scenarios that have a particular tag
How can I fetch a list of all the scenarios that have a particular tag. For example
get all scenarios that have @checkout tag.

Harry
- 31
- 1
- 6
0
votes
1 answer
Cucumber Feature plugin giving "Step 'xxxxx' does not have a matching glue code"
I am developing a framework in cucumber. I have setup everything right from folder structure to maven and integration with Testng.
But there is small warning that eating me from inside is even though my project runs and executes fine . My feature…

Sumit Bhatnagar
- 47
- 10
0
votes
1 answer
How to fetch Examples key and values from feature file into different Steps
In my cucumber feature file, Ihave some thing like this:
Scenario Outline: Hi Hello
Given I open
When I fill details
Then Click enter
Then I verify
Examples:
|Name|Age|BOB |Place|
|JOHN|20 |2000| OH |
Above Examples…

Jagadeesh
- 71
- 1
- 2
- 6
0
votes
1 answer
Cucumber .feature file not picking up Step Definition in Java class
I am writing some cucumber tests for my java project.
My tests are working just fine, but there is a small warning appearing in my .feature file.
Below, I am passing an integer from the .feature file into my Step Definitions in a seperate java…

user9847788
- 2,135
- 5
- 31
- 79
0
votes
1 answer
Specflow generated feature.cs file not working
Last time it actually worked: Monday 27/07/2018
I've been using specflow for around 2 years now. But as of today (this week) I've got an issue I never encountered before. When changing even a single letter in the .feature file as usual Specflow will…

Akorna
- 217
- 2
- 16
0
votes
3 answers
How to write correct feature file in Cucumber
I am trying to learn BDD cucumber and i am trying to write a feature file for login scenario with valid and invalid usernames.
For valid user will be logged and will logout however for invalid username, the user will be asked to go to login page…

Nit QA
- 37
- 2
- 3
- 8
0
votes
2 answers
Specflow feature file code- data definition c#
I've created a feature file with multiple features. In my feature files my Given and When is always the same only my then is different as i'm testing for different output measures. Would it be worth having just one piece code for my Given and When…

J OpenDock
- 59
- 1
- 9
0
votes
1 answer
Radish Test Framework
I am new to the Radish Test Framework and got confused by the way of executing the test using feature files. Please clarify on:
I have installed radish module(pip install radish-bdd) already. Is there any other step to follow?
In the example, it…

Abhishek Jain
- 31
- 1
- 2
- 3
0
votes
1 answer
ERROR: (0 , _cucumber.And) is not a function
I have tried to use 'And' keyword in Cucumber and I get this error. Could someone tell me the reason behind this?
In step definition:
import { When,Then,And } from 'cucumber';
Given(/^User goes to login page$/, () => {
…

Blessy
- 21
- 1
- 5
0
votes
2 answers
How to execute cucumber feature files one after another and set time between
Hi I have two feature files and want to execute them one after another and have a specific time between the executions. Is there a parameter for example: I want execute the first test, wait for 5 minutes and execute the next one.
The reason for this…

Tim Schwalbe
- 1,588
- 4
- 19
- 37