Rayrun
← Back to Discord Forum

playwright HTML report

Hello Team, We're trying to change default HTML report file name generated by playwright from index.html to e2ereport_datetimestamp, by using outputFile property in `playwright.config file, const { devices } = require('playwright');

reporter: [[ ['html', { outputFile: e2ereport_${new Date().toISOString()}.html }]],

But somehow its still generating index.html file on local, can some please suggest if anything missing here?

This thread is trying to answer question "How to change the default HTML report file name in Playwright to include a timestamp?"

3 replies

I don't think html reporter has outputFile property, it has outputFolder though

Html reporter generates folder with several files in it (traces, videos), not just .html, so it makes sense

@kremennik: Thank you! Tried using outputFolder property with datetimestamp and its working.

Thank you! Tried using outputFolder property with datetimestamp and its working.

TwitterGitHubLinkedIn
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.