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 - C# - var abc =table.CreateInstance<>() null

I have this scenario. Basically I want to log in with certain roles and then enumerate through the table of values at a point in my test to see if they are all viewable. Scenario Outline: View something with user. Given I navigate to the…
IOF
  • 251
  • 6
  • 18
0
votes
1 answer

xUnit, SpecFlow Selenium and ITestOutputHelper problem

Still having a problem with a automation test project in VS Code using C#, Selenium, SpecFlow and xUnit I am trying to output to logs with ITestOutputHelper as the test progress. So I have this class using Xunit.Abstractions; [Binding] public class…
Kev
  • 121
  • 3
  • 20
0
votes
1 answer

Can you use parameter/variables/placeholders for values for future use in a Specflow scenario?

In previous job I have used DBFit and used parameters (variables/placeholders) for values example: |Key? | |>>Key| !|Query|SELECT Status FROM Confirm WHERE Name='xyz' | | Status | Key | | Confirmed | <
Richard
  • 1
  • 1
0
votes
1 answer

How to write BDD test case to validate the column names in UI displayed?

I have an UI that displays data in tabular format. This table has 9 columns. I need to write the BDD scenario which validates the names of all these columns. I am not sure which of the following is the correct approach.(included only the last "Then"…
0
votes
1 answer

How to use Specflow srsprofile in mstest runsettings

One of my projects uses spec flow + MSTest + MSBuildGeneration tool. I have few filter tags defined in my srsprofile and created a runsettings file something like below