Video description
In this course, you will embark on a journey to master Specflow, Cucumber, and Gherkin, the indispensable trio for unleashing the full potential of BDD.
You will start with a detailed course introduction, then dive deep into the principles of BDD and understand the foundation upon which Specflow thrives.
Get hands-on with the Gherkin language through Gherkin basics, gaining fluency in this universal language for expressing behavior and setting the stage for your Specflow adventures. Then learn how to create Specflow step definitions and bind them to your scenarios. After that, you will master the art of working with datatables in Gherkin using Specflow Table Assist. Understand the power of hooks in Specflow and how they can streamline your testing process.
Explore various methods of sharing data in Specflow, including Specflow’s context system and dependency injection. Dive into advanced topics such as custom value retrievers and comparers, gain a competitive edge in your testing endeavors, and understand step argument conversions and their significance in Specflow.
Explore advanced hook concepts, scopes, and asynchronous step definitions. Learn different methods to run your Specflow tests.
Finally, tidy up your project by organizing features, steps, and business models effectively, ensuring a clean and maintainable structure.
By the end of this course, you will be proficient in using Specflow and well-prepared to tackle real-world testing challenges with confidence, gaining the expertise needed to excel in your role.
What You Will Learn
- Gain fundamental understanding of the Gherkin language
- Discover how to efficiently run automated tests in parallel using Specflow
- Explore the versatility of Specflow hooks and their role in controlling functionality
- Create custom value retrievers and comparers
- Gain proficiency in step arguments and transformations
- Delve deep into the world of hook scopes for more effective testing
Audience
This course is designed to cater to a diverse audience; whether you are an experienced automation testing professional looking to enhance your skills or someone passionate about the world of testing, this course is for you. The .NET C# developers seeking to integrate Specflow into their testing practices will find this course invaluable. For business analysts, this course offers a unique opportunity to bridge the gap between business requirements and technical implementation.
All you need is basic C# coding knowledge and a foundational understanding of Gherkin to embark on this transformative learning journey.
About The Author
Tim MacLachlan: Tim MacLachlan is a highly experienced senior/lead developer boasting over two decades of extensive commercial development expertise, which includes an impressive 16+ years of dedicated work with .NET technologies.
As a versatile developer, Tim possesses a diverse skill set that spans the entire software development lifecycle. His proficiencies encompass low-level programming, intricate algorithmic design, architectural planning, business intelligence solutions, analytical systems, and mobile application development.
With a rich portfolio that comprises hundreds of applications, he has made significant contributions to various industries, ranging from commercial aviation and military sectors to banking/finance, retail, and health.
Table of contents
- Chapter 1 : Course Introduction
- Chapter 2 : Introduction to Behavior-Driven Development
-
Chapter 3 : Gherkin Crash Course
- Module Introduction
- Keywords Introduction
- Feature Keyword
- Scenario Keyword
- Given Keyword
- When Keyword
- Then Keyword
- And Keyword
- But Keyword
- * (Asterisk) Keyword
- Main Keyword Recap
- Rule Keyword
- Background Keyword
- Scenario Outline/Examples Keyword
- @ Tag Keyword
- Comments
- Long Description
- Datatable
- Multiple Languages
- Gherkin Keyword Rules
- Module Summary
-
Chapter 4 : Introduction to Specflow
- Module Introduction
- What Is Specflow?
- Why Learn Specflow as a .NET Developer?
- What Is the Purpose of an Acceptance Test?
- Types of Specflow Tests
- High-Level Specflow
- Installing Specflow Extensions for Visual Studio
- Installing Specflow Extensions - Visual Studio Code
- Test the Specflow Extension - New Specflow Project
- Module Summary
- Chapter 5 : Getting Started with Specflow - Binding Steps
- Chapter 6 : Specflow - How Parameters Are Handled
- Chapter 7 : Gherkin Datatables - Specflow Table Assist
- Chapter 8 : Introduction to Specflow Hooks
- Chapter 9 : Splitting Features and Steps
- Chapter 10 : Sharing Data in Specflow - Context and Dependency Injection
-
Chapter 11 : Advanced Specflow - Value Retrievers
- Module Introduction
- Value Retrievers Datetime
- Value Retrievers Enum
- Custom Value Retriever
- Custom Comparer
- TD Custom Value Retriever Boolean
- Custom Value Retriever - UserType Challenge
- Custom Value Retriever - UserType Challenge Solution
- DateTime Null Values
- Interpret Nulls with Null Value Retriever
- Custom String Retriever Handle Nulls
- Custom Retriever Comma-Separated List
- Dynamic Data Custom Value Retriever
- Module Summary
- Chapter 12 : Step Argument Conversions
- Chapter 13 : Advanced Specflow - Hooks and Scopes, Async
- Chapter 14 : Running Tests with Specflow
- Chapter 15 : Organizing Features and Steps
- Chapter 16 : Conclusion
Product information
- Title: Specflow and Cucumber for .NET Developers - The Master Guide
- Author(s):
- Release date: October 2023
- Publisher(s): Packt Publishing
- ISBN: 9781835462782
You might also like
book
.NET DevOps for Azure: A Developer's Guide to DevOps Architecture the Right Way
Use this book as your one-stop shop for architecting a world-class DevOps environment with Microsoft technologies. …
video
Test-Driven Development in .NET Core - The Handbook
Test-Driven Development (TDD) is a powerful approach to build solid and robust software. In this course, …
video
ASP.NET Core MVC - Up and Running (.NET 5)
If you want to learn why ASP.NET Core is so popular and how to create and …
book
Exploring Blazor: Creating Server-side and Client-side Applications in .NET 7
Build and develop web applications with Blazor in C#. This book covers both server-side and client-side …