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 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 interface org.junit.jupiter.api.extension.TestExecutionExceptionHandler
      Parameters:
      context - the context of the test execution
      throwable - the exception thrown during the test execution
      Throws:
      Throwable - rethrows the original exception after processing