org.exolab.jmscts.report
Class StatisticsReport

java.lang.Object
  |
  +--org.exolab.jmscts.report.StatisticsReport

public class StatisticsReport
extends java.lang.Object

This class generates a requirements coverage report in HTML from a TestStatistics instance

Version:
$Revision: 1.4 $ $Date: 2004/02/03 21:52:08 $
Author:
Tim Anderson
See Also:
TestStatistics

Constructor Summary
StatisticsReport(java.lang.String path)
          Construct an instance to generate a report from an existing statistics.xml file
StatisticsReport(java.lang.String path, TestStatistics statistics, ProviderLoader provider)
          Construct an instance with the test suite's statistics of requirements
 
Method Summary
static void main(java.lang.String[] args)
          Main line
 void report(java.lang.String dir)
          Generate the statistics report
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticsReport

public StatisticsReport(java.lang.String path)
Construct an instance to generate a report from an existing statistics.xml file
Parameters:
path - the path to locate stylesheets

StatisticsReport

public StatisticsReport(java.lang.String path,
                        TestStatistics statistics,
                        ProviderLoader provider)
Construct an instance with the test suite's statistics of requirements
Parameters:
path - the path to locate stylesheets
statistics - the test suite's statistics of requirements
provider - the provider loader
Method Detail

report

public void report(java.lang.String dir)
            throws java.io.IOException,
                   org.exolab.castor.xml.MarshalException,
                   javax.xml.transform.TransformerException,
                   org.exolab.castor.xml.ValidationException
Generate the statistics report
Parameters:
dir - the directory path to write the report to
Throws:
java.io.IOException - if the specified file is not found or if some other I/O error occurs
org.exolab.castor.xml.MarshalException - if the statistics report cannot be written
org.exolab.castor.xml.ValidationException - if the statistics report doesn't comply with the XML Schema definition
javax.xml.transform.TransformerException - if the transformation fails

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main line
Parameters:
args - the command line arguments
Throws:
java.lang.Exception - for any error


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.