Specflow Runner

Earlier we have seen how to execute the tests using Microsoft Unit Testing Framework. Now we are going to look at how to execute the scenarios using SpecFlow runner. To execute the scenarios using Specflow Runner, you will have to install below package to your project.Once the package is installed, you should see below references in your project.Ensure that app.config file contains SpecRun runner as shown in below XML file.
<?xml version="1.0" encoding="utf-8"?>
  <section name="specFlow" type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow" />
 <unitTestProvider name="SpecRun" />
 <add name="SpecRun" />

Then you can add the feature file and build the solution. After that your test should appear in Test Explorer as shown in below image. You can select the scenario and execute the test.After scenario execution, it generates the report as shown in below image.

Web development and Automation testing

solutions delivered!!