rockmelonqa / rockmelonqa-ide

Test Automation IDE that generates and runs Playwright and Selenium code
MIT License
4 stars 3 forks source link

Take video recording of tests #169

Closed veebs closed 1 year ago

veebs commented 1 year ago

See docs: https://playwright.dev/docs/videos and https://playwright.dev/dotnet/docs/api/class-video

Note that Dotnet is different to node which is different to java.

Add a flag in the environment config called RecordVideoMode

For dotnet, instance the browserContext with the correct recordVideo option depending on the environment setting. When a test finishes, keep the video depending on the enivronment setting.

For playwrite tests in Node.js, video is already natively supported as per the documentation

brogreenmoon commented 1 year ago

Passed. This is working well.

When no environment file is present the default is RetainOnFailure, which I think makes sense.