|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.testng.TestNG.ExitCodeListener
public static class TestNG.ExitCodeListener
Constructor Summary | |
---|---|
TestNG.ExitCodeListener()
|
|
TestNG.ExitCodeListener(TestNG runner)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestNG.ExitCodeListener()
public TestNG.ExitCodeListener(TestNG runner)
Method Detail |
---|
public void beforeConfiguration(ITestResult tr)
IConfigurationListener2
beforeConfiguration
in interface IConfigurationListener2
public void onTestFailure(ITestResult result)
ITestListener
onTestFailure
in interface ITestListener
result
- ITestResult
containing information about the run testITestResult.FAILURE
public void onTestSkipped(ITestResult result)
ITestListener
onTestSkipped
in interface ITestListener
result
- ITestResult
containing information about the run testITestResult.SKIP
public void onTestFailedButWithinSuccessPercentage(ITestResult result)
ITestListener
onTestFailedButWithinSuccessPercentage
in interface ITestListener
result
- ITestResult
containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILURE
public void onTestSuccess(ITestResult result)
ITestListener
onTestSuccess
in interface ITestListener
result
- ITestResult
containing information about the run testITestResult.SUCCESS
public void onStart(ITestContext context)
ITestListener
onStart
in interface ITestListener
public void onFinish(ITestContext context)
ITestListener
onFinish
in interface ITestListener
public void onTestStart(ITestResult result)
ITestListener
ITestResult
is only partially filled with the references to
class, method, start millis and status.
onTestStart
in interface ITestListener
result
- the partially filled ITestResult
ITestResult.STARTED
public void onConfigurationFailure(ITestResult itr)
IConfigurationListener
onConfigurationFailure
in interface IConfigurationListener
IConfigurationListener.onConfigurationFailure(org.testng.ITestResult)
public void onConfigurationSkip(ITestResult itr)
IConfigurationListener
onConfigurationSkip
in interface IConfigurationListener
IConfigurationListener.onConfigurationSkip(org.testng.ITestResult)
public void onConfigurationSuccess(ITestResult itr)
IConfigurationListener
onConfigurationSuccess
in interface IConfigurationListener
IConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |