public class VerboseReporter extends Object implements IConfigurationListener, ITestListener
To see messages from this reporter, either run Ant in verbose mode ('ant -v') or set verbose level to 5 or higher
| Modifier and Type | Field and Description |
|---|---|
static String |
LISTENER_PREFIX
Default prefix for messages printed out by this reporter
|
| Constructor and Description |
|---|
VerboseReporter(String prefix)
Create VerboseReporter with custom prefix
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeConfiguration(ITestResult tr)
Invoked before a configuration method is invoked.
|
protected void |
log(String message) |
void |
onConfigurationFailure(ITestResult tr)
Invoked whenever a configuration method failed.
|
void |
onConfigurationSkip(ITestResult tr)
Invoked whenever a configuration method was skipped.
|
void |
onConfigurationSuccess(ITestResult tr)
Invoked whenever a configuration method succeeded.
|
void |
onFinish(ITestContext context)
Invoked after all the test methods belonging to the classes inside the <test> tag have
run and all their Configuration methods have been called.
|
void |
onStart(ITestContext ctx)
Invoked before running all the test methods belonging to the classes inside the <test>
tag and calling all their Configuration methods.
|
void |
onTestFailedButWithinSuccessPercentage(ITestResult tr)
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 tr)
Invoked each time a test fails.
|
void |
onTestSkipped(ITestResult tr)
Invoked each time a test is skipped.
|
void |
onTestStart(ITestResult tr)
Invoked each time before a test will be invoked.
|
void |
onTestSuccess(ITestResult tr)
Invoked each time a test succeeds.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbeforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccessonTestFailedWithTimeoutpublic static final String LISTENER_PREFIX
public VerboseReporter(String prefix)
prefix - prefix for messages printed out by this reporterpublic void beforeConfiguration(ITestResult tr)
IConfigurationListenerbeforeConfiguration in interface IConfigurationListenertr - The test resultpublic void onConfigurationFailure(ITestResult tr)
IConfigurationListeneronConfigurationFailure in interface IConfigurationListenertr - The test resultpublic void onConfigurationSkip(ITestResult tr)
IConfigurationListeneronConfigurationSkip in interface IConfigurationListenertr - The test resultpublic void onConfigurationSuccess(ITestResult tr)
IConfigurationListeneronConfigurationSuccess in interface IConfigurationListenertr - The test resultpublic void onTestStart(ITestResult tr)
ITestListenerITestResult is only partially
filled with the references to class, method, start millis and status.onTestStart in interface ITestListenertr - the partially filled ITestResultITestResult.STARTEDpublic void onTestFailure(ITestResult tr)
ITestListeneronTestFailure in interface ITestListenertr - ITestResult containing information about the run testITestResult.FAILUREpublic void onTestFailedButWithinSuccessPercentage(ITestResult tr)
ITestListeneronTestFailedButWithinSuccessPercentage in interface ITestListenertr - ITestResult containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILUREpublic void onTestSkipped(ITestResult tr)
ITestListeneronTestSkipped in interface ITestListenertr - ITestResult containing information about the run testITestResult.SKIPpublic void onTestSuccess(ITestResult tr)
ITestListeneronTestSuccess in interface ITestListenertr - ITestResult containing information about the run testITestResult.SUCCESSpublic void onStart(ITestContext ctx)
ITestListeneronStart in interface ITestListenerctx - The test contextpublic void onFinish(ITestContext context)
ITestListeneronFinish in interface ITestListenercontext - The test contextprotected void log(String message)
Copyright © 2025. All rights reserved.