我在 testng 中使用同一类的两种方法,但它不允许我这样......它给出了异常
org.testng.TestNGException:在:[DynamicGraph 中找不到空闲节点
我的 testng 文件是
<test name="User Data" preserve-order="true">
<classes>
<class name="LoginTest">
<methods>
<include name="Login" />
</methods>
</class>
<class name="xtr.chaut.test.PatientProfileTest">
<methods>
<include name="openPatientProfile"></include>
<include name="checkUserData"></include>
</methods>
</class>
<class name="xtr.chaut.test.Login">
<methods>
<include name="logout"></include>
</methods>
</class>
</classes>
这里的登录和注销方法来自同一个类
请给我任何解决方案
提前致谢
看来每个类只能在列表中声明一次,即使每个声明中包含不同的方法,否则您将看到此错误消息:( 使用最新的 TestNG 6.8.8。我能够让它与 @ 一起使用Test(priority=#) 以及每个测试方法的特定优先级。请参阅http://testng.org/doc/documentation-main.html#annotations http://testng.org/doc/documentation-main.html#annotations.
我的用例:实体的粗略测试。每个实体都有自己的带有 4 个方法的测试类(因此我只能单独测试单个实体 CRUD),但我也想运行整个套件(由于完整性约束和生成的 ID 密钥不同,除非它们运行在完全正确的顺序)。
同样的问题在获取 org.testng.TestNGException:在以下位置找不到空闲节点:[DynamicGraph 异常 https://stackoverflow.com/questions/18737442/getting-org-testng-testngexception-no-free-nodes-found-indynamicgraph-excepti.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)