not able to use ITestlistener

190 views
Skip to first unread message

Abhishek

unread,
Aug 13, 2021, 1:55:27 AM8/13/21
to testng...@googlegroups.com
HI,
I am not able to use ITestlistener
when I write code as below
i was expecting that i should get an error saying , add unimplemented methods but not its not getting.
image.png

⇜Krishnan Mahadevan⇝

unread,
Aug 13, 2021, 1:57:25 AM8/13/21
to testng-users
If you are using the TestNG 7.x series, you won't be seeing that error any more because TestNG became JDK8 compliant with the 7.x series and we started leveraging default methods in interfaces for all TestNG listeners. So now all listeners have default implementations (no operation) for all its methods. You now need to implement only what you want to customise as behavior.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribblings @ https://rationaleemotions.com/


--
You received this message because you are subscribed to the Google Groups "testng-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to testng-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/testng-users/CAKSLu4DqZ_u%2B%2BhAU_Aq-ztuiaLTB9%2BHD3kAZ%2BBkWbUk6CROoNg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages