Skip to main content

Cucumber Data Driven Testing

Data Driven Testing is a Test design and execution strategy where the test scripts read test data from data sources (file or database) such as ADO objects, ODBC sources, CSV files, JSON etc. rather than using hard-coded values.

Data driven testing means to execute your test case multiple times with different inputs and validation values. Cucumber inherently supports Data Driven Testing using Scenario Outline and example but with power of Java you can not limit Cucumber data driven testing to just feature file.

When you have large amount of data it is recommended to use external file otherwise you can use scenario outline.

There are different ways to use the data insertion with in the Cucumber and outside the Cucumber with external files:

Submitted by tgoswami on August 30, 2020

Tarun has 11+ years of experience in Quality Assurance in different domains like Banking, E-commerce, Health and Education.

About

At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.