tcuser234
3 years agoNew Contributor
Set up examples from external files
Hi,
I intend to read data from external files and set up Examples for scenarios, rather than defining examples in feature file. Is there any way to achieve it?
Just notice that in the function of before scenario (@beforescenario), there is an object called scenario, and it has an attribute of Examples. I can't find any build-in methods to modify it, i.e. adding an example. Anyone can shed some lights on it?
Thanks in advance!