Hello, my use case is the following. I need to execute something at the end of 
90% of the scenarios but not for that 10%

If I use @AfterScenario that code runs after every single scenario. I was 
hoping that there was a way decide for which story the code annotated would 
run. By looking at the documentation I was hopeful when I saw the "uponType" 
condition. However, it seems like this is limited to NORMAL and EXAMPLE only.

Is there a way to extend this class and add my custom ScenarioTypes? If so, how 
do I tag a scenario with a type? Via meta tag?

In the mean time I'm just adding an extra step the end of the scenarios where I 
want the code to be executed. Is there a better way?

Thanks,
Enrique

Reply via email to