我正在运行 TestNG,并且我正在尝试仅运行所有套件附加中的特定组,但只有第一个测试被组过滤。
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Managemenet" parallel="methods" thread-count="100" preserve-order="false" >
<test verbose="2" name="Chen Tests" parallel="tests" thread-count="100" >
<groups>
<define name="Sanity">
<include name="mgmt_sanity"></include>
</define>
<define name="Regression">
<include name="mgmt_regression"></include>
<include name="mgmt_sanity"></include>
</define>
<define name="Smoke">
<include name="mgmt_smoke"></include>
</define>
</groups>
<classes>
<class name="com.chen.auto.mgmt.chenTests">
</class>
</classes>
</test>
<test verbose="2" name="Dudu Tests" parallel="tests" thread-count="100" >
<groups>
<define name="Sanity">
<include name="mgmt_sanity"></include>
</define>
<define name="Regression">
<include name="mgmt_regression"></include>
<include name="mgmt_sanity"></include>
</define>
<define name="Smoke">
<include name="mgmt_smoke"></include>
</define>
</groups>
<classes>
<class name="com.chen.auto.mgmt.dudu">
</class>
</classes>
</test>
</suite>
有一个类似的未决问题,但没有答案。
它看起来像一个错误。结果,即使使用所有并行选项,我也无法使用 ReportNG。
有人如何使它工作?