Specflow Tutorial
Introduction to SpecFlow Installation of SpecFlowWriting first SpecFlow test in Visual Studio Writing step definitions for a SpecFlow feature file Executing SpecFlow scenarios and feature files Using SpecFlow runner to execute the feature files Using tags in SpecFlow Passing parameters to steps Data table in SpecFlow Scenario Background Scenario outline Hooks in SpecFlow Executing Selenium tests with SpecFlow Executing the failed test multiple times Sharing selenium Webdriver instance in SpecFlow Writing to SpecFlow HTML reportsSpecflow - executing scenario
Before you right click and execute your first scenario, you need to ensure that SpecFlow UnitTestProvider is set properly in App.config file as shown below. If you do not specify MsTest as UnitTestProvider, you will see error saying — No tests found to run.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" />
</configSections>
<specFlow>
<unitTestProvider name="MsTest" />
</specFlow>
</configuration>
Also ensure that SpecFlow Test Runner tool is selected as shown in below image. You can open below window from Tools - Options menu in Visual Studio.


Web development and Automation testing
solutions delivered!!