Specflow framework Introduction

Specflow is a .net open-source framework for Behavior-driven development. We can write the test scripts in plain English language defined by Gherkin syntax.The open source version of Specflow requires a separate unit test runner Nunit/Mstest to run the scripts.The premium version is known as SpecFlow+ provides a BDD-friendly runner, Microsoft Excel integrations, living documentation and premium support.

The premium version, known as SpecFlow+, provides a BDD-friendly runner, Microsoft Excel integrations, living documentation, and premium support.

Gherkin:

Gherkin is a language that used to define tests in the BDD framework. It describes use cases for a software system in a way that can be read and understood by almost anyone.

Example: Given, When, Then, And, But

Given username and password to login
And home page loads
When user click on the product
Then product displayed with information

Gherkin also supports many languages to write the scripts in a feature file.

 

Related Tutorials