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 TestNG
m_mainRunner
Deprecated.
-
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 void
beforeConfiguration(ITestResult tr)
Deprecated.Invoked before a configuration method is invoked.void
onConfigurationFailure(ITestResult itr)
Deprecated.Invoked whenever a configuration method failed.void
onConfigurationSkip(ITestResult itr)
Deprecated.Invoked whenever a configuration method was skipped.void
onConfigurationSuccess(ITestResult itr)
Deprecated.Invoked whenever a configuration method succeeded.void
onFinish(ITestContext context)
Deprecated.Invoked after all the tests have run and all their Configuration methods have been called.void
onStart(ITestContext context)
Deprecated.Invoked after the test class is instantiated and before any configuration method is called.void
onTestFailedButWithinSuccessPercentage(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.void
onTestFailure(ITestResult result)
Deprecated.Invoked each time a test fails.void
onTestSkipped(ITestResult result)
Deprecated.Invoked each time a test is skipped.void
onTestStart(ITestResult result)
Deprecated.Invoked each time before a test will be invoked.void
onTestSuccess(ITestResult result)
Deprecated.Invoked each time a test succeeds.private void
setHasRunTests()
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:IConfigurationListener2
Invoked before a configuration method is invoked.- Specified by:
beforeConfiguration
in interfaceIConfigurationListener2
-
onTestFailure
public void onTestFailure(ITestResult result)
Deprecated.Description copied from interface:ITestListener
Invoked each time a test fails.- Specified by:
onTestFailure
in interfaceITestListener
- Parameters:
result
-ITestResult
containing information about the run test- See Also:
ITestResult.FAILURE
-
onTestSkipped
public void onTestSkipped(ITestResult result)
Deprecated.Description copied from interface:ITestListener
Invoked each time a test is skipped.- Specified by:
onTestSkipped
in interfaceITestListener
- Parameters:
result
-ITestResult
containing information about the run test- See Also:
ITestResult.SKIP
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(ITestResult result)
Deprecated.Description copied from interface:ITestListener
Invoked each time a method fails but has been annotated with successPercentage and this failure still keeps it within the success percentage requested.- Specified by:
onTestFailedButWithinSuccessPercentage
in interfaceITestListener
- Parameters:
result
-ITestResult
containing information about the run test- See Also:
ITestResult.SUCCESS_PERCENTAGE_FAILURE
-
onTestSuccess
public void onTestSuccess(ITestResult result)
Deprecated.Description copied from interface:ITestListener
Invoked each time a test succeeds.- Specified by:
onTestSuccess
in interfaceITestListener
- Parameters:
result
-ITestResult
containing information about the run test- See Also:
ITestResult.SUCCESS
-
onStart
public void onStart(ITestContext context)
Deprecated.Description copied from interface:ITestListener
Invoked after the test class is instantiated and before any configuration method is called.- Specified by:
onStart
in interfaceITestListener
-
onFinish
public void onFinish(ITestContext context)
Deprecated.Description copied from interface:ITestListener
Invoked after all the tests have run and all their Configuration methods have been called.- Specified by:
onFinish
in interfaceITestListener
-
onTestStart
public void onTestStart(ITestResult result)
Deprecated.Description copied from interface:ITestListener
Invoked each time before a test will be invoked. TheITestResult
is only partially filled with the references to class, method, start millis and status.- Specified by:
onTestStart
in 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:IConfigurationListener
Invoked whenever a configuration method failed.- Specified by:
onConfigurationFailure
in interfaceIConfigurationListener
- See Also:
IConfigurationListener.onConfigurationFailure(org.testng.ITestResult)
-
onConfigurationSkip
public void onConfigurationSkip(ITestResult itr)
Deprecated.Description copied from interface:IConfigurationListener
Invoked whenever a configuration method was skipped.- Specified by:
onConfigurationSkip
in interfaceIConfigurationListener
- See Also:
IConfigurationListener.onConfigurationSkip(org.testng.ITestResult)
-
onConfigurationSuccess
public void onConfigurationSuccess(ITestResult itr)
Deprecated.Description copied from interface:IConfigurationListener
Invoked whenever a configuration method succeeded.- Specified by:
onConfigurationSuccess
in interfaceIConfigurationListener
- See Also:
IConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)
-
-