allure-js icon indicating copy to clipboard operation
allure-js copied to clipboard

Playwright Trace not show in python (trace attachment#2964)

Open ofirlupa opened this issue 2 months ago • 2 comments

I saw that you added the option to display the trace report directly from the Allure report. pw trace attachment#2964 https://github.com/allure-framework/allure2/pull/2964/commits

I downloaded version Allure 2.35.1, and I don’t see the option in the report.

This is how I attach the report, and it’s only available for download. See the code.

test_name = request.node.name trace_path = "trace.zip" browser_context.tracing.stop(path=trace_path) allure.attach.file(trace_path,name=test_name + ".zip",attachment_type="playwright-trace")

ofirlupa avatar Sep 25 '25 08:09 ofirlupa

The correct type for Playwright Trace is application/vnd.allure.playwright-trace

baev avatar Sep 26 '25 12:09 baev

@baev

allure.attach.file(trace_path,name=test_name + ".zip",attachment_type="application/vnd.allure.playwright-trace")

Hey thank you now its work

there is bug its open in the second time

ofirlupa avatar Sep 28 '25 07:09 ofirlupa