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, setSkippedTests
public void beforeInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult tr)
beforeInvocation
in interface org.testng.IInvokedMethodListener
public void afterInvocation(org.testng.IInvokedMethod method, org.testng.ITestResult tr)
afterInvocation
in interface org.testng.IInvokedMethodListener
public void onTestStart(org.testng.ITestResult result)
onTestStart
in interface org.testng.ITestListener
onTestStart
in class org.testng.TestListenerAdapter
public void onTestSuccess(org.testng.ITestResult tr)
onTestSuccess
in interface org.testng.ITestListener
onTestSuccess
in class org.testng.TestListenerAdapter
public void onTestFailedButWithinSuccessPercentage(org.testng.ITestResult tr)
onTestFailedButWithinSuccessPercentage
in interface org.testng.ITestListener
onTestFailedButWithinSuccessPercentage
in class org.testng.TestListenerAdapter
public void onTestFailure(org.testng.ITestResult tr)
onTestFailure
in interface org.testng.ITestListener
onTestFailure
in class org.testng.TestListenerAdapter
public void onTestSkipped(org.testng.ITestResult tr)
onTestSkipped
in interface org.testng.ITestListener
onTestSkipped
in class org.testng.TestListenerAdapter
public void onStart(org.testng.ITestContext context)
onStart
in interface org.testng.ITestListener
onStart
in class org.testng.TestListenerAdapter
public void onFinish(org.testng.ITestContext context)
onFinish
in interface org.testng.ITestListener
onFinish
in class org.testng.TestListenerAdapter
protected void generateReport(java.lang.Class<?> clazz, java.util.List<org.testng.ITestResult> results) throws java.io.IOException
java.io.IOException
Copyright ? 1998-2009 Bela Ban / Red Hat. All Rights Reserved.