Creator of SpecFlow, Spec Solutions Kft., Hungary
Gáspár Nagy is the creator and main contributor of SpecFlow, the most widely used ATDD/BDD framework for .NET.
Gáspár is an independent coach, trainer and test automation expert focusing on BDD and SpecFlow. He has more than 10 years of experience in enterprise software development as he worked as an architect and agile developer coach. He is an approved trainer in the Certified Scrum Developer program of Scrum Alliance and Microsoft Certified Professional for Visual Studio Team Foundation Server.
Behavior driven development (BDD) is an agile method that (among others) puts the ideas of agile testing into practice. BDD emphasizes collaboration between testers, developers and the business stakeholders and help preventing bugs by introducing testers and testing concept into the specification phase.
This is all fine when you start with a new, green field project. But what about those old legacy applications that have no proper automated test coverage and even if there are automated tests no one is dare to touch them? Is it possible to introduce BDD for these projects? What are the different strategies, collaboration and testing patterns that can be followed? This session gives a brief overview about what BDD is today and addresses these questions. The code examples use .NET and SpecFlow, but can be easily adapted to any other platform too.
The SpecFlow course is a three-day workshop that builds on existing knowledge about Specification-By-Example and shows how to implement it in practice using Gherkin and SpecFlow. It covers refining and documenting specification workshop results in Gherkin, feeding Gherkin scenarios into acceptance test driven development with SpecFlow, and advanced concepts for automation and building living documentation systems. The course topics are discussed through examples, demos and hands-on exercises to ensure knowledge that can be used in practice.
DAY 1: CAPTURING SPECIFICATION WORKSHOP RESULTS IN GHERKIN
• Quick intro/refresh on Specification-By-Example
• Introduction to Gherkin
• Capturing the result of specification workshops in formalized Gherkin scenarios
• Collaboration patterns for working with Gherkin
• Writing styles and Gherkin patterns/anti-patterns
Target audience: Product Owners, Business Analysts, Testers, Developers …– anyone involved in Specification-By-Example workshops that yield formalized Gherkin specifications. No development knowledge required.
DAY 2: SPECFLOW CORE CONCEPTS AND ATDD BASICS
• Introduction to SpecFlow
• Introduction to the Acceptance Test Driven Development workflow (test first, outside-in)
• Core concepts for (A)TDD: mocking, stubbing, dependency injection
• Domain layer automation (automating under the skin)
• Organizing step definitions
• Sharing state between steps
Target audience: Developers, Testers who are involved in automating Gherkin scenarios. Attendees should feel comfortable in using Visual Studio and reading code. Testers will pair with Developers to learn work on basic automation of scenarios.