I am using Allure2 with TestNG. I want to write my own listener which prints @Steps in the console output.
I saw the interface "StepLifecycleListener" in allure but I am not able to implement this listener in TestNg. Any pointers ?
@Override
public void beforeStepStart(final StepResult result) {
System.out.format("Starting step: %s", result.getName());
}
@Override
public void afterStepStop(final StepResult result) {
System.out.format("Completed step: %s", result.getName());
}