VariableSet |
![]() |
VariableSet - class representing sets of session variables
Steven J. McDowall <sjm@aptest.com>
Copyright 2002-2006 Applied Testing and Technology, Inc. All Rights Reserved.
use VariableSet;
# create a new VariableSet object
my $variables = new VariableSet;
# read the set from a file
$variables->fromFile( Config::SITE::VariableFile);
The VariableSet object is a handy container object used to track/read/manipulate a suite's variable definitions into a memory data structure.
The format of a variable definition file is a whitespace separated collection of fields, one record per row, with the first row of the file being a definition of the field names. In this case, the fields in the file are:
$set = new VariableSet(fileName);
Creates a new VariableSet object, optionally reading in the base definition from a file.
returns a reference to the VariableSet object.
$set->release();
This method undefines the data structures associated with the variable set.
$set->toFile( filename ) ;
$set->print();
$set->fromFile(fileName);
$set->loadAccountDefaults( vendor ) ;
$set->addHeader() ;
$set->getVarByName( id ) ;
$set->suiteDir();
$set->suiteDir(suite);
Gets/sets the path to the test suite data root.
@vlist = $vars->visibleList( includeSpecials ) ;
includeSpecials is a boolean that defaults to false. If true, then the reserved atm special session variables are also included.
Copyright © 2000-2006 Applied Testing and Technology, Inc. All rights reserved.