gpt4 book ai didi

java - 测试NG XML : Groups still being executed although failure occurred in the dependent group

转载 作者:行者123 更新时间:2023-12-01 18:20:17 25 4
gpt4 key购买 nike

我已经设置了我的 xml,因此它将运行依赖于不同组才能运行的组。当不同的组失败时,我希望这些组不会运行,但它仍在运行。这是我的代码:

<test name="Test1">
<parameter name="testedApp" value="someValue"/>
<groups>
<run>
**<include name="Test1"/>**
<exclude name="TestX"/>
<exclude name="TextY"/>
</run>
<dependencies>
<!-- Service Health Check -->
**<group name="Test1" depends-on="ServiceHealthCheck"/>**
</dependencies>
</groups>
<packages>
<package name="project.auto.tests.api...*"/>(package)
</packages>
<classes>
<!-- Service Health Check -->
<class name=".....PbServiceHealthCheckTest"/>(class)
</classes>
</test>

最佳答案

解答:TestNG 6.14.3 有一个错误,导致“依赖”无法正常工作。升级到 TestNG 7.1.0 解决了该问题。

关于java - 测试NG XML : Groups still being executed although failure occurred in the dependent group,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60304444/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com