Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | database.Database --+ | FileDatabase --+ | ExtensionDatabase
An 'ExtensionDatabase' is a 'FileDatabase' where each kind of entity (test, suite, resource) has a particular extension. For example, if tests have the extension '.qmt', then all files ending with '.qmt' are considered tests. If an extension for a particular kind of entity is not specified or is the empty string, then all files will be considered to be that kind of entity.
'ExtensionDatabase' is an abstract class.
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
arguments =
A list of the arguments to the extension class. |
|||
_argument_dictionary =
A map from argument names to 'Field' instances. |
|||
_argument_list =
A list of all the 'Field's in this class. |
|||
resource_extension =
|
|||
suite_extension =
|
|||
test_extension =
|
|||
Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
Construct a 'Database'. 'path' -- A string containing the absolute path to the directory containing the database. 'arguments' -- A dictionary mapping attribute names to values. The use of this parameter is deprecated. Use keyword arguments instead. Derived classes must call this method from their own '__init__' methods. Every derived class must have an '__init__' method that takes the path to the directory containing the database as its only argument. The path provided to the derived class '__init__' function will always be an absolute path.
|
Return the extension that indicates a file is a test. returns -- The extension (including the leading period) that indicates that a file is a test. |
Return the extension that indicates a file is a suite. returns -- The extension (including the leading period) that indicates that a file is a suite. |
Return the extension that indicates a file is a resource. returns -- The extension (including the leading period) that indicates that a file is a resource. |
Return the file containing 'test_id'. 'test_id' -- The name of a test. returns -- The absolute file name of the file that contains, or would contain, 'test_id'. This method works even if no test named 'test_id' exists. Derived classes may override this method.
|
Returns true if 'path' is a test file. 'path' -- The absolute name of a file. All relevant components in the path name have already been checked to ensure that they are valid labels. returns -- True iff the file corresponds to a test. Derived classes must override this method.
|
Return the file containing 'suite_id'. 'suite_id' -- The name of a suite. returns -- The absolute file name of the file (or directory) that contains, or would contain, 'suite_id'. This method works even if no suite named 'suite_id' exists. Derived classes may override this method.
|
Returns true if 'path' is a test suite file or directory. 'path' -- The absolute name of a file. All relevant components in the path name have already been checked to ensure that they are valid labels. returns -- True iff the file corresponds to a test. Derived classes may override this method, but only to restrict the set of suites. In particular, a derived class method may return false where this method would return true, but never vice versa. Derived classes must override this method.
|
Return the file containing 'resource_id'. 'resource_id' -- The name of a resource. returns -- The absolute file name of the file that contains, or would contain, 'resource_id'. This method works even if no Resource named 'resource_id' exists. Derived classes may override this method.
|
Returns true if 'path' is a resource file. 'path' -- The absolute name of a file. All relevant components in the path name have already been checked to ensure that they are valid labels. returns -- True iff the file corresponds to a resource. Derived classes must override this method.
|
Returns the file system path corresponding to 'label'. 'label' -- The id for a test, test suite, or similar entity. returns -- The absolute path for the corresponding entry in the file system, but without any required extension.
|
Returns the label associated with a file named 'basename'. 'basename' -- The basename of a file, including the extension. returns -- The corresponding label. Derived classes may override this method.
|
Returns a representation of 'label' as a filename. returns -- A filename corresponding to 'label'.
|
|
argumentsA list of the arguments to the extension class. Each element of this list should be an instance of 'Field'. The 'Field' instance describes the argument. Derived classes may redefine this class variable. However, derived classes should not explicitly include the arguments from base classes; QMTest will automatically combine all the arguments found throughout the class hierarchy.
|
_argument_dictionaryA map from argument names to 'Field' instances. A map from the names of arguments for this class to the corresponding 'Field'.
|
_argument_listA list of all the 'Field's in this class. This list combines the complete list of 'arguments'. 'Field's appear in the order reached by a pre-order breadth-first traversal of the hierarchy, starting from the most derived class.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |