Wednesday, 21 December 2016

C# - Configuring SpecFlow in Visual Studio

Prerequisite:
Visual Studio is already installed
Download link for installing Visual Studio Community https://www.visualstudio.com/vs/community/

To Install & configure SpecFlow perform below steps in Visual Studio.

Select 'Tools -> Extension and Updates'

Click 'Online', search for 'SpecFlow'.

Click 'Download' button to download and install SpecFlow.

Once download is completed click 'Install' button.

Simillarly download and install 'Nunit Test Adapter'.

Restart Visual Studio

Select 'File -> New -> Project'

Search for SpecFlow, there is no project for Specflow

Where does the specflow resides?
 to know proceed with creating Console Application.
ex: Give name- FirstSpecFlowTest and click 'OK' button.

Console Application is created.

Select 'Solution Explorer -> <<Project>> -> Add -> New Item'

Three Items displayed
  • SpecFlow Feature File
  • SpecFlow Hooks
  • SpecFlow Step Definition  

No comments:

Post a Comment