testng.xml没有一一执行类 [英] testng.xml not executing classes one by one
问题描述
PhFramework.pizzas.bbqMeatFeast.cheesyBites.LargeTest 应该先执行所有测试,然后再继续进行 PhFramework.pizzas.bbqMeatFeast.classicCrust.LargeTest
PhFramework.pizzas.bbqMeatFeast.cheesyBites.LargeTest should execute all tests before proceeding to PhFramework.pizzas.bbqMeatFeast.classicCrust.LargeTest
如果我一次只能执行一个Test Class,那么TestNG似乎正在所有类中执行第一个@Test.
TestNG seems to be executing the first @Test within all the classes, if i execute only one Test Class at a time it works fine.
testng.xml代码:,以下操作将失败,但是如果我删除其中一个类,它将起作用.
testng.xml code: the following will fail, but if i remove one of the classes it works.
请问有人可以引起此问题的原因吗?
Please can somebody advice what could cause this issue?
感谢您的帮助
推荐答案
在您的testng.xml的第4行上,它应该是:
On line no 4 of your testng.xml, it should be:
<suite name="Suite" parallel="tests" preserve-order="true">
这篇关于testng.xml没有一一执行类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!