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