Cucumber — ScenarioOutline | Code Factory

Cucumber Tutorial Index Page: Link

  • Scenario outline is used when we test same functionality with multiple test data.
  • Sample feature file:
Feature: Login functionality feature
ScenarioOutline: Login functionality with multiple valid test data
Given User navigate to
When User enter valid id
And User enter psw as
Then Login should be successful
And Home page should be displayed
|username |password |
|user1 |user1 |
|admin |admin |
  • Note
  • — Above examples column names are passed as a parameter to “when” statement
  • — In the place of Scenario we have to use ScenarioOutline.
  • — Examples are used to pass multiple arguments in a tabular format. Vertical pipes are used to seperate two different columns. An examples can contain many different columns.




Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Experiences with AWS AppSync

iting not enough time or simply that they don’t like exercising that much

Digital Team: How To Build One?

Say Hello to CodeSignal API’s GraphQL Playground!

How to run a Spark cluster on Mesos on AWS

Popular Testing Tools for Mobile Applications

AZURE CLOUD PLATFORM -Key Vaults (Article 04)

Drupal 9 is coming!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Code Factory

Code Factory

More from Medium

Do we test software enough?

Puma4j — Easier Way to Load and Convert Resource Files in Your JUnit 5 Tests


Load Testing an API Gateway

Cross Repository Maven-based Test Execution using GitHub Action Workflow