I have one scenario that has many steps, and its whole purpose is data generation, for example:
Scenario: Data generation
Given dataGen statement 1
And dataGen statement 2
...
And dataGen statement 100
I want to use this entire scenario (i.e. all 100 statements) as a single step in another scenario. I want to do something like:
scenario: Data generation and then assert
(everything in previous scenario)
Then I assert my assertion
But it would be silly to copy and paste everything.
Is there a way in Cucumber to make a call to a scenario as a single step? or to group the 100 statement into some structure as a whole and call it?