Testng Examples - Listener class is ignored | Selenium Forum
A
Archana Sivaraman Venkatesan Posted on 03/05/2021

Hello,


I am practising the listner class which is explained in Testng module. Listner class is ignored and I am not getting the failure or success message that is coded in the Listerner class. I have attached the testng.xml(where the listener class is registered) and other classes along with this message. I have attached the output as well. Just to let you know, I ran it as a Testng suite from the testng.xml and still the listener class is ignored.

 

Thanks

Archana


A
Ashish Thakur Replied on 18/05/2021

I am sorry for late reply. I was not well

Listener is only called when you

1) Register listener in testng.xml

2) You call the test from testng.xml