Package org.testng.reporters
Class VerboseReporter
- java.lang.Object
-
- org.testng.reporters.VerboseReporter
-
- All Implemented Interfaces:
IConfigurationListener,ITestListener,ITestNGListener
public class VerboseReporter extends java.lang.Object implements IConfigurationListener, ITestListener
Reporter printing out detailed messages about what TestNG is going to run and what is the status of what has been just run.To see messages from this reporter, either run Ant in verbose mode ('ant -v') or set verbose level to 5 or higher
- Since:
- 6.4
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLISTENER_PREFIXDefault prefix for messages printed out by this reporter
-
Constructor Summary
Constructors Constructor Description VerboseReporter(java.lang.String prefix)Create VerboseReporter with custom prefix
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeConfiguration(ITestResult tr)Invoked before a configuration method is invoked.protected voidlog(java.lang.String message)voidonConfigurationFailure(ITestResult tr)Invoked whenever a configuration method failed.voidonConfigurationSkip(ITestResult tr)Invoked whenever a configuration method was skipped.voidonConfigurationSuccess(ITestResult tr)Invoked whenever a configuration method succeeded.voidonFinish(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.voidonStart(ITestContext ctx)Invoked before running all the test methods belonging to the classes inside the <test> tag and calling all their Configuration methods.voidonTestFailedButWithinSuccessPercentage(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.voidonTestFailure(ITestResult tr)Invoked each time a test fails.voidonTestSkipped(ITestResult tr)Invoked each time a test is skipped.voidonTestStart(ITestResult tr)Invoked each time before a test will be invoked.voidonTestSuccess(ITestResult tr)Invoked each time a test succeeds.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.testng.IConfigurationListener
beforeConfiguration, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess
-
Methods inherited from interface org.testng.ITestListener
onTestFailedWithTimeout
-
Methods inherited from interface org.testng.ITestNGListener
isEnabled
-
-
-
-
Field Detail
-
LISTENER_PREFIX
public static final java.lang.String LISTENER_PREFIX
Default prefix for messages printed out by this reporter- See Also:
- Constant Field Values
-
-
Method Detail
-
beforeConfiguration
public void beforeConfiguration(ITestResult tr)
Description copied from interface:IConfigurationListenerInvoked before a configuration method is invoked.- Specified by:
beforeConfigurationin interfaceIConfigurationListener- Parameters:
tr- The test result
-
onConfigurationFailure
public void onConfigurationFailure(ITestResult tr)
Description copied from interface:IConfigurationListenerInvoked whenever a configuration method failed.- Specified by:
onConfigurationFailurein interfaceIConfigurationListener- Parameters:
tr- The test result
-
onConfigurationSkip
public void onConfigurationSkip(ITestResult tr)
Description copied from interface:IConfigurationListenerInvoked whenever a configuration method was skipped.- Specified by:
onConfigurationSkipin interfaceIConfigurationListener- Parameters:
tr- The test result
-
onConfigurationSuccess
public void onConfigurationSuccess(ITestResult tr)
Description copied from interface:IConfigurationListenerInvoked whenever a configuration method succeeded.- Specified by:
onConfigurationSuccessin interfaceIConfigurationListener- Parameters:
tr- The test result
-
onTestStart
public void onTestStart(ITestResult tr)
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:
tr- the partially filledITestResult- See Also:
ITestResult.STARTED
-
onTestFailure
public void onTestFailure(ITestResult tr)
Description copied from interface:ITestListenerInvoked each time a test fails.- Specified by:
onTestFailurein interfaceITestListener- Parameters:
tr-ITestResultcontaining information about the run test- See Also:
ITestResult.FAILURE
-
onTestFailedButWithinSuccessPercentage
public void onTestFailedButWithinSuccessPercentage(ITestResult tr)
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:
tr-ITestResultcontaining information about the run test- See Also:
ITestResult.SUCCESS_PERCENTAGE_FAILURE
-
onTestSkipped
public void onTestSkipped(ITestResult tr)
Description copied from interface:ITestListenerInvoked each time a test is skipped.- Specified by:
onTestSkippedin interfaceITestListener- Parameters:
tr-ITestResultcontaining information about the run test- See Also:
ITestResult.SKIP
-
onTestSuccess
public void onTestSuccess(ITestResult tr)
Description copied from interface:ITestListenerInvoked each time a test succeeds.- Specified by:
onTestSuccessin interfaceITestListener- Parameters:
tr-ITestResultcontaining information about the run test- See Also:
ITestResult.SUCCESS
-
onStart
public void onStart(ITestContext ctx)
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:
ctx- The test context
-
onFinish
public void onFinish(ITestContext context)
Description copied from interface:ITestListenerInvoked after all the test methods belonging to the classes inside the <test> tag have run and all their Configuration methods have been called.- Specified by:
onFinishin interfaceITestListener- Parameters:
context- The test context
-
log
protected void log(java.lang.String message)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-