Open radekBednarik opened 4 years ago
Hi @radekBednarik !
Try to completely reinstall all dependencies related to @reportportal/agent-js-mocha
.
We have already fixed the same issue in the @reportportal/client-javascript
v5.0.2 (https://github.com/reportportal/client-javascript/releases/tag/v5.0.2).
Hi @AmsterGet , npm update and clean-install did not help. However, after completely reinstalling this plugin, error is gone.
However, after the test run finishes, I do not see the screenshot in attachments of failed test cases.
Hi @radekBednarik
did you find a way to get this working?
Hi @bbung no, I did not. And since it was in the scope of the PoC project, I just dropped it, since I got no further reaction here. Best Radek
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