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.