resultsprocessor (version 0.8.8, 30 April 2002)
index
c:\work\puffin\resultsprocessor.py

Each test action that includes a call to the server (some do not) results in the server returning 
an HTTP response. Puffin will then analyze the response with either a default response analyzer or
for a response analyzer specific to that test action. After its analysis, a response analyzer
returns an AnalysisResult object to puffin. Puffin then uses the results processor to communicate 
these results to the user. 
 
The results processor handles the communication of results in two ways:
    reports -- The summary result report which communicates the results of all analysis
        results for an entire test plan.
    failure alerts -- The details from a failed task can be communicated separately.
 
The results processor handles this communication with the help of two logging channels
as initialized in puffinlogging (reportLoggingChannel and failureAlertLoggingChannel.
 
There are two configuration settings that affect the communication of results:
 
-- channel configuration:
      <reportLogging defaultLevel='DEBUG'>
         <handler type="StreamHandler">
            <param name="msgFormat"><![CDATA[%(message)s]]></param>
         </handler>
      </reportLogging>
      <failureAlertLogging defaultLevel='DEBUG'>
         <handler type="StreamHandler">
            <param name="msgFormat"><![CDATA[%(asctime)s %(message)s]]></param>
         </handler>
      </failureAlertLogging>
    The <reportLogging> and <failureAlerLogging> elements reflect the configuration for the 
    report logging channel. You can set the defaultLevel attribute to the logging priority 
    and add one or more logging handlers. See the user's guide for more information.
 
-- results processing configuration:
      <resultsProcessor reportDetail="ALL" failureAlertDetail="ALL" />
    The <resultsProcessor> element allows for the detail level to be set for summary reports
    and failure alerts. The possible values are (in order of increasing detail) SUMMARY, LIGHT, 
    RESULTS, and ALL. These represent various levels of detail to be displayed. See the 
    user's guide for more information.

 
Modules
            
extensions
puffinlogging
 
Classes
            
ResultsProcessor
 
class ResultsProcessor
      This report writer records the results of a test plan and then
writes them to a file upon completion.
 
   Methods defined here:
__init__(self, reportDetail)
Constructor for ResponseHandler.
 
Keyword Arguments:
reportDetail -- The level of detail to print for the full report.
failureAlertDetail -- The level of detail to print for the failure alerts.
endReport(self)
End and close a test results report.
processExecutedTask(self, executedTask)
Record the results of a test action's execution in the reports report items
list. Do so by generating a single result message for the task and then logging
it appropriately to the report and/or failure alert logger.
 
Keyword Arguments:
executedTask -- The executed task whose list of lists of analysis results will be
    processed for addition to the test plan results report or failure alert.
startReport(self)
Initialize and start a test results report.

Data and non-method functions defined here:
__doc__ = 'This report writer records the results of a tes...then\n writes them to a file upon completion.'
__module__ = 'resultsprocessor'
 
Functions
            
localtime(...)
localtime([seconds]) -> (year,month,day,hour,minute,second,weekday,dayofyear,dst)
 
Convert seconds since the Epoch to a time tuple expressing local time.
When 'seconds' is not passed in, convert the current time instead.
strftime(...)
strftime(format[, tuple]) -> string
 
Convert a time tuple to a string according to a format specification.
See the library reference manual for formatting codes. When the time tuple
is not present, current time as returned by localtime() is used.
 
Data
             __author__ = 'Keyton Weissinger '
__date__ = '30 April 2002'
__file__ = '.\\resultsprocessor.pyc'
__name__ = 'resultsprocessor'
__status__ = 'beta'
__version__ = '0.8.8'
 
Author
             Keyton Weissinger <keyton@weissinger.org>