Class ScreenshotExtension
- java.lang.Object
-
- at.willhaben.willtest.junit5.extensions.ScreenshotExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class ScreenshotExtension extends java.lang.Object implements org.junit.jupiter.api.extension.TestExecutionExceptionHandler
-
-
Constructor Summary
Constructors Constructor Description ScreenshotExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateScreenshot(org.junit.jupiter.api.extension.ExtensionContext context, org.openqa.selenium.WebDriver driver)voidhandleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, java.lang.Throwable throwable)booleanisAssumptionViolation(java.lang.Throwable throwable)
-
-
-
Method Detail
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, java.lang.Throwable throwable) throws java.lang.Throwable- Specified by:
handleTestExecutionExceptionin interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler- Throws:
java.lang.Throwable
-
isAssumptionViolation
public boolean isAssumptionViolation(java.lang.Throwable throwable)
-
createScreenshot
public void createScreenshot(org.junit.jupiter.api.extension.ExtensionContext context, org.openqa.selenium.WebDriver driver) throws java.lang.Throwable- Throws:
java.lang.Throwable
-
-