Selenium/How-to/Record videos of test runs

This page will assume you know how to run Selenium tests. If not, see Selenium/Getting Started. Video recording works only on Linux. For example, from Quibble or MediaWiki-Vagrant.

Install dependenciesEdit

sudo apt-get install chromedriver ffmpeg xvfb

Environment variablesEdit

export DISPLAY=:94

Run Selenium testsEdit

Xvfb "$DISPLAY" -screen 0 1280x1024x24 &
npm run selenium

VideosEdit

Videos are usually located in tests/selenium/log/ or log folder. You can play them using a video player like VLC.

ls -1 log/*.mp4

log/BlankPage-should-have-its-title-%40daily.mp4
log/Page-should-be-creatable.mp4
log/Page-should-be-deletable.mp4
log/Page-should-be-editable-%40daily.mp4
log/Page-should-be-previewable.mp4
log/Page-should-be-re-creatable.mp4
log/Page-should-be-restorable.mp4
log/Page-should-be-undoable.mp4
log/Page-should-have-history-%40daily.mp4
log/Special%3ARecentChanges-shows-page-creation.mp4
log/Special%3AWatchlist-should-show-page-with-new-edit.mp4
log/User-should-be-able-to-create-account.mp4
log/User-should-be-able-to-log-in-%40daily.mp4

More informationEdit