Package io.qameta.allure.aspects
Class StepsAspects
java.lang.Object
io.qameta.allure.aspects.StepsAspects
AspectJ advice that turns
Step methods into Allure steps.
The aspect is woven around annotated methods, starts a step before invocation, updates its name and parameters, and records the final status after the method returns or throws.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidHandles the any method callback.static AllureLifecycleReturns the lifecycle.voidHandles the step failed callback.voidstepStart(org.aspectj.lang.JoinPoint joinPoint) Handles the step start callback.voidstepStop()Handles the step stop callback.voidConfigures the step annotation.
-
Constructor Details
-
StepsAspects
public StepsAspects()
-
-
Method Details
-
withStepAnnotation
public void withStepAnnotation()Configures the step annotation. -
anyMethod
public void anyMethod()Handles the any method callback. -
stepStart
public void stepStart(org.aspectj.lang.JoinPoint joinPoint) Handles the step start callback.- Parameters:
joinPoint- the join point
-
stepFailed
Handles the step failed callback.- Parameters:
e- the e
-
stepStop
public void stepStop()Handles the step stop callback. -
getLifecycle
Returns the lifecycle.- Returns:
- the Allure lifecycle used by this integration
-