Class DevtoolsExtensionClass
java.lang.Object
co.verisoft.fw.selenium.junit.extensions.devtoolsExtension.DevtoolsExtensionClass
- All Implemented Interfaces:
org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.TestExecutionExceptionHandler
public class DevtoolsExtensionClass
extends Object
implements org.junit.jupiter.api.extension.TestExecutionExceptionHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
handleTestExecutionException
(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) Handles exceptions thrown during the execution of a test.
-
Constructor Details
-
DevtoolsExtensionClass
public DevtoolsExtensionClass()
-
-
Method Details
-
handleTestExecutionException
public void handleTestExecutionException(org.junit.jupiter.api.extension.ExtensionContext context, Throwable throwable) throws Throwable Handles exceptions thrown during the execution of a test. This method processes network and console data from available WebDriver instances and generates JSON reports for each driver.- Specified by:
handleTestExecutionException
in interfaceorg.junit.jupiter.api.extension.TestExecutionExceptionHandler
- Parameters:
context
- the context of the test executionthrowable
- the exception thrown during the test execution- Throws:
Throwable
- rethrows the original exception after processing
-