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


Please Help Members By Posting Answers For Below Questions

What are the differences between jbehave and cucumber?

401


What is the name of the plugin that is used to integrate eclipse with cucumber?

366


What is cucumber? What are the advantages of cucumber?

367


Define what is regular expressions?

347


Define what is step definition in cucumber?

325


Provide an example of scenario outline using cucumber framework.

366


Explain define what is scenario outline in feature file?

416


Define how to generate cucumber execution reports?

371


Define what is the language used for expressing scenario in feature file?

373


Explain test harness?

340


What is the starting point of execution for feature files?

377


What is bdd?

374


Explain the term step definition in cucumber

316


Define what is cucumber dry run?

288


Explain define what is test harness?

352