Rayrun
← Back to Discord Forum

Export tests

hngocanh0216posted in #help-playwright
Open in Discord
hngocanh0216

Hi folks,

Does anyone one know of a way to export all Playwright tests to an external file (speadsheet, json, etc)? Does Playwright even support that at the moment?

Thanks,

This thread is trying to answer question "How can one export all Playwright tests to an external file like a spreadsheet or JSON?"

3 replies

https://playwright.dev/docs/test-cli#reference --list Optionally you can use additionally --reporter json (alternatives: html, junit) Or do you need more?

hngocanh0216

I'll try it out. Thanks!

This questions seems odd, when asking about exporting the PW test to elsewhere... There is 'list" on the npx you can get a list. Or if you want test results look at the AfterEach() you can add. In that you should be able to write the test name and the result.

Related Discord Threads

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 [email protected].