Nightwatch.js video screen recording via ffmpeg
Record videos of Nightwatch.js test sessions, support multiple Operative Systems like MacOs, Windows(cooming soon), Linux.
Uses ffmpeg to capture a (remote) webdriver desktop screen.
Install
npm i nightwatch-record --save
Usage
Add the following beforeEach
/afterEach
or before
/after
hooks:
moduleexports = { startbrowser done; } { ; }
If you are using Mocha test runner, you can use;
; ;
Enable the video screen recording in your test settings:
If your configuration is sending browser.currentTest.results
as undefined,
videoSettings.deleteOnSuccess: true` will not work properly. This object is currently only supported in Nightwatch test runner (https://github.com/nightwatchjs/nightwatch/issues/1104).
Please note that testPassed argument has to be boolean. True in case test passed, false if test failed.
You can send same argument with other test runners as well, if you can gain this variable in the afterEach hook.
License
Released under the MIT license.