ANDing and ORing Tags

Most of the time, changes are made to many functionalities simultaneously; so it becomes imperative for testers to test all those functionalities. Sometimes we have to run all the Scenarios marked as @sanity and @regression and sometimes we want to run all Scenarios for feature1 or feature2. So how do we do this in Cucumber? Let's see that in this section.

Getting ready

This is the Feature file we will use for this recipe:

@important Feature: Home Page Background: flow till home page Given user is on Application home page @sanity Scenario: Home Page Default content Then user gets a GitHub Bootcamp section @regression Scenario: GitHub Bootcamp Section When user focuses on GitHub Bootcamp Section Then user gets an option to setup ...

Get Cucumber Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.