Not getting report of TestNG in ReportNG

心已入冬 提交于 2019-12-30 10:36:06

问题


I am executing testng in eclipse and I want generate the report in reportNG. For that I have inlcuded guice-3.0,reportng-1.1.3,velocity-dep-1.4 jar files and added listeners in xml file Also I have disable the default TestNG listener in eclipse. After all that I am not getting the report in ReportNG. What else I have to do?

This is the xml code....

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">  

<suite name="Registration" verbose="1" preserve-order="true">

<parameter name="Suitename" value="Registration" />

   <listeners>
    <listener class-name="org.uncommons.reportng.HTMLReporter" />
     <listener class-name="org.uncommons.reportng.JUnitXMLReporter" />
  </listeners>

 <test name="Search">
    <classes>
    <class name="com.tcs.medmantra.reg.Search"/>
  </classes>
 </test> 

</suite> 

Thanks in advance.....


回答1:


  1. You have to first run the tests by running the testng.xml as TestNG suite.

  2. Then after that refresh the project.

  3. Now goto the test-output folder -->html-->index.html (Open with Web Browser).



来源:https://stackoverflow.com/questions/19994740/not-getting-report-of-testng-in-reportng

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!