@Before("anyMethod() && withStepAnnotation()")
public void stepStart(JoinPoint joinPoint) {
String stepTitle = createTitle(joinPoint);
MethodSignature methodSignature = (MethodSignature) joinPoint.getSignature();
StepStartedEvent startedEvent = new StepStartedEvent(
getName(methodSignature.getName(), joinPoint.getArgs())
);
if (!stepTitle.isEmpty()) {
startedEvent.setTitle(stepTitle);
}
Allure.LIFECYCLE.fire(startedEvent);
}