Questions tagged [specflow]

SpecFlow is a Behavior-Driven Development (BDD) tool for .NET.

SpecFlow is an implementation of Cucumber for .NET Core and .NET BDD-Framework. The SpecFlow and Cucumber uses the same language to write your specifications.

SpecFlow aims at bridging the communication gap between domain experts and developers by binding business readable behavior specifications to the underlying implementation.

It aims to:

provide a pragmatic and frictionless approach to specification-by-example for .NET projects.

Additionally it:

supports the concepts of acceptance test driven development (ATDD) and behavior-driven development (BDD), which are often used synonymously with specification-by-example.

SpecFlow can most easily be installed through its NuGet package.

Install-Package SpecFlow

SpecFlow is open source and provided under a BSD license.

Visit the SpecFlow site for more information.

2251 questions
0
votes
1 answer

Specflow Generateall verbose

I run 1000s of tests using specflow 2.0 and team city. Currently due to the amount of tests it often takes to the end of a run to realise that some tests failed to generate. I want to know if its possible to get the verbose output of the GenerateAll…
Ben G
  • 1
  • 1
0
votes
1 answer

SpecFlow Bindings stay partially white after Update

I updated SpecFlow to Specflow 3 recently and after restarting Visual Studio some of my bindings turned white, while others seemed to work as they did before and stayed colorful. I already deleted the cache file fpr specflow in the %temp% directory…
MehPanzer
  • 19
  • 1
  • 7
0
votes
1 answer

Specflow features file not using step definitions

I created DotNetCore XUnit test project and am having trouble getting Specflow to work in it. My feature file is in \proj\Features\SpecflowFeatureFile.feature and my step definitions are in \proj\SpecflowFeatureSteps.cs. When I run my tests I get…
runnerpaul
  • 5,942
  • 8
  • 49
  • 118
0
votes
2 answers

How to assert that a API response has a specific structure?

I have a SpecFlow test definition set up where I want to assert that the response have a specific collection of fields in its response. For example I have this particular expected response from the API: { isActive: false, lastProcessed:…
avhhh
  • 229
  • 1
  • 3
  • 11
0
votes
2 answers

How to validate a success text message which is in two lines in Specflow

I am trying to validate a message generated by the application after creating or deleting a value. I tried capturing the input from application and the success message from application is as follows:- Example: "This is a -\r\nText Message." My…
0
votes
1 answer

Is there a way to capture or save Nunit Console test Log to a folder

I have written my automation tests using c#, selenium with SpecFlow. To run them I am using Nunit. When test cases are run through Nunit whatever warning, print statements or each step in feature file details(Execution, time) etc that we see in…
0
votes
2 answers

How to give multiple data as input in the same feature file in Specflow

I have a form in the application that needs to be filled with data like creating an employee. Details like Employee code, name, address, bank details needs to be filled. I have created a single feature file with 4 scenarios: Employee personal…
0
votes
1 answer

Rerun failed tests using Specflow.Retry

I'm trying to rerun failed tests in specflow using specflow.retry plugin https://github.com/DamirAinullin/specflow-retry Here is my App.config file:
Denis S.
  • 451
  • 1
  • 5
  • 19
0
votes
1 answer

Grouping Scenarios By Login - Specflow / Cucumber / Gherkin

I am currently setting up a new UI Automation framework for a fairly complex application which has a number of input fields which require automating using Specflow & Selenium. As part of these screens, we have different UI conditions which apply,…
chrizzie
  • 13
  • 3
0
votes
1 answer

How to set parameters in Speclow BDD test if it is not type String

In BDD test I have to use parameter type Astra.Package.Entities.Data.Fixture. In the situation when I put '(.*)' in Then step, I am getting this exception: Message: System.InvalidCastException : Invalid cast from 'System.String' to…
0
votes
2 answers

Error : SpecFlow designer codebehind generation is not compatible with MSBuild codebehind generation

I am using visual studio 2019 in mac to setup my test automation framework in c# & Specflow . When i build my test automation framework in VS i am getting below error : SpecFlow designer codebehind generation is not compatible with MSBuild…
0
votes
2 answers

Specflow C# - load/edit/save xml file

Im using Visual studio 2019 and I would like to load, edit and save xml file. xml file:
Vinni
  • 3
  • 2
0
votes
1 answer

How to iterate through gherkin steps in scenario without browser instance restart

I have case to check filtering in table but its not necessary to restart browser each field value check. How can I do that in loop without loosing test result for each field? I have something like that: Background: Given I started app and…
MichalM
  • 11
  • 4
0
votes
1 answer

'System.Dynamic.ExpandoObject' does not contain a definition for 'UserName' in Specflow C#

I am getting an error that says: 'System.Dynamic.ExpandoObject' does not contain a definition for 'UserName' Here is my code also it Specflow, Selenium, and Visual Studio Scenario Feature: OasisLogin Login to Oasis application Scenario:…
DThomas221
  • 103
  • 1
  • 1
  • 8
0
votes
1 answer

Upgrading SpecFlow and SpecFlow+ resulting in 'SpecFlow.Plus.Runner.AssemblyHooks.cs could not be found' error

I have just attempted to upgrade my .net framework SpecFlow+ project from 3.0.225 to 3.5.14 for SpecFlow and from 3.0.391 to 3.5.8 for SpecFlow+ runner and I'm getting the following build…
Konzy262
  • 2,747
  • 6
  • 42
  • 71
1 2 3
99
100