public class ScreenshotAfterTestFailExtension
extends java.lang.Object
implements org.junit.jupiter.api.extension.AfterTestExecutionCallback
@ExtendWith(ScreenshotAfterTestFailExtension.class)| Constructor and Description |
|---|
ScreenshotAfterTestFailExtension() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
Take screenshot right after a test has failed and perform a clean up to ensure no dialog or window is opened
|
public void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
afterTestExecution in interface org.junit.jupiter.api.extension.AfterTestExecutionCallbackextensionContext - test run data