Book Image

Cucumber Cookbook

By : Shankar Garg
Book Image

Cucumber Cookbook

By: Shankar Garg

Overview of this book

Table of Contents (13 chapters)
Cucumber Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


Sometimes people who are not that well versed in Cucumber argue that creating a Step Definitions file is an overhead as compared to the frameworks that do not have Cucumber. But what they don't realize is that Cucumber auto-generates these Step Definitions, so it's not an overhead. With the knowledge of the concepts covered in this chapter, you will be able to write very effective and efficient Step Definitions.

In this chapter, we will start with the basic concepts of Glue Code/Step Definitions in detail by covering the different types of Step Definitions, the usage of regular expressions, and so on. To come up with optimized and efficient Step Definitions, we will also elaborate upon advanced concepts of Doc Strings, Data Table transformations, and Capture groups.