Let's assume you are an automation architect and you have to run a specific set of Scenarios or Feature files. This situation may occur often: let's say we have made changes to one functionality and now we want to run Features/Scenarios of that functionality only.
Now let's understand how we can Tag some Scenarios as Sanity, some as Regression, and some as both. Let's see in our next section.
Now, there is the home_page.feature
file and we want to Tag it as important. We also want to Tag some Scenarios as sanity
and some as regression
or some as both. So, how do we do this in a Cucumber project? Let's see in our next section.
Let's use the following Feature file for this recipe:
Feature: Home Page Background: flow till home page Given user is on Application home page Scenario: Home Page Default content Then user gets a GitHub Bootcamp section Scenario: GitHub Bootcamp Section When user focuses on GitHub Bootcamp Section Then user gets an option to...