This thread is trying to answer question "Why is the user unable to POST using Axios in OnTestEnd() in a custom reporter and how can this be resolved?"
In what way does it 'not work'? What are the symptoms? I would expect it to only work reliable in onEnd and in onExit, since those hooks are the only ones that get awaited by Playwright. https://playwright.dev/docs/api/class-reporter
Recently I (think I) solved a problem related to unreliable uploads of artifacts by starting the upload in the onTestEnd but awaiting the promises of those uploads in the onEnd.
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 firstname.lastname@example.org.