public class JUnitXMLReporter
extends TestListenerAdapter
Modifier and Type | Field and Description |
---|---|
static InheritableThreadLocal<Class<?>> |
local |
Constructor and Description |
---|
JUnitXMLReporter() |
Modifier and Type | Method and Description |
---|---|
void |
afterInvocation(IInvokedMethod method,
ITestResult tr)
Invoked after any method (configuration or test) is invoked
|
void |
beforeInvocation(IInvokedMethod method,
ITestResult tr)
Invoked before any method (configuration or test) is invoked
|
protected void |
generateReport(Class<?> clazz,
List<ITestResult> results)
generate the XML report given what we know from all the test results
|
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) |
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) |
void |
onTestSuccess(ITestResult tr)
Invoked each time a test succeeds
|
public static InheritableThreadLocal<Class<?>> local
public void beforeInvocation(IInvokedMethod method, ITestResult tr)
public void afterInvocation(IInvokedMethod method, ITestResult tr)
public void onTestStart(ITestResult result)
public void onTestSuccess(ITestResult tr)
public void onTestFailedButWithinSuccessPercentage(ITestResult tr)
public void onTestFailure(ITestResult tr)
public void onTestSkipped(ITestResult tr)
public void onStart(ITestContext context)
public void onFinish(ITestContext context)
protected void generateReport(Class<?> clazz, List<ITestResult> results) throws IOException
IOException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.