|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.testng.reporters.JUnitXMLReporter2
public class JUnitXMLReporter2
this XML Reporter will produce XML format compatible with the XMLJUnitResultFormatter from ant this enables TestNG output to be processed by tools that already handle this format borrows heavily from ideas in org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter this is the original version which was replaced by JUnitXMLReporter
| Constructor Summary | |
|---|---|
JUnitXMLReporter2()
|
|
| Method Summary | |
|---|---|
protected void |
generateReport()
generate the XML report given what we know from all the test results |
void |
onConfigurationFailure(ITestResult itr)
|
void |
onConfigurationSkip(ITestResult itr)
|
void |
onConfigurationSuccess(ITestResult itr)
|
void |
onFinish(ITestContext context)
Invoked after all the tests have run and all their Configuration methods have been called. |
void |
onStart(ITestContext context)
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 result)
Invoked each time before a test will be invoked. |
void |
onTestSuccess(ITestResult tr)
Invoked each time a test succeeds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JUnitXMLReporter2()
| Method Detail |
|---|
public void onTestStart(ITestResult result)
ITestListenerITestResult is only partially filled with the references to
class, method, start millis and status.
onTestStart in interface ITestListenerresult - the partially filled ITestResultITestResult.STARTEDpublic void onTestSuccess(ITestResult tr)
onTestSuccess in interface ITestListenertr - ITestResult containing information about the run testITestResult.SUCCESSpublic void onTestFailedButWithinSuccessPercentage(ITestResult tr)
ITestListener
onTestFailedButWithinSuccessPercentage in interface ITestListenertr - ITestResult containing information about the run testITestResult.SUCCESS_PERCENTAGE_FAILUREpublic void onTestFailure(ITestResult tr)
onTestFailure in interface ITestListenertr - ITestResult containing information about the run testITestResult.FAILUREpublic void onTestSkipped(ITestResult tr)
onTestSkipped in interface ITestListenertr - ITestResult containing information about the run testITestResult.SKIPpublic void onStart(ITestContext context)
onStart in interface ITestListenerpublic void onFinish(ITestContext context)
onFinish in interface ITestListenerprotected void generateReport()
public void onConfigurationFailure(ITestResult itr)
onConfigurationFailure in interface org.testng.internal.IConfigurationListenerIConfigurationListener.onConfigurationFailure(org.testng.ITestResult)public void onConfigurationSkip(ITestResult itr)
onConfigurationSkip in interface org.testng.internal.IConfigurationListenerIConfigurationListener.onConfigurationSkip(org.testng.ITestResult)public void onConfigurationSuccess(ITestResult itr)
onConfigurationSuccess in interface org.testng.internal.IConfigurationListenerIConfigurationListener.onConfigurationSuccess(org.testng.ITestResult)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||