public interface ITestListener extends ITestNGListener
| Modifier and Type | Method and Description |
|---|---|
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 |
onTestStart(ITestResult result)
Invoked each time before a test will be invoked.
|
void |
onTestSuccess(ITestResult result)
Invoked each time a test succeeds.
|
void onTestStart(ITestResult result)
ITestResult is only partially filled with the references to
class, method, start millis and status.result - the partially filled ITestResultITestResult.STARTEDvoid onTestSuccess(ITestResult result)
result - ITestResult containing information about the run testITestResult.SUCCESSvoid onTestFailure(ITestResult result)
result - ITestResult containing information about the run testITestResult.FAILUREvoid onTestSkipped(ITestResult result)
result - ITestResult containing information about the run testITestResult.SKIPvoid onTestFailedButWithinSuccessPercentage(ITestResult result)
result - ITestResult containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILUREvoid onStart(ITestContext context)
void onFinish(ITestContext context)