繁体   English   中英

在并行运行它们时,如何设置testNG以忽略同一测试套件中其他类的优先级注释?

[英]How to set testNG to ignore priority annotations of other classes inside the same test suite while running them in parallel?

目前,我知道例如A类中优先级= 1的测试已经完成,现在正在等待B类中优先级= 1的测试完成,然后再继续,这很浪费时间。

我想要的是我的类可以并行运行,但只能在内部优先考虑。

您可以在testng.xml文件中提及相同的testng.xml

对于并行类,您可以使用:

<suite name="My suite" parallel="classes" thread-count="5">

您将在课堂上提到测试用例的优先级。 然后它将起作用。

TestNg提供了更多细节,请通过Testng

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM