Skip to Content
Cucumber Cookbook
book

Cucumber Cookbook

by Shankar Garg
June 2015
Intermediate to advanced content levelIntermediate to advanced
162 pages
2h 59m
English
Packt Publishing
Content preview from Cucumber Cookbook

Running Cucumber test cases in parallel

Running test cases in parallel is a very common and required practice for a good automation framework. Cucumber, by default, does not have any such option or setting. However, since Cucumber can be integrated with Maven and JUnit, using these two tools, we can run Cucumber Scenarios in parallel.

In this recipe, we will run two Scenarios in parallel and, for web automation that will mean opening two browsers at the same time. So how do we make this possible? Let's understand in the next section.

How to do it…

  1. We create a Feature file that has two Scenarios. We will aim to run these two Scenarios in parallel. This is just for the purpose of a demo, you can implement the same approach for n number of Scenarios. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cucumber Recipes

Cucumber Recipes

Ian Dees, Matt Wynne, Aslak Hellesoy
React Cookbook

React Cookbook

David Griffiths, Dawn Griffiths
Cucumber with the Java-Build Automation Framework with Minimal Code

Cucumber with the Java-Build Automation Framework with Minimal Code

Rahul Shetty, Venkatesh Chepuri (Rahul Shetty)
The Cucumber for Java Book

The Cucumber for Java Book

Seb Rose, Matt Wynne, Aslak Hellesoy

Publisher Resources

ISBN: 9781785286001Supplemental Content