Home | Trees | Indices | Help |
---|
|
object --+ | extension.Extension --+ | database.Database --+ | file_database.FileDatabase --+ | file_database.ExtensionDatabase --+ | XMLDatabase
A database representing tests as XML files in a directory tree.
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from 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 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. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Dec 23 12:30:41 2011 | http://epydoc.sourceforge.net |