Skip to content
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

Attaching playwright report (trace) to report portal #105

Open
sushmithasv opened this issue Jun 12, 2023 · 2 comments
Open

Attaching playwright report (trace) to report portal #105

sushmithasv opened this issue Jun 12, 2023 · 2 comments
Assignees

Comments

@sushmithasv
Copy link

Do we have an option to attach playwright report i.e, index.html file into report portal using report portal agent?
Currently with the available option , we are able to attach snapshots, traces and videos. It would be good if we have an option to attach html report.

@AmsterGet
Copy link
Member

Hello @sushmithasv !
Thanks for reaching us.
Referring to a similar issue - #72 we don't have support to view Playwright trace reports.
If you enable tracing, a trace.zip archive will be attached to the log item and you can download it on demand to view the report locally.
As a workaround for viewing the playwright's report on the side of the reportportal, you can put all the assets in an HTML file and upload it as an attachment. This should be a single HMTL file, as we place all attachments by their ID in the file storage, so references to resources in HTML such as CSS, JS, images may not work as they usually refer to relative file system paths.

@AmsterGet AmsterGet self-assigned this Jun 17, 2023
@AmsterGet AmsterGet changed the title Attaching playwright report to report portal Attaching playwright report (trace) to report portal Oct 22, 2024
@AmsterGet
Copy link
Member

Can be potentially solved by using the https://playwright.dev/docs/trace-viewer#viewing-remote-traces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants