标签:
<listeners> <listener class-name="org.uncommons.reportng.HTMLReporter"></listener> <listener class-name="org.uncommons.reportng.JUnitXMLReporter"></listener> </listeners>
4. 运行项目:Run As TestNG Suite
5. 运行结果:
test-ouput目录刷新,产生新的html文件夹,打开下面的index.html文件查看运行结果。
更多参考:http://seleniumeasy.com/testng-tutorials/configuring-reportng-with-testng-to-generate-html-reports
Configuration ReportNG with TestNG
标签:
原文地址:http://www.cnblogs.com/heaven1025/p/4642760.html