Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Data read from excel workbooks in cucumber #263

Open
ashkaps opened this issue May 22, 2018 · 1 comment
Open

Data read from excel workbooks in cucumber #263

ashkaps opened this issue May 22, 2018 · 1 comment

Comments

@ashkaps
Copy link

ashkaps commented May 22, 2018

Hi,

I am looking for some hooks or pre-conditions that let's me read data from excel sheet when I am using cucumber.
Using Scenario Outline and Examples sounds useful but that becomes very difficult to manage when I have many steps in my test case and I want to pass multiple parameters.

I have googled this a lot and so far I have found no so very elegant solutions for this.
What I really want is that when the cucumber passes parameter values from steps to the glue code, the correct values are passed. What I will pass in my steps is the column name from excel.
Q1 - So is there some functionality available with cucumber that allows me to read test data from external files - excel, json?

Q2 - If not, is it possible to update the values of Example rows that are passed from Step to glue code?
I have tried to use Hooks to see if Examples is allowed as one of the params. Sadly only Scenario class is allowed as a param.

@brasmusson
Copy link
Contributor

This is an issue tracker, please direct questions to the support forums.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants