microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.39k stars 3.63k forks source link

[Feature] Test attachments in for test file and seen in HTML report #12586

Closed JuanCruzTrinidad closed 2 years ago

JuanCruzTrinidad commented 2 years ago

Test attachments only valid in test scope. Created attachments in test file, for example attach screenshot in before all navigation or video record.

It is great idea seen attachments test file in HTML report, video reproductor by the suite and screenshots or json files evidence.

yury-s commented 2 years ago

Test attachments only valid in test scope.

Test reporter has access to all the attachments and can display them. Is your request about custom attachments and showing them in the built-in html reporter? Please explain your request.

JuanCruzTrinidad commented 2 years ago

Exactly my request is the ability to attach files to a test suite or test archive. And that these are visible from the HTML report.

pavelfeldman commented 2 years ago

It is unclear what you mean by that, you can already use test.info().attach for that. Please feel free to open a new issue if this does not address your use case!

shashankkvs309668 commented 2 years ago

Can someone please help me on this for playwright html reporter, Why iam getting this error as Missing attachment "screenshot" when executing this image

VijayUsingGitHub commented 9 months ago

Any update on shashankkvs309668 issue. am also facing same problem.