Helper class to parse an XML test descriptor.
The class uses the minidom DOM (Document Object Model) non validating
parser to provide accessor methods to return element attributes and
character data from the test descriptor file. The class is instantiated
with the filename of the test descriptor. It is the responsibility of the
user of the class to call the unlink() method of the class on completion
in order to free the memory used in the parsing.
|
|
|
getContainer(self)
Create and return an instance of XMLDescriptorContainer for the
contents of the descriptor. |
source code
|
|
|
unlink(self)
Clean up the DOM on completion. |
source code
|
|
|
getFile(self)
Return the filename of the test descriptor. |
source code
|
|
|
|
|
getType(self)
Return the type attribute of the test element. |
source code
|
|
|
getState(self)
Return the state attribute of the test element. |
source code
|
|
|
getTitle(self)
Return the test titlecharacter data of the description element. |
source code
|
|
|
getPurpose(self)
Return the test purpose character data of the description element. |
source code
|
|
|
getGroups(self)
Return a list of the group names, contained in the character data of
the group elements. |
source code
|
|
|
getModes(self)
Return a list of the mode names, contained in the character data of
the mode elements. |
source code
|
|
|
getClassDetails(self)
Return the test class attributes (name, module, searchpath),
contained in the class element. |
source code
|
|
|
getTestInput(self)
Return the test input path, contained in the input element. |
source code
|
|
|
getTestOutput(self)
Return the test output path, contained in the output element. |
source code
|
|
|
getTestReference(self)
Return the test reference path, contained in the reference element. |
source code
|
|
|
getRequirements(self)
Return a list of the requirement ids, contained in the character data
of the requirement elements. |
source code
|
|