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 ITestResult
ITestResult.STARTED
void onTestSuccess(ITestResult result)
result
- ITestResult
containing information about the run testITestResult.SUCCESS
void onTestFailure(ITestResult result)
result
- ITestResult
containing information about the run testITestResult.FAILURE
void onTestSkipped(ITestResult result)
result
- ITestResult
containing information about the run testITestResult.SKIP
void onTestFailedButWithinSuccessPercentage(ITestResult result)
result
- ITestResult
containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILURE
void onStart(ITestContext context)
void onFinish(ITestContext context)
Copyright © 2015. All rights reserved.