Allure 报告将测试和测试步骤标记为通过,但也表明结果未知?

发布于 2025-01-16 03:08:45 字数 372 浏览 3 评论 0原文

我的魅力报告将我的测试和所有步骤标记为已通过,但报告中扩展测试步骤的箭头标记为紫色,据我所知,这表明结果未知(css 类表明了这一点)。

这种情况仅发生在少数测试中(大多数其他测试都有一个绿色箭头用于扩展),但我无法真正看到模式,因为它们使用不同类型的断言。此外,当 allure 将测试结果标记为未知时,我找不到好的信息。

有什么想法吗?

我正在使用 WDIO 和最新的 allure (7.16.14)

在此处输入图像描述

My allure report is marking my test and all steps as passed but the arrow to expand the test steps in the report is marked purple which I understand indicates an unknown result (css classes indicate this).

This only occurs for a few tests (most others have a green arrow for expand) but I can't really see a pattern as they use different types of assertions. Additionally I can't find good information when allure marks a test result as unknown.

Any ideas?

I am using WDIO and the latest allure (7.16.14)

enter image description here

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

韵柒 2025-01-23 03:08:45

事实证明,这是由于我们的测试步骤在执行过程中未结束所致。一旦我们添加了一个额外的 endStep 调用,它就可以正常工作了。

This turned out to be caused by us having test steps which were not ended during our execution. Once we added an additional endStep call it is working correctly.

各自安好 2025-01-23 03:08:45

在测试脚本的“describe”块中添加一个Uniquename,并添加“done”方法来执行所有弯曲测试脚本的执行。
例子:
描述('登录套件', async () => {
// 在测试套件开始处执行一段代码

before("init", async (done) => {
   await loginExecution() 
   done;
    
});

Add a Uniquename in the test script in the 'describe' block and add the 'done' method to execute all the bending test scripts execution.
Example:
describe('login suite ', async () => {
// Execute a block of code at the start of the test suite

before("init", async (done) => {
   await loginExecution() 
   done;
    
});
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文