cucumber_scenario would return the Scenario instance
The cucumber_scenario method could be defined in a similar way to
#run_step,
see Executor#define_step_call_methods
if cucumber_scenario.successful?
take_screenshot(cucumber_scenario.id) # Each scenario should have
a unique id that can be used in e.g. file names.
end
end
Based on Aslak’s example and the content in the ticket and this thread
I think that is the intent. Although, mentioned in passing it as an
example in the After, Aslak’s code exactly on the ticket showed only
passing the scenario through to the Before as a block argument.
The ticket has been updated, perhaps we should defer future
communication on this thread to the ticket?
Based on Aslak’s example and the content in the ticket and this thread
I think that is the intent. Although, mentioned in passing it as an
example in the After, Aslak’s code exactly on the ticket showed only
passing the scenario through to the Before as a block argument.
The ticket has been updated, perhaps we should defer future
communication on this thread to the ticket?