Using SpecFlow.NET and Selenium WebDriver in .NET for BDD
We saw how to use Selenium WebDriver with Cucumber-JVM for BDD/ATDD. Now let's try using a similar combination in .NET using SpecFlow.NET. We can implement BDD in .NET using the SpecFlow.NET and Selenium WebDriver .NET bindings.
SpecFlow.NET is inspired by Cucumber and uses the same Gherkin language for writing specs. In this recipe, we will implement tests for the Fund Transfer
feature using SpecFlow.NET. We will also use the Page
objects for FundTransferPage
in this recipe.
Getting ready
This recipe is created with SpecFlow.NET Version 1.9.0 and Microsoft Visual Studio Professional 2012.
Download and install SpecFlow from Visual Studio Gallery http://visualstudiogallery.msdn.microsoft.com/9915524d-7fb0-43c3-bb3c-a8a14fbd40ee.
Download and install NUnit Test Adapter from http://visualstudiogallery.msdn.microsoft.com/9915524d-7fb0-43c3-bb3c-a8a14fbd40ee.
This will install the project template and other support files for SpecFlow.NET in...