com.beust.testng
Interface ITestListener

All Known Implementing Classes:
TestListenerAdapter

public interface ITestListener

A listener for test running.

Author:
Cedric Beust, Apr 29, 2004

Method Summary
 void onFinish(ITestContext context)
          Invoked after all the tests have run and all their Configuration methods have been called.
 void onStart(ITestContext context)
          Invoked after the test class is instantiated and before any configuration method is called.
 void onTestFailedButWithinSuccessPercentage(ITestResult result)
          Invoked each time a method fails but has been annotated with successPercentage and this failure still keeps it within the success percentage requested.
 void onTestFailure(ITestResult result)
          Invoked each time a test fails.
 void onTestSkipped(ITestResult result)
          Invoked each time a test is skipped.
 void onTestSuccess(ITestResult result)
          Invoked each time a test succeeds.
 

Method Detail

onTestSuccess

void onTestSuccess(ITestResult result)
Invoked each time a test succeeds.


onTestFailure

void onTestFailure(ITestResult result)
Invoked each time a test fails.


onTestSkipped

void onTestSkipped(ITestResult result)
Invoked each time a test is skipped.


onTestFailedButWithinSuccessPercentage

void onTestFailedButWithinSuccessPercentage(ITestResult result)
Invoked each time a method fails but has been annotated with successPercentage and this failure still keeps it within the success percentage requested.

Parameters:
result -

onStart

void onStart(ITestContext context)
Invoked after the test class is instantiated and before any configuration method is called.


onFinish

void onFinish(ITestContext context)
Invoked after all the tests have run and all their Configuration methods have been called.