Why there is method onTestFinish(ITestResult result) in ITestListener interface?

279 views
Skip to first unread message

Anand Garlapati

unread,
Jan 23, 2013, 12:35:11 PM1/23/13
to testng...@googlegroups.com
Hi All,
Why there is method like onTestFinish(ITestResult result) in ITestListener interface?

Thanks & Regards,
Anand

Anand Garlapati

unread,
Jan 23, 2013, 12:37:31 PM1/23/13
to testng...@googlegroups.com
Sorry typo. Why there NO method like onTestFinish(ITestResult result) in ITestListener interface?

Tomek Kaczanowski

unread,
Jan 23, 2013, 3:09:20 PM1/23/13
to testng...@googlegroups.com
> Sorry typo. Why there NO method like onTestFinish(ITestResult result) in
> ITestListener interface?
Is it really needed when you have these 3?
onTestSkipped(ITestResult result) Invoked each time a test is skipped.
onTestStart(ITestResult result) Invoked each time before a
test will be invoked.
onTestSuccess(ITestResult result) Invoked each time a test succeeds.

--
Regards / Pozdrawiam
Tomek Kaczanowski
http://practicalunittesting.com

Tomek Kaczanowski

unread,
Jan 23, 2013, 3:10:03 PM1/23/13
to testng...@googlegroups.com
instead of onTestStart I meant onTestFailure

--
Tomek

2013/1/23 Tomek Kaczanowski <kaczanow...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages