Rayrun
← Back to videos

Playwright Custom Report | Playwright Tutorial Part 55

Playwright Custom reporters

In this video, the host explains how to use a custom reporter in the Playwright framework. The video begins with an introduction to the custom reporter and the implementation process. The host demonstrates a small test case and explains how to build a custom reporter using the Reporter interface from Playwright. They go on to show how to override the necessary functions and import the required modules.

The host then goes through each function that needs to be overridden and explains its purpose. They demonstrate how to print the test suite title, test start and end, step start and end, and test results. They also show how to access the console logs and errors using the standard output and standard error functions in the reporter.

Throughout the video, the host explains the hierarchy of the test suite, project, and file structure. They also provide explanations of the various properties and methods available in the test suite, test, and step objects.

The host concludes by mentioning that the custom reporter can be used to create custom HTML reporters or perform other actions based on the test results. They also hint at the possibility of creating their own HTML reporter in future videos.

Overall, the video offers a comprehensive explanation of how to use a custom reporter in Playwright and provides insights into the different functionalities and possibilities that it enables.

Related Videos

Playwright Tutorial: Output Console logs as step traces to UI watch Mode & Traceviewer
Playwright Tutorial: Output Console logs as step traces to UI watch Mode & Traceviewer
#16 - ARIA and how Playwright is making use of it to identify UI controls?
#16 - ARIA and how Playwright is making use of it to identify UI controls?
Setup & Re-Use Authentication with Playwright Dependencies!
Setup & Re-Use Authentication with Playwright Dependencies!
How to Code a Test Automation on Youtube | Playwright JS
How to Code a Test Automation on Youtube | Playwright JS
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.