Google News
logo
Cucumber - Interview Questions
What is the usage of a Scenario Outline in the Cucumber tool?
Consider the situation when we need to run a test scenario multiple times. Assume we need to ensure that the login feature is functional for all types of subscribers. This necessitates repeating the login functionality scenario. Copying and pasting the identical instructions to just re-run the code does not appear to be a good approach. Gherkin adds another framework, the scenario outline, to help with this. The scenario outline is similar to scenario, with the exception that several inputs are provided.

Example :
 
Scenario Outline - Sign In Feature for a website.
Explanation : The website can have multiple users and so we need to consider all the users while implementing the sign-in functionality.
Advertisement