Class ExitCodeListener
java.lang.Object
org.testng.reporters.ExitCodeListener
- All Implemented Interfaces:
IConfigurationListener, IResultListener, IResultListener2, ITestListener, ITestNGListener
Deprecated.
A very simple
ITestListener used by the TestNG runner to find out the exit code.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Invoked whenever a configuration method failed.voidDeprecated.Invoked whenever a configuration method was skipped.voidDeprecated.Invoked whenever a configuration method succeeded.voidonStart(ITestContext context) Deprecated.Invoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.voidDeprecated.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IConfigurationListener
beforeConfiguration, beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccessMethods inherited from interface ITestListener
onFinish, onTestFailedWithTimeoutMethods inherited from interface ITestNGListener
isEnabled
-
Constructor Details
-
ExitCodeListener
public ExitCodeListener()Deprecated.
-
-
Method Details
-
onTestFailure
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:
-
onTestSkipped
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:
-
onTestFailedButWithinSuccessPercentage
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:
-
onTestSuccess
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:
-
onStart
Deprecated.Description copied from interface:ITestListenerInvoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.- Specified by:
onStartin interfaceITestListener- Parameters:
context- The test context
-
onTestStart
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:
-
onConfigurationFailure
Deprecated.Description copied from interface:IConfigurationListenerInvoked whenever a configuration method failed.- Specified by:
onConfigurationFailurein interfaceIConfigurationListener- Parameters:
itr- The test result- See Also:
-
onConfigurationSkip
Deprecated.Description copied from interface:IConfigurationListenerInvoked whenever a configuration method was skipped.- Specified by:
onConfigurationSkipin interfaceIConfigurationListener- Parameters:
itr- The test result- See Also:
-
onConfigurationSuccess
Deprecated.Description copied from interface:IConfigurationListenerInvoked whenever a configuration method succeeded.- Specified by:
onConfigurationSuccessin interfaceIConfigurationListener- Parameters:
itr- The test result- See Also:
-
v7.10.0