Query on Extent Report | Selenium Forum
M
Posted on 15/03/2016
If we compare all the reports (testNg, xslt and extent etc) it seems extent report is the best one.
1. Could you please guide me how to integrate extent report with the core framework without custom listener and need extent logs too?
2. If we use extent report, do we still need custom listener, log4j and excel report which we are generating inside the target folder?

M
Replied on 16/03/2016

1. go to this link <http://relevantcodes.com/testng-listener-using-extentreports/>
2. create class "ExtentReporterNG". This is Listener class and put second block code in it from upper link and save it.
3. put ExtentReporterNG this listener in your testneg.xml. change package name with your package name.
<listeners>
<listener class-name="package.ExtentReporterNG" />
</listeners>
4. Add dependency in you POM.xml
<!-- Extent Reports -->
<dependency>
<groupId>com.relevantcodes</groupId>
<artifactId>extentreports</artifactId>
<version>2.40.1</version>
</dependency>

5. now open cmd prompt and go to your project location and run command "mvn compile" and after it run "mvn package"
6. go in eclipse and refresh your project and run your testng.xml
7. after running refresh your project and check report in test output folder.
8. a folder generate with your class name. check extent.html in it and open this in web browser.