What is the purpose of scenario outline in cucumber?
Answer Posted / 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 View All Answers
Define what is the language used for expressing scenario in feature file?
Explain the use of background keyword in cucumber?
What is the use of features property under cucumber options tag?
Define what is profile in cucumber?
Explain define what is scenario outline in feature file?
What is a step definition?
Define what is cucumber dry run?
What is the language used for expressing scenario in feature file?
What is the meaning of testrunner class in cucumber?
What is error handling and define how do you do error handling?
What is the use of glue property under cucumber options tag?
What are the various keywords that are used in cucumber for writing a scenario?
Define what are the benefits?
When is cucumber used in real time?
Explain the purpose of keywords that are used for writing a scenario in cucumber.