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
Read .feature file in cucumber and copy content to new feature file
Suppose, I have numerous scenarios under 1 feature file- GamePlay.feature.
Feature: Game play
@TestCase_1 @Regression
Scenario: Breaker joins a game
Given the Maker has started a game with the word "silky"
When the Breaker joins the…

Raghav Bakshee
- 25
- 5
0
votes
1 answer
is there a way to pass data directly in Step definition without passing in feature file?
i want to use dataprovider to pass data directly into step definition without passing from feature file, as i want to pass null values as well. here is what i am doing.
Scenario: User should get empty field highlight, when that fields is empty and…

Muthu Akilan
- 5
- 1
- 5
0
votes
0 answers
Passing response data in feature file cucumber
I have 2 APIs
One API will give a 5 digit code
Other API will validate that 5 digit code
Currently Iam writing feature files for both APIs
In order to test these APIs in cucumber , I have written feature files for both.
So how can I pass the…

shravan kumar
- 3
- 2
0
votes
1 answer
How to pass different values for same parameter in Example using pytest bdd for scenario statement
Here is my feature file
Scenario Outline: Test different value for same parameter
Examples:
| app | app1 |
| instagram| facebook |
Given is installed on my device
And is installed on my device
@given(" is installed on…

Raj
- 165
- 1
- 2
- 11
0
votes
1 answer
SpecFlow+ Excel Generate Feature File Programmatically
Given an Excel file, how could a feature file is generated programmatically ?
Using Specflow 2.3.2 and corresponding Excel plugin and dotNet Framework (NOT dotNetCore)
string excelPath = @".\CalculatorAdd.feature.xlsx";
ExcelParser excelParser =…

Lydon Ch
- 8,637
- 20
- 79
- 132
0
votes
2 answers
Unable to parse Feature file in cucumber
I am unable to parse my feature file in cucumber while running i am getting following error, i am creating a BDD test framework to do API testing using cumber feature file concept
io.cucumber.core.gherkin.FeatureParserException: Failed to parse…

Arpit Aggarwal
- 87
- 6
- 18
0
votes
0 answers
Ignore certain cucumber tags during Jenkins Run
I have a couple feature files that comprise of:
@Feature1
Feature 1
@Tag1 @Tag2
Scenario: Scenario 1
@Feature2
Feature 2
@Tag1 @Tag3
Scenario: Scenario 2
I want to know how to run scenarios with @tag1 but not ones that also have…

vay
- 65
- 1
- 7
0
votes
0 answers
Cannot see my cucumber file type, .feature file not recognized
I added some cucumber dependencies to my pom.xml file and tried to create .feature file from TEST package but when I do that, it says ".feature is not associated with any file type". I went through the file types and there's no type that'd be…

rooddah
- 21
- 6
0
votes
0 answers
I wants to integrate Excel with Protractor with VCode with Gerkin language
I want to integrate Excel with Protractor with VCode with Gerkin language.can any one help me out with the same ?

Bhumika Dewangan
- 21
- 1
- 5
0
votes
1 answer
Specflow: Replace Name(pass string from feature file) to AccessibilityId in step definition file
I am new to Specflow. My framework is with C#.
Feature file:
Feature: test ABC app
Scenario: 00 Application is open
Given Application is open in "User" mode
When the "Configuration" screen is open
Scenario: 02 Search for servers
…

Javed Khan
- 31
- 10
0
votes
1 answer
How to parameterise username and passwords in Cucumber features when using multiple examples
I am using Cucumber+Selenium+junit for automating test cases.
Sample scenario is mentioned below. I pass multiple examples for different environments into the scenario. In my test application the passwords keep on changing every 60 days and…

sown
- 1
- 1
- 1
0
votes
1 answer
RestAssured Assertion failing
Feature File Snippet:
Then The value of messages.type should be ERROR
Actual Service Response:
"messages": [
{
"type": "ERROR"
}]
Console Log:
JSON path messages.type doesn't match.
Expected: a string containing "ERROR"
…

user2788434
- 5
- 4
0
votes
1 answer
How to pass "#" as a valid parameter in feature file using java cucumber
I have to pass "#" symbol as parameter in feature file. How to achieve that as # symbol represents comments in feature file

MVLS
- 37
- 3
0
votes
1 answer
Scenario steps in feature files are marked as having duplicate implementations
I am new to cucumber, i am facing some issue while using feature files.
My feature files are having step definitions defined.But some times i am seeing an alert sign on cucumber feature files saying that there are duplicate step definitions…

Rajaji
- 133
- 2
- 14
0
votes
2 answers
Specflow - How to pass environment specific data from Specflow example table
I have a couple of Specflow's features file which contain multiple scenarios and I want to execute them against multiple environments (DEV, TEST, and SIT).
So, my question here is - what is the best way to pass environment specific data from feature…

SK.
- 4,174
- 4
- 30
- 48