Skip to content

Add support for capturing videos  #879

Open

Description

Summary

Playwright has the option to record videos that has happened during the creation/deletion of the entire browser context. Since the synthetics runner did not expose them directly, users have to basically resort to passing the recordVideo as playwright option and gather these videos on the test

Proposal

Synthetics agent should natively add support for capturing and exposing the captured videos via the outputDir - #878. To keep this in sync with the screenshots capturing, we should do provide the configuration options

"off" - Defaults to off, Do not record video for the journey run
"on" - Record video for each journey run
"only-on-failure" - Record video only for failed journeys

The captured videos will be exposed via the Attachments Test Results and can be sent as artifacts to the buildkite reporter as an example.

testresults.attachments.forEach((a) => {
    if (a.contentType === "video/webm") {
       console.log(a.name, a.path);
    }
});

Depends on #878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions