Package org.testng.reporters
Class ExitCodeListener
- java.lang.Object
-
- org.testng.reporters.ExitCodeListener
-
- All Implemented Interfaces:
IConfigurationListener
,IResultListener
,IResultListener2
,ITestListener
,ITestNGListener
@Deprecated public class ExitCodeListener extends java.lang.Object implements IResultListener2
Deprecated.- This class stands deprecated as of TestNGv7.10.0
A very simpleITestListener
used by the TestNG runner to find out the exit code.
-
-
Constructor Summary
Constructors Constructor Description ExitCodeListener()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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
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
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.-
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
-
-
-
-
Method Detail
-
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 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
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
-
onConfigurationFailure
public void onConfigurationFailure(ITestResult itr)
Deprecated.Description copied from interface:IConfigurationListener
Invoked whenever a configuration method failed.- Specified by:
onConfigurationFailure
in interfaceIConfigurationListener
- Parameters:
itr
- The test result- 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
- Parameters:
itr
- The test result- 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
- Parameters:
itr
- The test result- See Also:
IConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)
-
-