Playwright: support embedding Java sources in captured traces
维护者通常 8 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 42/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- java, playwright
- 领域
- testing-qa
调研方向
Start by reading the Playwright tracing configuration and trace attachment path, then inspect how AllurePlaywrightAspect affects trace stack frames. Check Playwright's Tracing.StartOptions().setSources(true) and the PLAYWRIGHT_JAVA_SRC behavior. Done means the opt-in property embeds sources, stacks begin at the first file-backed frame (or skip leading weaving frames when none resolves), and errors attach the trace unchanged.
由索引模型根据 Issue 内容生成。
描述
Problem
Allure configures Playwright tracing with screenshots and snapshots only, so Java sources can't be embedded in captured traces.
Playwright supports this via PLAYWRIGHT_JAVA_SRC and Tracing.StartOptions().setSources(true). But with Allure enabled, frame 0 of every trace stack is synthetic AspectJ weaving glue from AllurePlaywrightAspect, not the real caller. That makes the Trace Viewer's Source tab useless. Playwright only filters its own frames and builds the trace (a .zip) on its binary side, so it can't fix this itself.
Proposal
- Add an opt-in
allure.playwright.trace.sourcesproperty (defaultfalse) that embeds sources in the trace. - Rewrite the
trace.stacksentry so each stack starts at the first file-backed frame. If no frame resolves, strip the leading AspectJ/Playwright weaving frames instead. On any error, attach the trace unchanged.
Implementation: #1450
- 主要语言
- Java
- 星标
- 390
- 派生
- 243
- 平均合并
- 8 天 23 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
allure-framework/allure-java 的其他 Issue
-
AllureSelenide should use Selenide's screenshot implementation instead of Selenium WebDriver's implementation可能已有人在做 @USSQA 于 31 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
allure-framework/allure-java#1439 ·
维护者通常 8 天内回复
-
难度 3/5 1-2 天 新手友好度 50/100
allure-framework/allure-java#1456 ·
维护者通常 8 天内回复
-
AllureSelenide attaches Screenshot and Page source once per nesting level of SelenideLogger.step未关闭
难度 4/5 3-5 天 新手友好度 25/100
allure-framework/allure-java#1453 · 1 个 reaction ·
维护者通常 8 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
allure-framework/allure-java#1451 · 1 条评论 ·
维护者通常 8 天内回复
-
难度 5/5 一周以上 新手友好度 45/100
allure-framework/allure-java#1446 ·
维护者通常 8 天内回复
查看 allure-framework/allure-java 的全部 Issue
相似的 Issue
-
False Negative: InnerTypeLastCheck does not report members declared after inner enums or annotations未关闭
难度 2/5 1-3 小时 新手友好度 78/100
checkstyle/checkstyle#22027 ·
维护者通常 1 天内回复
-
bug follow-up lane:auto
难度 2/5 1-3 小时 新手友好度 85/100
Sanne/incus-spawn#1497 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
[BUG][RUST] chrono date-time path/query/header params are not serialized as RFC 3339可能已有人在做 @teovillanueva 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
OpenAPITools/openapi-generator#25297 ·
维护者通常 1 天内回复
-
[CI] NettyClientTest.testServerDisconnection may fail with DisconnectException可能已有人在做 @yangshangqing95 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复