Cucumber Cookbook

Over 35 hands-on recipes to efficiently master the art of behaviour-driven development using Cucumber-JVM
Preview in Mapt

Cucumber Cookbook

Shankar Garg

1 customer reviews
Over 35 hands-on recipes to efficiently master the art of behaviour-driven development using Cucumber-JVM

Quick links: > What will you learn?> Table of content> Product reviews

Mapt Subscription
FREE
$29.99/m after trial
eBook
$22.40
RRP $31.99
Save 29%
Print + eBook
$39.99
RRP $39.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$22.40
$39.99
$0 p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Cucumber Cookbook Book Cover
Cucumber Cookbook
$ 31.99
$ 22.40
Selenium Testing Tools Cookbook Book Cover
Selenium Testing Tools Cookbook
$ 26.99
$ 18.90
Buy 2 for $35.00
Save $23.98
Add to Cart

Book Details

ISBN 139781785286001
Paperback162 pages

Book Description

Today, behaviour-driven development (BDD) is gaining popularity around the world. Cucumber-JVM is one of the fastest growing tools and offers a cutting-edge platform for conceptualizing and implementing BDD. The variety of features available within Cucumber enhances the experience of implementing BDD for both business and development teams.

This book provides you with the skills you need to successfully create, customize, and configure the Cucumber framework. You will discover how to create Feature files, and Step Definitions, and enable various configurations, such as "Before" and "After" functions, with fun exercises. You'll round off your learning by creating automation frameworks to automate Web, REST, and Mobile apps.

Table of Contents

Chapter 1: Writing Feature Files
Introduction
Writing your first Feature file with one Scenario
Creating Scenarios with different Steps
Creating a Scenario with the And and But keywords
Writing a Feature file with multiple Scenarios
Adding Backgrounds to Feature files
Sending multiple arguments in Steps
Using complex data types to store data
Implementing Scenario Outlines
Creating a Feature file in a language other than English
Combining Scenarios, Backgrounds, and Scenario Outlines
Chapter 2: Creating Step Definitions
Introduction
Creating your first Step Definitions file
Identifying Duplicate and Ambiguous Step Definitions
Using Regular Expressions to optimize Step Definitions
Using Optional Capture and Noncapture Groups
Transforming Data Tables to parse the test data
Implementing data table diffs to compare tables
Using Doc Strings to parse big data as one chunk
Combining Doc Strings and Scenario Outlines
Defining String transformations for better conversions
Chapter 3: Enabling Fixtures
Introduction
Tagging
ANDing and ORing Tags
Adding Hooks to Cucumber code
Tagging the Hooks
ANDing and ORing tagged Hooks
Chapter 4: Configuring Cucumber
Introduction
Integrating Cucumber with JUnit
Overriding the Cucumber Options
Running Strict and Running Dry
Configuring the Cucumber Console output
Directing the Cucumber output to a file
Configuring the naming conventions
Chapter 5: Running Cucumber
Introduction
Integrating Cucumber with Maven
Running Cucumber from the Terminal
Overriding Options from the Terminal
Integrating Cucumber with Jenkins and GitHub
Running Cucumber test cases in parallel
Chapter 6: Building Cucumber Frameworks
Introduction
Building a Web Automation framework
Building a Mobile Automation framework
Building a REST Automation framework

What You Will Learn

  • Explore the usage of the Gherkin Language to write meaningful and smart Feature files
  • Understand Scenario, Steps, Backgrounds, Scenario Outlines, and Data Tables
  • Discover the concepts of Glue Code and Step Definitions in detail
  • Gain insights into the different types of Step Definitions, Regular Expressions, Doc Strings, Data Table transformations, and Capture Groups
  • Master the advanced concepts of implementing Tags and Hooks
  • Override default Cucumber options and settings along with different output report formats
  • Run Jenkins and Cucumber from Terminal while running various Cucumber Scenarios in parallel

Authors

Table of Contents

Chapter 1: Writing Feature Files
Introduction
Writing your first Feature file with one Scenario
Creating Scenarios with different Steps
Creating a Scenario with the And and But keywords
Writing a Feature file with multiple Scenarios
Adding Backgrounds to Feature files
Sending multiple arguments in Steps
Using complex data types to store data
Implementing Scenario Outlines
Creating a Feature file in a language other than English
Combining Scenarios, Backgrounds, and Scenario Outlines
Chapter 2: Creating Step Definitions
Introduction
Creating your first Step Definitions file
Identifying Duplicate and Ambiguous Step Definitions
Using Regular Expressions to optimize Step Definitions
Using Optional Capture and Noncapture Groups
Transforming Data Tables to parse the test data
Implementing data table diffs to compare tables
Using Doc Strings to parse big data as one chunk
Combining Doc Strings and Scenario Outlines
Defining String transformations for better conversions
Chapter 3: Enabling Fixtures
Introduction
Tagging
ANDing and ORing Tags
Adding Hooks to Cucumber code
Tagging the Hooks
ANDing and ORing tagged Hooks
Chapter 4: Configuring Cucumber
Introduction
Integrating Cucumber with JUnit
Overriding the Cucumber Options
Running Strict and Running Dry
Configuring the Cucumber Console output
Directing the Cucumber output to a file
Configuring the naming conventions
Chapter 5: Running Cucumber
Introduction
Integrating Cucumber with Maven
Running Cucumber from the Terminal
Overriding Options from the Terminal
Integrating Cucumber with Jenkins and GitHub
Running Cucumber test cases in parallel
Chapter 6: Building Cucumber Frameworks
Introduction
Building a Web Automation framework
Building a Mobile Automation framework
Building a REST Automation framework

Book Details

ISBN 139781785286001
Paperback162 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Selenium Testing Tools Cookbook Book Cover
Selenium Testing Tools Cookbook
$ 26.99
$ 18.90
Developing Microservices with Node.js Book Cover
Developing Microservices with Node.js
$ 31.99
$ 22.40
Learning Modular Java Programming Book Cover
Learning Modular Java Programming
$ 27.99
$ 19.60
Git: Mastering Version Control Book Cover
Git: Mastering Version Control
$ 69.99
$ 49.00
Node.js Web Development - Third Edition Book Cover
Node.js Web Development - Third Edition
$ 35.99
$ 25.20
Mastering Concurrency Programming with Java 8 Book Cover
Mastering Concurrency Programming with Java 8
$ 43.99
$ 30.80