Does anyone know its its possible to define a table once in a .feature file & then access it from multiple scenarios? I’m not chaining scenarios but many of them do need to pass tables with the same data to their step definitions – also for this reason examples won’t really do what I need here.
Thanks!
One possible solution is to tag all your scenarious where you need a table:
Then bind
Beforehook to this tag and call step that declares your table from withinBeforehook definition:Alternative approach is to construct required table in tagged
Beforehook without calling step: