DEV Community

Discussion on: How to use Extent Reports with TestNG in Selenium Java

Collapse
 
mwickrmanayaka profile image
Manul wickrmanayaka

Hi Anand, Thank you for your feedback.
Yes it would be better to pass ExtentReports instance in TestNG ITestListener methods.
And you can also try Creating a class implementing "IReporter" listener which is defined in the testng.xml file.

Find the explanation below
stackoverflow.com/questions/583915...