Automated Acceptance Testing with SpecFlow and Gherkin
Learn how to create business-facing acceptance tests in natural languages in Visual Studio and .Net.
What you'll learn
SpecFlow is a tool for writing tests in Gherkin that the business can understand. Once the tests are written, the steps of these natural language tests can be hooked-up to actual coded automation and tests.
Table of contents
- Module Overview 2m
- Installing The Required NuGet Packages 2m
- Step Definition Binding 11m
- Setting The Default step Definition Style 2m
- Adding New Steps 4m
- Deleting Steps 2m
- Running and Debugging Scenarios and step Definitions 4m
- Sharing step Definitions 2m
- Parameterization to Promote step Definition Reusability 8m
- Multiple and String params in A Single step Definition 3m
- Creating A step Definition with A Data Table 5m
- Scenario Outline step Definitions 6m
- Sharing and Maintaining State Between step Definitions 4m
- Module Summary 2m
- Module Overview 2m
- Overview of The Website under Test 2m
- A brief Introduction to WatiN 6m
- Writing The Password Strength Scenario 3m
- Writing Automation for The Password Strength Scenario 13m
- Refactoring Password Strength Automation Code 6m
- Using hooks to Dispose The Browser Instance 4m
- Refactoring into A Scenario Outline 5m
- Writing The Existing user Scenario 9m
- Refactoring Features to use Backgrounds 4m
- Refactoring step Definitions into other Classes 4m
- Refactoring Browser Interaction into A Page Model 10m
- Module Summary 1m
Course FAQ
SpecFlow is an open-source tool for bridging the communication gap between domain experts and developers - allowing non-technical people to write acceptance tests for the system that we're developing.
An acceptance test enables us to validate that we're building the right system and that the system contains the right features that are required by the users, the business, or the product owner.
You will get an overview of the SpecFlow tool itself. We'll discuss acceptance tests in general and some of their characteristics, then see how SpecFlow can be used in test-first approaches. Finally, we'll create a new project in Visual Studio and add our first feature file to it.