Hi everyone,
I've just migrated from cucumber v2 to v3 and I would like to replace my old around Aspect (used for error handling at steps level) by a new step hook.
I tried this following but the status is always PASSED :
@AfterStep
public void afterStepHook(final ScenarioImpl scenario) {
final String status = scenario.getStatus().toString();
...
}
My question is: How to get the status of the current step in an @AfterStep hook?
Thanks in advance,
Thomas