Home | Trees | Index | Help |
---|
|
object --+ | extension.Extension --+ | database.Database --+ | FileDatabase --+ | file_database.ExtensionDatabase --+ | XMLDatabase
|
|||
Inherited from |
|
|||
__init__(self, path, arguments) | |||
_GetTestFromPath(self,
test_id,
test_path)
Return a descriptor for the test given by 'path'. |
|||
_GetResourceFromPath(self,
resource_id,
resource_path)
Return a descriptor for the resource given by 'path'. |
|||
__StoreAttachments(self,
item)
Store all attachments in 'item' in the attachment store. |
|||
__MakeDataFilePath(self,
item_id,
file_name)
Construct the path to an attachment data file. |
|||
__LoadItem(self,
item_id,
path,
document_parser)
Load an item (a test or resource) from an XML file. |
|||
__ParseTestDocument(self,
test_id,
document)
Return a test object constructed from a test document. |
|||
__ParseResourceDocument(self,
resource_id,
document)
Return a resource object constructed from a resource document. |
|||
_GetSuiteFromPath(self,
suite_id,
path)
Load the test suite file at 'path' with suite ID 'suite_id'. |
|||
WriteExtension(self,
id,
extension)
Store 'extension' in the database, using the name 'id'. |
|||
GetAttachmentStore(self)
Returns the 'AttachmentStore' associated with the database. |
|||
_Trace(self,
message)
Write a trace 'message'. |
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
_argument_list | |||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|
Return a descriptor for the test given by 'path'. 'test_id' -- The label naming the test. 'path' -- An absolute path to a test file. The 'path' satisfies '_IsTestFile'. returns -- A 'TestDescriptor' corresponding to 'test_id'. Derived classes must override this method.
|
Return a descriptor for the resource given by 'path'. 'resource_id' -- The label naming the resource. 'path' -- An absolute path to a resource file. The 'path' satisfies '_IsResourceFile'. returns -- A 'ResourceDescriptor' corresponding to 'resource_id'. Derived classes must override this method.
|
Store all attachments in 'item' in the attachment store. 'item' -- A 'Test' or 'Resource'. If any of its fields contain attachments, add them to the 'AttachmentStore'. |
Construct the path to an attachment data file. 'item_id' -- The test or resource item of which the attachment is part. 'file_name' -- The file name specified for the attachment. |
Load an item (a test or resource) from an XML file. This function is used for logic common to tests and resources. 'item_id' -- The ID of the item to get. 'path' -- The path to the test or resource file. 'document_parser' -- A function that takes an XML DOM document as its argument and returns the constructed item object. |
Return a test object constructed from a test document. 'test_id' -- The test ID of the test. 'document' -- A DOM document containing a single test element from which the test is constructed. |
Return a resource object constructed from a resource document. 'resource_id' -- The resource ID of the resource. 'document' -- A DOM document node containing a single resource element from which the resource object is constructed. |
Load the test suite file at 'path' with suite ID 'suite_id'. returns -- A 'Suite' object.
|
Store 'extension' in the database, using the name 'id'. 'id' -- A label for the 'extension'. 'extension' -- An instance of 'Extension'. The 'extension' is stored in the database. If there is a previous item in the database with the same id, it is removed and replaced with 'extension'. Some databases may not be able to store all 'Extension' instances; those database must throw an exception when an attempt is made to store such an 'extension'.
|
Returns the 'AttachmentStore' associated with the database. returns -- The 'AttachmentStore' containing the attachments associated with tests and resources in this database.
|
Write a trace 'message'. 'message' -- A string to be output as a trace message. |
|
_argument_list
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 3.0alpha2 on Fri Sep 28 00:57:33 2007 | http://epydoc.sf.net |