SpecFlow icon indicating copy to clipboard operation
SpecFlow copied to clipboard

How to read data from Excel in Hooks?

Open astamatov opened this issue 2 years ago • 1 comments

Link to Feature Request

No response

Implementation Idea

Hi all,

I have an issue with reading data in Hooks. I can read them in the Steps, but how can I do that in Hooks? This matters, because for an example based on a ID parameter in the Excel file, I want to do some cleanup for that specific test. But I cannot access parameters in the Hooks. Is there a way to do this? Thanks in advance!

Best regards, Aleksandar

astamatov avatar Feb 17 '23 15:02 astamatov

It look like it can be done by reading arguments from ScenarioInfo. Sorry for opening this, you can close it.

astamatov avatar Feb 17 '23 15:02 astamatov