Preface
Cucumber JVM is one of the fastest-growing tools that offer a cutting-edge platform to conceptualize and implement behaviour-driven development (BDD). The variety of features available within Cucumber bolsters and enhances experiences of implementing BDD for both business and development teams.
This cookbook has around 40 recipes. It takes you on a learning journey, where you start from basic concepts such as Feature files, Step Definitions, and then moves on to advanced concepts such as Hooks, Tags, configuration, and integration with Jenkins and test automation frameworks. Each chapter has multiple recipes, with the first recipe introducing the main concept of that chapter; the complexity level of each recipe increases as you progress through the chapter. The book has sufficient topics for product owners, business analysts, testers, developers, and everyone who wants to implement BDD.
This book is written with an assumption that the reader already has some idea about Cucumber. If you are new to Cucumber, it is advisable to go over my blog first:
- Blog 1: How to integrate Eclipse with Cucumber plugin https://shankargarg.wordpress.com/2015/04/26/how-to-integrate-eclipse-with-cucumber-plugin/
- Blog 2: Create a Cucumber Project by Integrating Maven-Cucumber-Selenium-Eclipse https://shankargarg.wordpress.com/2015/04/29/create-a-cucumber-project-by-integrating-maven-cucumber-selenium-eclipse/
These two blogs will help you integrate Cucumber and Eclipse and help you create and run a basic project.
All of the code explained in this book is committed on GitHub. Here is the URL of the code repository: https://github.com/ShankarGarg/CucumberBook.git.
This repository has five projects:
- Cucumber-book-blog: This project is used in the blogs mentioned earlier to start with Cucumber, Maven, and Eclipse
- CucumberCookbook: This project is used in chapters 1 to 5
- CucumberWebAutomation, CucumberMobileAutomation, and CucumberRESTAutomation: This project is used in Chapter 6, Building Cucumber Frameworks