Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Difference between Scenario Outline & Data Table

Category: BDD Cucumber

Scenario Outline:

This uses Example keyword to define the test data for the Scenario.
This works for the whole test.
Cucumber automatically run the complete test the number of times equal to the number of data in the Test Set.

Data Table:
No keyword is used to define the test data.
This works only for the single step, below which it is defined.
A separate code needs to understand the test data and then it can be run single or multiple times but again just for the single step, not for the complete test.

Leave a Reply

Your email address will not be published. Required fields are marked *