zakaria janah
zakaria janah

Reputation: 13

how to integrate external data source with Cucumber feature file

I have created cucumber feature file. As of now I am giving input from scenario outline with Examples.

But My test data is very huge now. I just want to give input from CSV or EXCEL.

Could you please explain How to achieve this ?

Upvotes: 1

Views: 2568

Answers (1)

user861594
user861594

Reputation: 5908

If you are using cucumber version 5+ you can use qaf-cucumber that will enable external test data with in-built data providers and many other features from qaf. Below is example of test data from CSV usage. You can switch to any available data-provider or you can create custom as well.

Feature: my feature    

@dataFile:resources/data/testdata.csv
Scenario: my scenario
...

Upvotes: 3

Related Questions