What is the purpose of scenario outline in cucumber?



What is the purpose of scenario outline in cucumber?..

Answer / triptimoni18@gmail.com

Purpose: Scenario Outline helps run the same scenario with different data

Scenario: A user wants to log in to a website using multiple sets of credentials.

Example:

Scenario Outline: Login functionality
Given User is on the login page
When User enters "<username>" and "<password>"
Then User should see the homepage

Examples:
| username | password |
| user1 | pass123 |
| user2 | pass456 |

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Cucumber Interview Questions

Define what are the benefits?

0 Answers  


Define cucumber report?

0 Answers  


What is meant by a feature file?

0 Answers  


What is the purpose of step definition file in cucumber?

0 Answers  


What is the purpose of scenario outline in cucumber?

1 Answers  






What is a feature file?

0 Answers  


What are the major advantages of cucumber framework?

0 Answers  


What are the two files required to execute a cucumber test scenario?

0 Answers  


Define what is regular expressions?

0 Answers  


Define what is the difference between class and module?

0 Answers  


What is the limit for the maximum number of scenarios that can be included in the feature file?

0 Answers  


What is the maximum number of steps that are to be written within a scenario?

0 Answers  


Categories
  • Cucumber Selenium Interview Questions Cucumber Selenium (0)
  • Cucumber Ruby Interview Questions Cucumber Ruby (31)
  • Cucumber Interview Questions Cucumber (72)