Result |
![]() |
Result - result definition class
Shane P. McCarron <shane@aptest.com>
Copyright 1999-2006 Applied Testing and Technology, Inc. All Rights Reserved.
use Results;
# create a schema object
my $results = new Results(suiteName);
# get a description associated with a result
$desc = $results->description($res)
$results = new Results(suite[, profName [, resPath ] ] );
Creates a new results object.
returns a reference to the results object.
$output = $results->as_popup(varname, current, fn);
varname is the name of the HTML variable to use
current is the currently selected item.
fn is a function to invoke on change.
Returns a select and option set that uses the name varname, with the item current selected (if defined).
$output = $results->as_radio(varname, current, fn);
varname is the name of the HTML variable to use
current is the currently selected item.
fn is a function to call on change.
Returns a set of radio buttons that use the name varname, with the item current selected (if defined).
$output = $results->as_html(result);
Returns the HTML version of the result, including appropriate colors.
$desc = $results->description();
@list = $results->rlist();
$results->numResults();
returns the number of results defined for the suite
$ord = $results->ordinal(resName) ;
Returns the position of the result in the list, or undef if the result name is not defined.
Really a no-op, since this object does not have a database.
$stat = $results->status();
Copyright © 2000-2006 Applied Testing and Technology, Inc. All rights reserved.