public static class TestNG.ExitCodeListener
extends java.lang.Object
implements org.testng.internal.IResultListener2
| Constructor and Description |
|---|
TestNG.ExitCodeListener() |
TestNG.ExitCodeListener(TestNG runner) |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeConfiguration(ITestResult tr)
Invoked before a configuration method is invoked.
|
void |
onConfigurationFailure(ITestResult itr)
Invoked whenever a configuration method failed.
|
void |
onConfigurationSkip(ITestResult itr)
Invoked whenever a configuration method was skipped.
|
void |
onConfigurationSuccess(ITestResult itr)
Invoked whenever a configuration method succeeded.
|
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.
|
public TestNG.ExitCodeListener()
public TestNG.ExitCodeListener(TestNG runner)
public void beforeConfiguration(ITestResult tr)
IConfigurationListener2beforeConfiguration in interface IConfigurationListener2public void onTestFailure(ITestResult result)
ITestListeneronTestFailure in interface ITestListenerresult - ITestResult containing information about the run testITestResult.FAILUREpublic void onTestSkipped(ITestResult result)
ITestListeneronTestSkipped in interface ITestListenerresult - ITestResult containing information about the run testITestResult.SKIPpublic void onTestFailedButWithinSuccessPercentage(ITestResult result)
ITestListeneronTestFailedButWithinSuccessPercentage in interface ITestListenerresult - ITestResult containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILUREpublic void onTestSuccess(ITestResult result)
ITestListeneronTestSuccess in interface ITestListenerresult - ITestResult containing information about the run testITestResult.SUCCESSpublic void onStart(ITestContext context)
ITestListeneronStart in interface ITestListenerpublic void onFinish(ITestContext context)
ITestListeneronFinish in interface ITestListenerpublic void onTestStart(ITestResult result)
ITestListenerITestResult is only partially filled with the references to
class, method, start millis and status.onTestStart in interface ITestListenerresult - the partially filled ITestResultITestResult.STARTEDpublic void onConfigurationFailure(ITestResult itr)
IConfigurationListeneronConfigurationFailure in interface IConfigurationListenerIConfigurationListener.onConfigurationFailure(org.testng.ITestResult)public void onConfigurationSkip(ITestResult itr)
IConfigurationListeneronConfigurationSkip in interface IConfigurationListenerIConfigurationListener.onConfigurationSkip(org.testng.ITestResult)public void onConfigurationSuccess(ITestResult itr)
IConfigurationListeneronConfigurationSuccess in interface IConfigurationListenerIConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)