Test::Presenter - A module for results Presentation.
my $report = new Test::Presenter; $report->close(); $report->output() $report->dump(); $report->set_debug(0); my $dbg = $report->get_debug();
Test::Presenter is is used to create the initial Test::Presenter object for use in processing various test results. Test::Presenter operates around the DBXml database from Sleepycat Software. DBXml was used due to it's support for both XQuery and XPath, as well as it's ease of use and implementation with Perl.
Test::Presenter receives as input a TRPI-formatted XML file. These files can be generated with Test::Parser, or any other tool that supports the TRPI format as output. The TRPI format was chosen because it is robust enough to handle results from many different kinds of tests. This wide usability comes with a drawback, however, in that TRPI files can sometimes become overly large.
TRPI files are really used as an intermediate data format between raw test results and an intelligible easy to read set of test results. This set of test results can be fed into various tools for final presentation and further human analysis.
Purpose: Create a new Test::Presenter object. Input: NA Output: Test::Presenter perl object
Purpose: Close the DBXml file safely (to prevent data corruption, etc) Input: NA Output: 1
Purpose: Eventually use the Template::Toolkit module to output the results in a nice, easy to read format Input: NA Output: 1
Purpose: Used to dump the 'component' object to STDERR Input: NA Output: 1
Purpose: Turn on (or off) debugging statements. Input: Integer (O to disable, 1-4 for debugging statements) Output: debug level
Purpose: Return the debugging level that is currently set. Input: None Output: Integer (debug level)
John Daiker <firstname.lastname@example.org>
Copyright (C) 2006 John Daiker. All Rights Reserved.
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself.