public class JUnitXMLReporter
extends org.testng.TestListenerAdapter
implements org.testng.IInvokedMethodListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.InheritableThreadLocal<java.lang.Class<?>> |
local |
| Constructor and Description |
|---|
JUnitXMLReporter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult tr)
Invoked after any method (configuration or test) is invoked
|
void |
beforeInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult tr)
Invoked before any method (configuration or test) is invoked
|
protected void |
generateReport(java.lang.Class<?> clazz,
java.util.List<org.testng.ITestResult> results)
generate the XML report given what we know from all the test results
|
void |
onFinish(org.testng.ITestContext context)
Invoked after all the tests have run and all their Configuration methods
have been called.
|
void |
onStart(org.testng.ITestContext context)
Invoked after the test class is instantiated and before any configuration
method is called.
|
void |
onTestFailedButWithinSuccessPercentage(org.testng.ITestResult tr) |
void |
onTestFailure(org.testng.ITestResult tr)
Invoked each time a test fails.
|
void |
onTestSkipped(org.testng.ITestResult tr)
Invoked each time a test is skipped.
|
void |
onTestStart(org.testng.ITestResult result) |
void |
onTestSuccess(org.testng.ITestResult tr)
Invoked each time a test succeeds
|
getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess, setAllTestMethods, setFailedButWithinSuccessPercentageTests, setFailedTests, setPassedTests, setSkippedTestspublic void beforeInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult tr)
beforeInvocation in interface org.testng.IInvokedMethodListenerpublic void afterInvocation(org.testng.IInvokedMethod method,
org.testng.ITestResult tr)
afterInvocation in interface org.testng.IInvokedMethodListenerpublic void onTestStart(org.testng.ITestResult result)
onTestStart in interface org.testng.ITestListeneronTestStart in class org.testng.TestListenerAdapterpublic void onTestSuccess(org.testng.ITestResult tr)
onTestSuccess in interface org.testng.ITestListeneronTestSuccess in class org.testng.TestListenerAdapterpublic void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult tr)
onTestFailedButWithinSuccessPercentage in interface org.testng.ITestListeneronTestFailedButWithinSuccessPercentage in class org.testng.TestListenerAdapterpublic void onTestFailure(org.testng.ITestResult tr)
onTestFailure in interface org.testng.ITestListeneronTestFailure in class org.testng.TestListenerAdapterpublic void onTestSkipped(org.testng.ITestResult tr)
onTestSkipped in interface org.testng.ITestListeneronTestSkipped in class org.testng.TestListenerAdapterpublic void onStart(org.testng.ITestContext context)
onStart in interface org.testng.ITestListeneronStart in class org.testng.TestListenerAdapterpublic void onFinish(org.testng.ITestContext context)
onFinish in interface org.testng.ITestListeneronFinish in class org.testng.TestListenerAdapterprotected void generateReport(java.lang.Class<?> clazz,
java.util.List<org.testng.ITestResult> results)
throws java.io.IOException
java.io.IOExceptionCopyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.