This thread is trying to answer question "How can an external parameter be added to a test script and passed to a custom reporter generated report?"
Hi, this sounds like a job for annotations: https://playwright.dev/docs/test-annotations#custom-annotations
At least, the part of passing something from the test to the custom reporter.
If you need to pass something custom from command line to the tests, then often environment variables are used. https://playwright.dev/docs/test-parameterize#passing-environment-variables
There are 3 ways I found that collecting data for the custom reporter 1, From the Title https://github.com/cenfun/monocart-reporter#collect-data-from-the-title 2, From the Annotations https://github.com/cenfun/monocart-reporter#collect-data-from-the-annotations 3, From the Comments https://github.com/cenfun/monocart-reporter#collect-data-from-the-comments
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].