public interface ITestListener extends ITestNGListener
Modifier and Type | Method and Description |
---|---|
default void |
onFinish(ITestContext context)
Invoked after all the tests have run and all their Configuration methods have been called.
|
default void |
onStart(ITestContext context)
Invoked after the test class is instantiated and before any configuration method is called.
|
default 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.
|
default void |
onTestFailedWithTimeout(ITestResult result)
Invoked each time a test fails due to a timeout.
|
default void |
onTestFailure(ITestResult result)
Invoked each time a test fails.
|
default void |
onTestSkipped(ITestResult result)
Invoked each time a test is skipped.
|
default void |
onTestStart(ITestResult result)
Invoked each time before a test will be invoked.
|
default void |
onTestSuccess(ITestResult result)
Invoked each time a test succeeds.
|
default 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
default void onTestSuccess(ITestResult result)
result
- ITestResult
containing information about the run testITestResult.SUCCESS
default void onTestFailure(ITestResult result)
result
- ITestResult
containing information about the run testITestResult.FAILURE
default void onTestSkipped(ITestResult result)
result
- ITestResult
containing information about the run testITestResult.SKIP
default void onTestFailedButWithinSuccessPercentage(ITestResult result)
result
- ITestResult
containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILURE
default void onTestFailedWithTimeout(ITestResult result)
result
- ITestResult
containing information about the run testdefault void onStart(ITestContext context)
default void onFinish(ITestContext context)