As generic automation the process we usually preferred to capture screenshot of either failed automation
test case or screenshot of all test cases as it helps us in debugging and
identifying the exact cause of our test cases.
But there are certain situations
in our project when we are executing our automation test either using selenium
grid or on some remote server or executing as part of the nightly build. In that case
if any error or issue occurred during execution it is very difficult and
cumbersome to troubleshoot that.
In those situations, or to
simply show a demo to the client of our automation script we can video record our
execution using Monte Screen Recorder API.
Monte Screen Recorder is
java library that helps in creating a video recording of our selenium automation
Test.
To use this API we need to
download its jar or maven dependency from this link.
Till now only one version for
this dependency is present and that I am using it for demo purposes.
Now in the below example, I would
be doing a video recording of executing my automation script on google home page
and record that in my project structure inside “automationrecordings” folder.
Below is my generic utility
class that can be called as per our requirement.
Below is my Test Class.
After execution, we would be
able to see video recording generated inside the folder and it can be played
using VLC Player.
is it possible record the video in mp4 format
ReplyI checked on their Offical page as per last update it supports till .mp3 format
ReplyAwesome i loved it and implemented that in my Project too. Point is about purging of old videos how it can be implemented?
ReplyIts not working for Remote Machine. did anyone knows , how to use for remote machine. For Remote machine its taking blank screen.
ReplyIs there a way to get this working with quicktime on mac?
Reply