Class AttachmentsAspects

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

public class AttachmentsAspects extends Object
Aspects (AspectJ) for handling Attachment.
  • Constructor Details

    • AttachmentsAspects

      public AttachmentsAspects()
  • Method Details

    • withAttachmentAnnotation

      public void withAttachmentAnnotation()
      Pointcut for things annotated with Attachment.
    • anyMethod

      public void anyMethod()
      Pointcut for any methods.
    • attachment

      public void attachment(org.aspectj.lang.JoinPoint joinPoint, Object result)
      Handles the attachment callback. If returned data is neither a byte array nor AttachmentBytes, then use its string representation.
      Parameters:
      joinPoint - the join point to process
      result - the model object or framework result to process
    • getLifecycle

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