SpecFlow Actions

SpecFlow Actions is our new way to help our users write easier and quicker test automation. We aim to solve common challenges you may encounter during your work of automating an application,API,website, and mobile app.

We do this for our community, therefore we want to work on actions that bring true value to you. Please go to our SpecFlow Actions forum page and vote for your favorite action or suggest a new one.

There are three kinds of SpecFlow Actions:

  • Code snippets - These are small code snippets that solve a particular problem.
  • Plugins To solve more complex problems, our team has put together a series of dedicated plugins for SpecFlow that provide more functionalities and integrate effortlessly into SpecFlow and its features.
  • .NET 6 examples Examples of how you can use SpecFlow with .NET 6 in various use cases to test an application.

.NET 6 examples

  • ClassLibrary This project contains a working example of how to test a class library using SpecFlow and .NET 6
  • ASP.NET Core Web Application This project contains a working example of how to test an ASP.NET Core web application using SpecFlow and .NET 6.
  • ASP.NET Core API This project contains a working example of how to test an ASP.NET Core web API using SpecFlow and .NET 6.
  • WinForms This project contains a working example of how to test a WinForms application using SpecFlow and .NET 6.
  • WPF This project contains a working example of how to test a WPF application using SpecFlow and .NET 6.
  • Android Mobile App This project contains a working example of how to test an Android mobile application using SpecFlow and .NET 6.

Code snippets

  • CSV This code snippet allows you get the value of a cell using row and column name) from a .csv- file
  • Excel Similar to the CSV code snippet this code allows you get the value of a cell using row and column name but from a .xlsx- file
  • Custom test output This code snippets shows you how to bring your custom test output to the unit test runner of your choice. It supports NUnit, MSTest, xUnit and SpecFlow+ Runner.

Plugins

  • Selenium This plugin will help you use Selenium together with SpecFlow. It handles the lifetime of your browser and provides easy configuration and helper methods to interact with Selenium.
  • BoaConstrictor This plugin will help you use Boa-Constrictor together with SpecFlow to use the Screenplay Pattern for Selenium more easily. In the background it is using SpecFlow.Actions.Selenium so all functionality of it is also available, if you are using Boa-Constrictor. Boa-Constrictor is configured out of the box. The logger is connected to the SpecFlow Output API.
  • Browserstack This plugin will help you use Browserstack and Selenium together with SpecFlow. As an extension of SpecFlow.Actions.Selenium, It handles the lifetime of your browser and provides seamless integration with the Browserstack Automate feature.
  • Docker This plugin will help you by using Docker together with SpecFlow.
  • Playwright This plugin will help you use Playwright together with SpecFlow. It handles the initialization and lifetime of your browser, provides methods to work with your page selectors and a configuration that makes it easy to set up the browser instance.