|
||||||||||
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 reporterMethod Detail |
---|
public void beforeConfiguration(ITestResult tr)
IConfigurationListener2
beforeConfiguration
in interface IConfigurationListener2
beforeConfiguration
in class TestListenerAdapter
public void onConfigurationFailure(ITestResult tr)
IConfigurationListener
onConfigurationFailure
in interface IConfigurationListener
onConfigurationFailure
in class TestListenerAdapter
IConfigurationListener.onConfigurationFailure(org.testng.ITestResult)
public void onConfigurationSkip(ITestResult tr)
IConfigurationListener
onConfigurationSkip
in interface IConfigurationListener
onConfigurationSkip
in class TestListenerAdapter
IConfigurationListener.onConfigurationSkip(org.testng.ITestResult)
public void onConfigurationSuccess(ITestResult tr)
IConfigurationListener
onConfigurationSuccess
in interface IConfigurationListener
onConfigurationSuccess
in class TestListenerAdapter
IConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)
public void onTestStart(ITestResult tr)
ITestListener
ITestResult
is only partially filled with the references to
class, method, start millis and status.
onTestStart
in interface ITestListener
onTestStart
in class TestListenerAdapter
tr
- the partially filled ITestResult
ITestResult.STARTED
public void onTestFailure(ITestResult tr)
ITestListener
onTestFailure
in interface ITestListener
onTestFailure
in class TestListenerAdapter
tr
- ITestResult
containing information about the run testITestResult.FAILURE
public void onTestFailedButWithinSuccessPercentage(ITestResult tr)
ITestListener
onTestFailedButWithinSuccessPercentage
in interface ITestListener
onTestFailedButWithinSuccessPercentage
in class TestListenerAdapter
tr
- ITestResult
containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILURE
public void onTestSkipped(ITestResult tr)
ITestListener
onTestSkipped
in interface ITestListener
onTestSkipped
in class TestListenerAdapter
tr
- ITestResult
containing information about the run testITestResult.SKIP
public void onTestSuccess(ITestResult tr)
ITestListener
onTestSuccess
in interface ITestListener
onTestSuccess
in class TestListenerAdapter
tr
- ITestResult
containing information about the run testITestResult.SUCCESS
public void onStart(ITestContext ctx)
ITestListener
onStart
in interface ITestListener
onStart
in class TestListenerAdapter
public void onFinish(ITestContext context)
ITestListener
onFinish
in interface ITestListener
onFinish
in class TestListenerAdapter
protected 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 |