I thought it would be pretty handy to have video recordings of my test executions.

If you don’t want to go through all the trouble and you’re looking for a quick solution, just use Endtest,

Without further ado, here is the code:

While this approach works great if you’re running on Ubuntu, those of you running on Windows need to install VNC.

Another issue is that the entire Desktop is recorded, which can be a bit annoying, especially if you’re running multiple applications and tests on the same machine.

I got frustrated and tried to record only the browser window, I tried several approaches with pywin32, pywinauto and many more.

Sadly, none of them proved to be useful in this case.

Another small issue is the size of the video, it tends to get pretty huge, so you might have to run it through an encoder before attaching it to emails or tickets.

I still don’t understand how Endtest can record only the browser window and provide such high quality videos that have a really small size.

For example, 3 minutes of video recording takes up about 3 MB, which is insanely efficient.