Interface VideoConfiguration

All Known Implementing Classes:
SelenideVideoConfiguration

public interface VideoConfiguration
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    crf()
    CRF operates on a scale from 0 (lossless) to 51 (lowest quality), with lower values indicating higher quality and larger file sizes.
    int
    fps()
    Frames per seconds 24fps is a standard for movies and TV shows, but processing this amount of frames causes too high CPU usage.
    boolean
    Is it needed to keep the taken screenshots after the video has been created from them.
    Should the videos be recorded for all tests, or only for annotated with Video.
    Should the videos be saved for all tests, or only for failed tests.
    boolean
    Is video recording enabled.
    The folder to save the videos to
    long
    Timeout for processing a video (in milliseconds) Default value: 5 minutes (300000 ms)
  • Method Details

    • videoEnabled

      boolean videoEnabled()
      Is video recording enabled. Use it to globally disable video recording in all tests (e.g. in some specific environments, build types etc.)
      Returns:
      true by default
    • videoFolder

      String videoFolder()
      The folder to save the videos to
      Returns:
      "build/reports/tests" by default
    • mode

      Should the videos be recorded for all tests, or only for annotated with Video.
      Returns:
      RecordingMode.ANNOTATED by default
    • saveMode

      VideoSaveMode saveMode()
      Should the videos be saved for all tests, or only for failed tests.
      Returns:
      VideoSaveMode.FAILED_ONLY by default
    • fps

      int fps()
      Frames per seconds 24fps is a standard for movies and TV shows, but processing this amount of frames causes too high CPU usage.
    • crf

      int crf()
      CRF operates on a scale from 0 (lossless) to 51 (lowest quality), with lower values indicating higher quality and larger file sizes.
    • videoProcessingTimeout

      long videoProcessingTimeout()
      Timeout for processing a video (in milliseconds) Default value: 5 minutes (300000 ms)
    • keepScreenshots

      boolean keepScreenshots()
      Is it needed to keep the taken screenshots after the video has been created from them. Default value: false