DEV Community


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

mwickrmanayaka profile image
Manul wickrmanayaka Author

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