Allure 报告将测试和测试步骤标记为通过,但也表明结果未知?
我的魅力报告将我的测试和所有步骤标记为已通过,但报告中扩展测试步骤的箭头标记为紫色,据我所知,这表明结果未知(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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
事实证明,这是由于我们的测试步骤在执行过程中未结束所致。一旦我们添加了一个额外的 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.
在测试脚本的“describe”块中添加一个Uniquename,并添加“done”方法来执行所有弯曲测试脚本的执行。
例子:
描述('登录套件', async () => {
// 在测试套件开始处执行一段代码
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