sujata
sujata

Reputation: 21

How to write the code for listeners in TestNG?

I want to know how can i use listeners in my java code? Also what changes are to made in the xml file if i want to incorporate the listeners? I added org.testng.ITestNGListener then too the program is throwing errors?

Upvotes: 2

Views: 7638

Answers (1)

Cedric Beust
Cedric Beust

Reputation: 15608

Do you have any specific questions that are not covered by the documentation:

http://testng.org/doc/documentation-main.html#logging

?

Upvotes: 1

Related Questions