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

External data plugin, support for JSON files #2700

Open mharwig opened 1 year ago

mharwig commented 1 year ago

The PR extends the External Data Plugin to support JSON files, analogous to added support for excel/csv in https://github.com/SpecFlowOSS/SpecFlow/pull/2429.

Code for handling the json is heavily based on https://github.com/kazantsev033/SpecFlow.Contrib.JsonData by @kazantsev033, but support was added for nested arrays of json objects.

The new concept is demonstrated by the /Plugins/SpecFlow.ExternalData/sample/ExternalDataSample/Features/ExternalDataFromJson.feature file.

Checklist:

PhilipQrios commented 3 months ago

How to use this plugin?