net.sf.jameleon.reporting
Class HtmlTestRunReporter

java.lang.Object
  extended by net.sf.jameleon.reporting.AbstractTestRunReporter
      extended by net.sf.jameleon.reporting.HtmlTestRunReporter
All Implemented Interfaces:
TestRunReporter

public class HtmlTestRunReporter
extends AbstractTestRunReporter

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_FOOTER_TEMPLATE
           
static String DEFAULT_HEADER_TEMPLATE
           
static String DEFAULT_RESULT_ROW_TEMPLATE
           
 
Constructor Summary
HtmlTestRunReporter()
           
 
Method Summary
 String getTestResultRowTemplate()
          Gets the template for the invidual test script result
 String getTestRunResultsFooterTemplate()
          Gets the test run results footer template
 String getTestRunResultsHeaderTemplate()
          Gets the template for the test run results header file
 void reportScriptResult(TestCaseTag tct, TestCaseCounter counter)
          Reports the result of the script.
 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 setTestResultRowTemplate(String testResultRowTemplate)
          Sets the template for the invidual test script result
 void setTestRunResultsFooterTemplate(String testRunResultsFooterTemplate)
          Sets the test run results footer template
 void setTestRunResultsHeaderTemplate(String testRunResultsHeaderTemplate)
          Sets the template for the test run results header file
 
Methods inherited from class net.sf.jameleon.reporting.AbstractTestRunReporter
cleanUp, getWriter, setWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HEADER_TEMPLATE

public static final String DEFAULT_HEADER_TEMPLATE
See Also:
Constant Field Values

DEFAULT_FOOTER_TEMPLATE

public static final String DEFAULT_FOOTER_TEMPLATE
See Also:
Constant Field Values

DEFAULT_RESULT_ROW_TEMPLATE

public static final String DEFAULT_RESULT_ROW_TEMPLATE
See Also:
Constant Field Values
Constructor Detail

HtmlTestRunReporter

public HtmlTestRunReporter()
Method Detail

reportScriptResult

public void reportScriptResult(TestCaseTag tct,
                               TestCaseCounter counter)
Description copied from interface: TestRunReporter
Reports the result of the script.

Parameters:
tct - The test case of the script
counter - The test case counter of the test run

reportTestRunStart

public void reportTestRunStart(Calendar startTime)
Description copied from interface: TestRunReporter
Reports the start of a test run.

Parameters:
startTime - The time the test run was kicked off

reportTestRunComplete

public void reportTestRunComplete(Calendar startTime,
                                  Calendar endTime,
                                  TestCaseCounter counter)
Description copied from interface: TestRunReporter
Reports the completion of a test run.

Parameters:
startTime - The time the test run began
endTime - The time the test run was completed
counter - The number of test cases run passed and failed.

getTestRunResultsFooterTemplate

public String getTestRunResultsFooterTemplate()
Gets the test run results footer template

Returns:
The test run results footer template

setTestRunResultsFooterTemplate

public void setTestRunResultsFooterTemplate(String testRunResultsFooterTemplate)
Sets the test run results footer template

Parameters:
testRunResultsFooterTemplate - The test run results footer template

getTestRunResultsHeaderTemplate

public String getTestRunResultsHeaderTemplate()
Gets the template for the test run results header file

Returns:
The test run results template

setTestRunResultsHeaderTemplate

public void setTestRunResultsHeaderTemplate(String testRunResultsHeaderTemplate)
Sets the template for the test run results header file

Parameters:
testRunResultsHeaderTemplate - The test run results template

getTestResultRowTemplate

public String getTestResultRowTemplate()
Gets the template for the invidual test script result

Returns:
The template for the invidual test script result

setTestResultRowTemplate

public void setTestResultRowTemplate(String testResultRowTemplate)
Sets the template for the invidual test script result

Parameters:
testResultRowTemplate - The template for the invidual test script result


Copyright © 2003-2008 Christian Hargraves. All Rights Reserved.