Recording videos of tests using Monte Media Library in Java
In Java, we can extend Selenium WebDriver test scripts to record videos by using an open source tool named Monte Media Library. The Monte Media Library developed by Werner Randelshofer is an open source tool available under Creative Commons Attribution License.
In this recipe, we will explore how to configure and use the Monte Media Library's ScreenRecorder
class with Selenium to record movies of tests.
ScreenRecoder
supports the AVI and QuickTime formats for recording movies. For playing movies in AVI format, you will need to install Techsmith Screen Capture Codec (TSCC Codec)
while QuickTime format is supported by Apple's QuickTime player. ScreenRecorder
provides multiple configurations for colors, mouse cursor, screen rate, mouse rate, audio, and so on.
Getting ready
Go to Monte Media Library's home page http://www.randelshofer.ch/monte/index.html and download the
ScreenRecorder.jar
file. In this recipe, version 0.7 is used.Add...