I would like to log on to the cucumber report ids generate on the cucumber steps. to do this I have saved the scenario on the Hook files
public void beforeUITest(Scenario scenario) {
test.scenario = scenario;
and later in the code, I use the code to log the ids that I need :
test.scenario.log(ids);
this work perfectly if we are using simple scenario.
But when Scenario outliner is used all the ids is logged under the same example and not splitted on different execution
Scenario Outline AAAA <testDetails>
Hooks
Steps
When a new file FileName
Output 1
E2EDHZBPBWW
E2EGQZ2UHJA
E2E5FFFHMLG
E2ECIKJXRHX
E2ETR6BAXOV
Then a dddd
the above ids must be once for each example