Class ScreenshotProvider
- java.lang.Object
-
- at.willhaben.willtest.junit5.extensions.ScreenshotProvider
-
- All Implemented Interfaces:
BrowserUtilExtension,TestFailureListener
public class ScreenshotProvider extends java.lang.Object implements TestFailureListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALLURE_FLAG
-
Constructor Summary
Constructors Constructor Description ScreenshotProvider()
-
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)voidonFailure(org.junit.jupiter.api.extension.ExtensionContext context, org.openqa.selenium.WebDriver driver, java.lang.Throwable throwable)
-
-
-
Field Detail
-
ALLURE_FLAG
public static final java.lang.String ALLURE_FLAG
- See Also:
- Constant Field Values
-
-
Method Detail
-
onFailure
public void onFailure(org.junit.jupiter.api.extension.ExtensionContext context, org.openqa.selenium.WebDriver driver, java.lang.Throwable throwable) throws java.lang.Throwable- Specified by:
onFailurein interfaceTestFailureListener- Throws:
java.lang.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
-
-