gpt4 book ai didi

testng - 是否有类似于 Junit 中的 ErrorCollector 的 TestNG 方法

转载 作者:行者123 更新时间:2023-12-01 01:12:29 26 4
gpt4 key购买 nike

是否有类似于 Junit 中的 ErrorCollector 的 TestNG 方法,我们可以通过它在 tesng 中显示错误/执行?

提前感谢

最佳答案

这看起来有点像 SoftAsserts。 TestNG 最近在 6.8 中引入了软断言。

import org.testng.asserts.SoftAssert;

阅读更多@ http://beust.com/weblog/2012/07/29/reinventing-assertions/

关于testng - 是否有类似于 Junit 中的 ErrorCollector 的 TestNG 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14577306/

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