public class TestHTMLReporter extends TestListenerAdapter
Modifier and Type | Class and Description |
---|---|
private static class |
TestHTMLReporter.ConfigurationComparator |
private static class |
TestHTMLReporter.NameComparator |
Modifier and Type | Field and Description |
---|---|
private static java.util.Comparator<ITestResult> |
CONFIGURATION_COMPARATOR |
private static java.lang.String |
HEAD |
private ITestContext |
m_testContext |
private static java.util.Comparator<ITestResult> |
NAME_COMPARATOR |
Constructor and Description |
---|
TestHTMLReporter() |
Modifier and Type | Method and Description |
---|---|
private static java.lang.String |
arrayToString(java.lang.String[] array) |
static void |
generateLog(ITestContext testContext,
java.lang.String host,
java.lang.String outputDirectory,
java.util.Collection<ITestResult> failedConfs,
java.util.Collection<ITestResult> skippedConfs,
java.util.Collection<ITestResult> passedTests,
java.util.Collection<ITestResult> failedTests,
java.util.Collection<ITestResult> skippedTests,
java.util.Collection<ITestResult> percentageTests) |
static void |
generateTable(java.io.PrintWriter pw,
java.lang.String title,
java.util.Collection<ITestResult> tests,
java.lang.String cssClass,
java.util.Comparator<ITestResult> comparator) |
private static java.lang.String |
getOutputFile(ITestContext context) |
void |
onFinish(ITestContext context)
Invoked after all the test methods belonging to the classes inside the <test> tag have run
and all their Configuration methods have been called.
|
void |
onStart(ITestContext context)
Invoked before running all the test methods belonging to the classes inside the <test> tag
and calling all their Configuration methods.
|
private static void |
ppp(java.lang.String s) |
beforeConfiguration, getAllTestMethods, getConfigurationFailures, getConfigurationSkips, getFailedButWithinSuccessPercentageTests, getFailedTests, getPassedTests, getSkippedTests, getTestContexts, getTimedoutTests, onConfigurationFailure, onConfigurationSkip, onConfigurationSuccess, onTestFailedButWithinSuccessPercentage, onTestFailedWithTimeout, onTestFailure, onTestSkipped, onTestStart, onTestSuccess, setAllTestMethods, setFailedButWithinSuccessPercentageTests, setFailedTests, setPassedTests, setSkippedTests, toString
private static final java.util.Comparator<ITestResult> NAME_COMPARATOR
private static final java.util.Comparator<ITestResult> CONFIGURATION_COMPARATOR
private ITestContext m_testContext
private static final java.lang.String HEAD
public void onStart(ITestContext context)
ITestListener
onStart
in interface ITestListener
onStart
in class TestListenerAdapter
public void onFinish(ITestContext context)
ITestListener
onFinish
in interface ITestListener
onFinish
in class TestListenerAdapter
private static java.lang.String getOutputFile(ITestContext context)
public static void generateTable(java.io.PrintWriter pw, java.lang.String title, java.util.Collection<ITestResult> tests, java.lang.String cssClass, java.util.Comparator<ITestResult> comparator)
private static java.lang.String arrayToString(java.lang.String[] array)
public static void generateLog(ITestContext testContext, java.lang.String host, java.lang.String outputDirectory, java.util.Collection<ITestResult> failedConfs, java.util.Collection<ITestResult> skippedConfs, java.util.Collection<ITestResult> passedTests, java.util.Collection<ITestResult> failedTests, java.util.Collection<ITestResult> skippedTests, java.util.Collection<ITestResult> percentageTests)
private static void ppp(java.lang.String s)