# What is the Example keyword in Cucumber?

We can perform data-driven testing with the help of keyword Examples. We shall also take the help of keyword Scenario Outline to execute the same Scenario over multiple values.

The data sets to be taken into consideration shall be passed below the Examples section one after another separated by | symbol. So, if there are three rows, we shall have three test cases executed from a Single scenario.

Also, the Given step has the <> delimiter. It points to the header of the Examples table. SpecFlow shall put the values within this table prior to the task of matching a step with a step definition.

To verify a Login module, we require the below steps to be executed −

We shall incorporate the above steps into the Feature File.

Feature File

Feature: User credential

Then user should be able to login

Examples

| tutorialspoint1| pwd         |

| tutorialspoint2| pwd1       |

## Example

Step Definition File

using System;
using TechTalk.SpecFlow;
namespace SpecFlowProject1.Features {
[Binding]
public class UserCredentialSteps    {
//regular expression used to point to data
[Given(@"user types (.*) and (.*)")]
}