Class VideoRecorderExtension

java.lang.Object
org.selenide.videorecorder.junit5.VideoRecorderExtension
All Implemented Interfaces:
org.junit.jupiter.api.extension.AfterTestExecutionCallback, org.junit.jupiter.api.extension.BeforeTestExecutionCallback, org.junit.jupiter.api.extension.Extension

public class VideoRecorderExtension extends Object implements org.junit.jupiter.api.extension.BeforeTestExecutionCallback, org.junit.jupiter.api.extension.AfterTestExecutionCallback
Created by Serhii Bryt 07.05.2024 11:57
  • Constructor Details

    • VideoRecorderExtension

      public VideoRecorderExtension()
  • Method Details

    • beforeTestExecution

      public void beforeTestExecution(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      beforeTestExecution in interface org.junit.jupiter.api.extension.BeforeTestExecutionCallback
    • afterTestExecution

      public void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context)
      Specified by:
      afterTestExecution in interface org.junit.jupiter.api.extension.AfterTestExecutionCallback
    • afterTestExecution

      protected void afterTestExecution(org.junit.jupiter.api.extension.ExtensionContext context, boolean testFailed)
    • getRecordedVideo

      public static Optional<Path> getRecordedVideo()