<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<!-- allow-return-values 默认值为FALSE,表示返回值将被忽略 -->
<suite name="allSuites" allow-return-values="true">
<listeners>
<listener class-name="org.uncommons.reportng.HTMLReporter" />
<listener class-name="org.uncommons.reportng.JUnitXMLReporter" />
</listeners>
<suite-files>
<suite-file path="suite3.xml" />
<suite-file path="testng-customsuite2.xml" />
</suite-files>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<!-- allow-return-values 默认值为FALSE,表示返回值将被忽略 -->
<suite name="allSuites" allow-return-values="true">
<listeners>
<listener class-name="org.uncommons.reportng.HTMLReporter" />
<listener class-name="org.uncommons.reportng.JUnitXMLReporter" />
</listeners>
<suite-files>
<suite-file path="suite3.xml" />
<suite-file path="testng-customsuite2.xml" />
</suite-files>
</suite> <!-- Dudu suite -->
ReportNG listeners必须写 否则无法输出报告