Generating videos/screenshots for failed test cases
How to do it...
Recording a video for the test case requires an
- To install this, you need to execute the following command in the terminal (note that this command only works on a Debian-based OS):
apt-get install ffmpeg
- To generate a video or screenshot, you will need to provide a directory location to store the video or screenshots.
- If you want to generate screencast (video) of a test case, use the
--screencastscommand like this:
./odoo-bin -c server.conf -i my_library --test-enable --screencasts=/home/pga/odoo_test/
- If you want to generate screenshots of a test case, use the
--screenshostscommand like this:
./odoo-bin -c server.conf -i my_library --test-enable --screenshots=/home/pga/odoo_test/