SpeckFlow is an open source tool, is a part of Cucumber family which helps us to write the automated test cases in human readable format. Gherkin is used to write the feature files which supports English language.
SpeckFlow consist of a Feature file and a HookUp file. Feature file is nothing but the English version of the automated test cases. Each test case in the feature file is called scenarios. A feature file can have multiple scenarios. Each of these scenarios in the feature file is connected to the Selenium Nunit C# code through the HookUp file. HookUp file also consist of C# code.
A Feature File consist of a header for the file and the element includes a name and high level definition of the corresponding feature of that application. Each Feature file consist of multiple scenarios which includes multiple steps.
There are three types of steps in scenarios, preconditions, actions or verification steps. These steps start with a keyword called Gherkin keyword. They are Given, When and Then respectively and the subsequent steps of the same type can be written using And and But keywords.
These scenarios are then used to create the Step Definition or Hookup between Feature file and Selenium Nunit automated test cases. A tag name can be assigned to features and scenarios. Tag names are used to categorize the scenarios like the test cases that needs to be executed in Chrome can be tag as @Chrome, or the test case that need to be automated can be tag as @automated.