剧作家 - 如何在运行GlobalTeardown之前如何访问测试结果

发布于 2025-02-13 06:52:55 字数 237 浏览 0 评论 0原文

在剧作家中,在执行了所有测试之后,我正在运行 globalTeardown 文件,该文件将通过进行一系列API调用将所有测试结果发送到外部测试管理工具。

我的目的是访问junit.xml文件并从那里获取临时测试结果,但是问题是该文件直到整个运行结束之前都不会生成,这是在 globaldeardown 呼叫之后。

在跑步结束之前,剧作家有没有办法访问临时测试结果?

In Playwright, after all tests have been executed, I am running a globalTeardown file that would send all of the test results to an external test management tool by making a series of api calls.

My intention was to access the jUnit.xml file and get the temporary test results from there, but the problem is that that file doesn't generate until the entire run is over, which is after the globalTeardown call.

Is there a way with Playwright to access the temporary test results, before the run is over?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文