-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to log screenshots #44
Comments
Hi @radekBednarik ! |
Hi @AmsterGet , However, after the test run finishes, I do not see the screenshot in attachments of failed test cases. |
did you find a way to get this working? |
Hi @bbung |
Hello,
currently I have been experimenting with ReportPortal together with Playwright library running on Mocha.js.
Out-of-the-box reports are running very nice.
One big issue, which I was not able to solve, is logging screenshots. I (hopefully) followed Readme on this repo, so my approach is as follows:
I have a afterEach() hook:
And then I have created a Reporter module, like this:
Now, when I run tests, I will get following error to the console, test run needs to be forcefully shutdown on my side and in the dashboard as well:
I am 100% sure, that I have converted the screenshot buffer to base64 string.
Can you please look into this?
Also, the experimental repo is public, in case you need/want to have detailed look, see dev branch at https://github.com/Tesena-smart-testing/playwright-js-template-project.
Cheers
RB
The text was updated successfully, but these errors were encountered: