Failure Reporting and Reproducibility - Recording videos on failures in test framework

More details here: https://docs.google.com/document/d/1kgrr2Qb3rOsgsJGOFU8qSt17m9z4B42pCR7mZ5yN8eI/edit#bookmark=id.479zno1azczd

Q1:

Q2:

Future iterations:

Notes:

The way Selenoid works out of the box is it records the browser container for the duration of it's use. It has no knowledge of the tests running in the browser. The problem with this is the QA framework reuses the browser session for multiple tests so the video would consist of multiple tests. Originally we were going to change to using a separate browser session for each test but found that would add too much time to the overall test runs.

The current solution is to use a fork of the recorder image that doesn't automatically start recording when the browser container is started. This is combined with an API to interact with the browser container and the recorder container to start and stop recording when tests start and stop. This will also only save failed test runs.

Edited by Désirée Chevalier