Class AttachesScreenshotAspect

    • Field Detail

      • screenshotDelayMs

        public static final int screenshotDelayMs
      • screenshots

        public static final boolean screenshots
    • Constructor Detail

      • AttachesScreenshotAspect

        public AttachesScreenshotAspect()
    • Method Detail

      • aroundScreenshottingMethod

        public Object aroundScreenshottingMethod​(org.aspectj.lang.ProceedingJoinPoint thisJoinPoint)
                                          throws Throwable
        Attaches a screenshot even if the advised method failed.
        Parameters:
        thisJoinPoint - advised join point
        Returns:
        forwarded from advised method
        Throws:
        Throwable - re-thrown as received advised method
        See Also:
        mayAttachScreenshots(), screenshottingMethod()
      • mayAttachScreenshots

        public void mayAttachScreenshots()
        Matches the execution of any method within a sub-type of MayAttachScreenshots.
      • screenshottingMethod

        public void screenshottingMethod()
        Matches the execution of any method annotated with AttachesScreenshot.