|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.TestListenerAdapter
org.testng.reporters.VerboseReporter
public class VerboseReporter
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
| Field Summary | |
|---|---|
static String |
LISTENER_PREFIX
Default prefix for messages printed out by this reporter |
| Constructor Summary | |
|---|---|
VerboseReporter()
Default constructor |
|
VerboseReporter(String prefix)
Create VerboseReporter with custom prefix |
|
| Method Summary | |
|---|---|
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 tests have run and all their Configuration methods have been called. |
void |
onStart(ITestContext ctx)
Invoked after the test class is instantiated and before any configuration method is called. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String LISTENER_PREFIX
| Constructor Detail |
|---|
public VerboseReporter()
public VerboseReporter(String prefix)
prefix - prefix for messages printed out by this reporter| Method Detail |
|---|
public void beforeConfiguration(ITestResult tr)
IConfigurationListener2
beforeConfiguration in interface IConfigurationListener2beforeConfiguration in class TestListenerAdapterpublic void onConfigurationFailure(ITestResult tr)
IConfigurationListener
onConfigurationFailure in interface IConfigurationListeneronConfigurationFailure in class TestListenerAdapterIConfigurationListener.onConfigurationFailure(org.testng.ITestResult)public void onConfigurationSkip(ITestResult tr)
IConfigurationListener
onConfigurationSkip in interface IConfigurationListeneronConfigurationSkip in class TestListenerAdapterIConfigurationListener.onConfigurationSkip(org.testng.ITestResult)public void onConfigurationSuccess(ITestResult tr)
IConfigurationListener
onConfigurationSuccess in interface IConfigurationListeneronConfigurationSuccess in class TestListenerAdapterIConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)public void onTestStart(ITestResult tr)
ITestListenerITestResult is only partially filled with the references to
class, method, start millis and status.
onTestStart in interface ITestListeneronTestStart in class TestListenerAdaptertr - the partially filled ITestResultITestResult.STARTEDpublic void onTestFailure(ITestResult tr)
ITestListener
onTestFailure in interface ITestListeneronTestFailure in class TestListenerAdaptertr - ITestResult containing information about the run testITestResult.FAILUREpublic void onTestFailedButWithinSuccessPercentage(ITestResult tr)
ITestListener
onTestFailedButWithinSuccessPercentage in interface ITestListeneronTestFailedButWithinSuccessPercentage in class TestListenerAdaptertr - ITestResult containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILUREpublic void onTestSkipped(ITestResult tr)
ITestListener
onTestSkipped in interface ITestListeneronTestSkipped in class TestListenerAdaptertr - ITestResult containing information about the run testITestResult.SKIPpublic void onTestSuccess(ITestResult tr)
ITestListener
onTestSuccess in interface ITestListeneronTestSuccess in class TestListenerAdaptertr - ITestResult containing information about the run testITestResult.SUCCESSpublic void onStart(ITestContext ctx)
ITestListener
onStart in interface ITestListeneronStart in class TestListenerAdapterpublic void onFinish(ITestContext context)
ITestListener
onFinish in interface ITestListeneronFinish in class TestListenerAdapterprotected void log(String message)
public String toString()
toString in class TestListenerAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||