--------------------------------------------
S M Humayun
Software Architect, IBL Group
--------------------------------------------
Email : smhu...@iblgrp.com
MSN : smhuma...@hotmail.com
Skype : smhumayun
Cell : 92.321.8707783
Blog : http://smhumayun.blogspot.com
Link : http://www.linkedin.com/in/smhumayun
Facebook : http://www.facebook.com/smhumayun
Twitter : http://twitter.com/smhumayun
--------------------------------------------
Is there a way to attach one or more TestNG listeners via annotations?
I've been forced to create a testng.xml file just because I had to
attach a listener otherwise annotations were doing just fine for me.
Why all annotations have to be tied to a specific "test" class? can't
we have @Listener annotation for those "non test" classes which
implements one or more of the listener interfaces? making sure that
the annotations defined in those classes have a "global" impact on
testing environment or context?
Hi borojevic,
You've got a point and may be I'm wrong but shouldn't code maintenance
and governance be handled via other means? for example, what would you
do if one of your team member add one or more listeners to your
testng.xml file? how would you detect this? and more importantly how
would you protect this?