Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 2 个正在运行TestNG的类,A 类有 2 个方法,B 类有一个方法,但是当我通过 A 类和 B 类的套件运行时TestNG,它的运行就像,A 类方法 1 和 2 将运行并与类B它的方法运行并且A类的方法也再次运行y?
TestNG
检查 testNG.xml 文件中的标签,它应该是这样的:
<classes> <class name="A"/> <class name="B"/> </classes>
您可以发布 testNG.xml 文件代码,因为它很容易识别问题。