Do not get TestNG report in ReportNG

I am running testng in eclipse and I want to create a report in reportNG. To do this, I included files guice-3.0, reportng-1.1.3, jar files speed-dep-1.4 and added listeners to the xml file. I also disabled the default TestNG listener in eclipse. In the end, I do not get a report in ReportNG. What else do I need 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.

+3
source share
1 answer
  • You must first run the tests by running testng.xmlas TestNG suite.

  • Then after that, update the project.

  • Now go to the folder test-output -->html-->index.html (Open with Web Browser).

+6
source

All Articles