Introduction to SpecFlow

SpecFlow (https://www.specflow.org/) is the BDD framework in .Net language. We can write the feature files using Gherkin syntax.

If you know how to write feature files in Cucumber, half of your work is already done.

Key features of SpecFlow are given below.

  1. You can write your test scenarios in plain English or any other regional language like French or German.
  2. SpecFlow extension helps you create step definitions automatically.
  3. We can run SpecFlow tests using MSTest or SpecFlow runner.
  4. HTML report is generated by SpecFlow Runner.
  5. Hooks allow you to execute code before and after specific scenarios.
  6. Tagging scenarios allow you to group the scenarios.
  7. In-built dependency injection framework allows you to share the data among step definition classes.

 

You may also like...