Package org.testng
Class TestNG.ExitCodeListener
- java.lang.Object
-
- org.testng.TestNG.ExitCodeListener
-
- All Implemented Interfaces:
IConfigurationListener,IConfigurationListener2,IResultListener,IResultListener2,ITestListener,ITestNGListener
- Direct Known Subclasses:
ExitCodeListener
- Enclosing class:
- TestNG
@Deprecated public static class TestNG.ExitCodeListener extends java.lang.Object implements IResultListener2
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description private TestNGm_mainRunnerDeprecated.
-
Constructor Summary
Constructors Constructor Description ExitCodeListener()Deprecated.ExitCodeListener(TestNG runner)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbeforeConfiguration(ITestResult tr)Deprecated.Invoked before a configuration method is invoked.voidonConfigurationFailure(ITestResult itr)Deprecated.Invoked whenever a configuration method failed.voidonConfigurationSkip(ITestResult itr)Deprecated.Invoked whenever a configuration method was skipped.voidonConfigurationSuccess(ITestResult itr)Deprecated.Invoked whenever a configuration method succeeded.voidonFinish(ITestContext context)Deprecated.Invoked after all the tests have run and all their Configuration methods have been called.voidonStart(ITestContext context)Deprecated.Invoked after the test class is instantiated and before any configuration method is called.voidonTestFailedButWithinSuccessPercentage(ITestResult result)Deprecated.Invoked each time a method fails but has been annotated with successPercentage and this failure still keeps it within the success percentage requested.voidonTestFailure(ITestResult result)Deprecated.Invoked each time a test fails.voidonTestSkipped(ITestResult result)Deprecated.Invoked each time a test is skipped.voidonTestStart(ITestResult result)Deprecated.Invoked each time before a test will be invoked.voidonTestSuccess(ITestResult result)Deprecated.Invoked each time a test succeeds.private voidsetHasRunTests()Deprecated.
-
-
-
Field Detail
-
m_mainRunner
private TestNG m_mainRunner
Deprecated.
-
-
Constructor Detail
-
ExitCodeListener
public ExitCodeListener()
Deprecated.
-
ExitCodeListener
public ExitCodeListener(TestNG runner)
Deprecated.
-
-
Method Detail
-
beforeConfiguration
public void beforeConfiguration(ITestResult tr)
Deprecated.Description copied from interface:IConfigurationListener2Invoked before a configuration method is invoked.- Specified by:
beforeConfigurationin interfaceIConfigurationListener2
-
onTestFailure
public void onTestFailure(ITestResult result)
Deprecated.Description copied from interface:ITestListenerInvoked each time a test fails.- Specified by:
onTestFailurein interfaceITestListener- Parameters:
result-ITestResultcontaining information about the run test- See Also:
ITestResult.FAILURE
-
onTestSkipped
public void onTestSkipped(ITestResult result)
Deprecated.Description copied from interface:ITestListenerInvoked each time a test is skipped.- Specified by:
onTestSkippedin interfaceITestListener- Parameters:
result-ITestResultcontaining information about the run test- See Also:
ITestResult.SKIP
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(ITestResult result)
Deprecated.Description copied from interface:ITestListenerInvoked each time a method fails but has been annotated with successPercentage and this failure still keeps it within the success percentage requested.- Specified by:
onTestFailedButWithinSuccessPercentagein interfaceITestListener- Parameters:
result-ITestResultcontaining information about the run test- See Also:
ITestResult.SUCCESS_PERCENTAGE_FAILURE
-
onTestSuccess
public void onTestSuccess(ITestResult result)
Deprecated.Description copied from interface:ITestListenerInvoked each time a test succeeds.- Specified by:
onTestSuccessin interfaceITestListener- Parameters:
result-ITestResultcontaining information about the run test- See Also:
ITestResult.SUCCESS
-
onStart
public void onStart(ITestContext context)
Deprecated.Description copied from interface:ITestListenerInvoked after the test class is instantiated and before any configuration method is called.- Specified by:
onStartin interfaceITestListener
-
onFinish
public void onFinish(ITestContext context)
Deprecated.Description copied from interface:ITestListenerInvoked after all the tests have run and all their Configuration methods have been called.- Specified by:
onFinishin interfaceITestListener
-
onTestStart
public void onTestStart(ITestResult result)
Deprecated.Description copied from interface:ITestListenerInvoked each time before a test will be invoked. TheITestResultis only partially filled with the references to class, method, start millis and status.- Specified by:
onTestStartin interfaceITestListener- Parameters:
result- the partially filledITestResult- See Also:
ITestResult.STARTED
-
setHasRunTests
private void setHasRunTests()
Deprecated.
-
onConfigurationFailure
public void onConfigurationFailure(ITestResult itr)
Deprecated.Description copied from interface:IConfigurationListenerInvoked whenever a configuration method failed.- Specified by:
onConfigurationFailurein interfaceIConfigurationListener- See Also:
IConfigurationListener.onConfigurationFailure(org.testng.ITestResult)
-
onConfigurationSkip
public void onConfigurationSkip(ITestResult itr)
Deprecated.Description copied from interface:IConfigurationListenerInvoked whenever a configuration method was skipped.- Specified by:
onConfigurationSkipin interfaceIConfigurationListener- See Also:
IConfigurationListener.onConfigurationSkip(org.testng.ITestResult)
-
onConfigurationSuccess
public void onConfigurationSuccess(ITestResult itr)
Deprecated.Description copied from interface:IConfigurationListenerInvoked whenever a configuration method succeeded.- Specified by:
onConfigurationSuccessin interfaceIConfigurationListener- See Also:
IConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)
-
-