Class StepsAspects

java.lang.Object
io.qameta.allure.aspects.StepsAspects

public class StepsAspects extends Object
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 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

      public void stepFailed(Throwable e)
      Handles the step failed callback.
      Parameters:
      e - the e
    • stepStop

      public void stepStop()
      Handles the step stop callback.
    • getLifecycle

      public static AllureLifecycle getLifecycle()
      Returns the lifecycle.
      Returns:
      the Allure lifecycle used by this integration