Class ScreenShotExtension
- java.lang.Object
-
- co.verisoft.fw.selenium.junit.extensions.ScreenShotExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class ScreenShotExtension extends 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 void
handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable)
If test has failed, take a screenshot and put it in the store
-
-
-
Method Detail
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext extensionContext, Throwable throwable) throws Throwable
If test has failed, take a screenshot and put it in the store- Specified by:
handleTestExecutionException
in interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler
- Parameters:
extensionContext
-throwable
-- Throws:
Throwable
-
-