A jasmine2 reporter to capture a video screen cast of Protractor specs run with xvfb
npm install protractor-video-reporterDISPLAY enviroment variable.
baseDirectory (string): The path to the directory where videos are stored. If not existing, it gets created. Required.
singleVideo (bool): If true, will create a single video file for all the specs. Defaults to true.
baseDirectory/protractor-specs.mov.
singleVideo is false, the reporter will create a separate video file for every spec and place it under the baseDirectory.
singleVideoPath.
singleVideoPath: (string, function):
uuid (default): Each spec video file will be placed at baseDirectory/{some random UUID}.mov.
fullName: Each spec video will be placed at baseDirectory/{spec full name} - {spec status}.mov.
specStarted.
createSubtitles (bool): If true and singleVideo is also true, will create a SRT subtitles file with the name details of the currently running spec. Defaults to true.
baseDirectory/protractor-specs.srt.
saveSuccessVideos (bool): If true, will save the videos of the succussfull specs, as well as the failed specs. This has no effect if singleVideo is true - we'll always capture all the specs then. Defaults to false.
ffmpegCmd (string): The command used to execute ffmpeg, e.g. '/usr/bin/ffmpeg'. Defaults to 'ffmpeg'.
ffmpegArgs (array): The argumetns passed to ffmpeg, not including the actual output file which will be appended. Defaults to:
[
'-y',
'-r', '30',
'-f', 'x11grab',
'-s', '1024x768',
'-i', process.env.DISPLAY,
'-g', '300',
'-vcodec', 'qtrle',
]
`
Debugging
If you encouter any issues with the reporter, e.g. video files are not created,
turn on debugging by settings the DEBUG environment to protractor-video-reporter`.