SpecFlowOSS / SpecFlow

#1 .NET BDD Framework. SpecFlow automates your testing & works with your existing code. Find Bugs before they happen. Behavior Driven Development helps developers, testers, and business representatives to get a better understanding of their collaboration
https://www.specflow.org/
Other
2.24k stars 754 forks source link

ExternalData: Filter records by a value #2537

Open NickTaSpy opened 2 years ago

NickTaSpy commented 2 years ago

Link to Feature Request

No response

Implementation Idea

We have decided to create a big common excel file at work in order to store examples for many scenarios.

Currently the ExternalData plugin supports choosing a sheet using @DataSet:data-set-name.

It would be useful to also be able to filter the rows in this sheet by a value, perhaps like this: @DataFilter:filter-value. This way we can, for example, retrieve only the rows that include our scenario name.

Perhaps the tag could also accept a column name so only that column is checked. I believe I know how to implement this so let me know if you want me to open a pull request at some point.