Hi Ashish,
I was practicing the Data Driven Framework. I had registered the Custom Listener and ExtentReporterNG(For Extent Reports) in the TestNg.xml.
When I run the test from eclipse, I observed that the Custom Listener was not called (I did not get the messages from Custum Lister.Java file ) even if its registered (registered in pom.xml )but ExtentReporterNG was called and generating Extent.html reports. And when I commented the ExtentReporterNG(from pom.xml) , and run the textng.xml from eclipse, Customer listener was called and generating the Report.xlsx files and not the extent reports (because ExtentReporterNG was commented) etc.
So my doubt is can we register 2 listeners at the same time ( 2 listeners in this scenario are 1. CustomListener.java 2. ExtentReporterNG.java)?
Hope its clear now.
[quote:14zu2elz]So my doubt is can we register 2 listeners at the same time ( 2 listeners in this scenario are 1. CustomListener.java 2. ExtentReporterNG.java)?
[/quote:14zu2elz]
i have not tried it but i don't think there should be any trouble.