Class ScreenShotExtension
- java.lang.Object
-
- co.verisoft.fw.selenium.junit.extensions.ScreenShotExtension
-
- All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterTestExecutionCallback,org.junit.jupiter.api.extension.Extension
public class ScreenShotExtension extends Object implements org.junit.jupiter.api.extension.AfterTestExecutionCallback
-
-
Constructor Summary
Constructors Constructor Description ScreenShotExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterTestExecution(org.junit.jupiter.api.extension.ExtensionContext extensionContext)If test has failed, take a screenshot and put it in the store
-
-
-
Method Detail
-
afterTestExecution
public void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws ExceptionIf test has failed, take a screenshot and put it in the store- Specified by:
afterTestExecutionin interfaceorg.junit.jupiter.api.extension.AfterTestExecutionCallback- Parameters:
extensionContext-- Throws:
Exception
-
-