Package org.selenide.videorecorder.core
Class SelenideVideoConfiguration
java.lang.Object
org.selenide.videorecorder.core.SelenideVideoConfiguration
- All Implemented Interfaces:
VideoConfiguration
Inspired by Video Recorder from Sergey Pirogov
These settings can be set only once, and only using these two means:
1. via file "selenide.properties", or
2. via system properties (has higher priority)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcrf()CRF operates on a scale from 0 (lossless) to 51 (lowest quality), with lower values indicating higher quality and larger file sizes.intfps()Frames per seconds 24fps is a standard for movies and TV shows, but processing this amount of frames causes too high CPU usage.booleanIs it needed to keep the taken screenshots after the video has been created from them.mode()Should the videos be recorded for all tests, or only for annotated withVideo.saveMode()Should the videos be saved for all tests, or only for failed tests.booleanIs video recording enabled.The folder to save the videos tolongTimeout for processing a video (in milliseconds) Default value: 5 minutes (300000 ms)
-
Constructor Details
-
SelenideVideoConfiguration
public SelenideVideoConfiguration()
-
-
Method Details
-
videoEnabled
public boolean videoEnabled()Description copied from interface:VideoConfigurationIs video recording enabled. Use it to globally disable video recording in all tests (e.g. in some specific environments, build types etc.)- Specified by:
videoEnabledin interfaceVideoConfiguration- Returns:
- true by default
-
videoFolder
Description copied from interface:VideoConfigurationThe folder to save the videos to- Specified by:
videoFolderin interfaceVideoConfiguration- Returns:
- "build/reports/tests" by default
-
mode
Description copied from interface:VideoConfigurationShould the videos be recorded for all tests, or only for annotated withVideo.- Specified by:
modein interfaceVideoConfiguration- Returns:
RecordingMode.ANNOTATEDby default
-
saveMode
Description copied from interface:VideoConfigurationShould the videos be saved for all tests, or only for failed tests.- Specified by:
saveModein interfaceVideoConfiguration- Returns:
VideoSaveMode.FAILED_ONLYby default
-
fps
public int fps()Description copied from interface:VideoConfigurationFrames per seconds 24fps is a standard for movies and TV shows, but processing this amount of frames causes too high CPU usage.- Specified by:
fpsin interfaceVideoConfiguration
-
crf
public int crf()Description copied from interface:VideoConfigurationCRF operates on a scale from 0 (lossless) to 51 (lowest quality), with lower values indicating higher quality and larger file sizes.- Specified by:
crfin interfaceVideoConfiguration
-
videoProcessingTimeout
public long videoProcessingTimeout()Description copied from interface:VideoConfigurationTimeout for processing a video (in milliseconds) Default value: 5 minutes (300000 ms)- Specified by:
videoProcessingTimeoutin interfaceVideoConfiguration
-
keepScreenshots
public boolean keepScreenshots()Description copied from interface:VideoConfigurationIs it needed to keep the taken screenshots after the video has been created from them. Default value: false- Specified by:
keepScreenshotsin interfaceVideoConfiguration
-