| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jameleon.reporting.HtmlTestRunSummaryReporter
public class HtmlTestRunSummaryReporter
Reports on all script results in a given test run as a summary in HTML. The current implementation reports a single result as an HTML table row.
| Field Summary | |
|---|---|
| static String | DEFAULT_HEADER_TEMPLATE | 
| static String | DEFAULT_RESULT_BEGIN_ROW_TEMPLATE | 
| static String | DEFAULT_RESULT_ROW_TEMPLATE | 
| Constructor Summary | |
|---|---|
| HtmlTestRunSummaryReporter() | |
| Method Summary | |
|---|---|
|  void | cleanUp()Cleans up any resources used | 
|  void | extractResources() | 
|  String | getTestRunBeginResultRowTemplate()Gets the template to be used when the test run is started | 
|  String | getTestRunResultRowTemplate()Gets the template for the invidual test script result | 
|  String | getTestRunSummaryResultsHeaderTemplate()Gets the template for the test run results header file | 
|  Writer | getWriter()Gets the Writer to use to write to results to | 
|  boolean | isPrintHeader()Tells whether the header should be printed or not | 
|  void | printHeader() | 
|  void | reportTestRunComplete(Calendar startTime,
                      Calendar endTime,
                      TestCaseCounter counter)Reports the completion of a test run. | 
|  void | reportTestRunStart(Calendar startTime)Reports the start of a test run. | 
|  void | setPrintHeader(boolean printHeader)Sets the print header option | 
|  void | setTestRunBeginResultRowTemplate(String testRunBeginResultRowTemplate)Sets the template to be used when the test run is started | 
|  void | setTestRunResultRowTemplate(String testRunResultRowTemplate)Sets the template for the invidual test script result | 
|  void | setTestRunSummaryResultsHeaderTemplate(String testRunSummaryResultsHeaderTemplate)Sets the template for the test run results header file | 
|  void | setWriter(Writer writer)Sets the Writer to use to write to results to | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String DEFAULT_HEADER_TEMPLATE
public static final String DEFAULT_RESULT_ROW_TEMPLATE
public static final String DEFAULT_RESULT_BEGIN_ROW_TEMPLATE
| Constructor Detail | 
|---|
public HtmlTestRunSummaryReporter()
| Method Detail | 
|---|
public void extractResources()
public void printHeader()
public void reportTestRunStart(Calendar startTime)
TestRunSummaryReporter
reportTestRunStart in interface TestRunSummaryReporterstartTime - The time the test run was kicked off
public void reportTestRunComplete(Calendar startTime,
                                  Calendar endTime,
                                  TestCaseCounter counter)
TestRunSummaryReporter
reportTestRunComplete in interface TestRunSummaryReporterstartTime - The time the test run beganendTime - The time the test run was completedcounter - The number of test cases run passed and failed.public void cleanUp()
TestRunSummaryReporter
cleanUp in interface TestRunSummaryReporterpublic Writer getWriter()
TestRunSummaryReporter
getWriter in interface TestRunSummaryReporterpublic void setWriter(Writer writer)
TestRunSummaryReporter
setWriter in interface TestRunSummaryReporterwriter - The Writer to use to write to results topublic boolean isPrintHeader()
isPrintHeader in interface TestRunSummaryReporterpublic void setPrintHeader(boolean printHeader)
setPrintHeader in interface TestRunSummaryReporterprintHeader - true if the header should be printedpublic String getTestRunBeginResultRowTemplate()
public void setTestRunBeginResultRowTemplate(String testRunBeginResultRowTemplate)
testRunBeginResultRowTemplate - The template to be used when the test run is startedpublic String getTestRunSummaryResultsHeaderTemplate()
public void setTestRunSummaryResultsHeaderTemplate(String testRunSummaryResultsHeaderTemplate)
testRunSummaryResultsHeaderTemplate - The test run results templatepublic String getTestRunResultRowTemplate()
public void setTestRunResultRowTemplate(String testRunResultRowTemplate)
testRunResultRowTemplate - The template for the invidual test script result| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||