TestProtocol Class Reference

List of all members.


Detailed Description

Storage class for test protocol data.

Author:
Enrico Hartung <enrico@iptel.org>
License:
GPL

Definition at line 41 of file TestProtocol.py.


Public Member Functions

def __init__
 Constructor.
def getProtocol
 Return XML string of protocol.
def createXmlFile
 Creates a XML file with the data of this protocol.
def __str__
def cleanUp
 Clean up temporary protocol data.

Private Member Functions

def __buildDomDocument
 Build a DOM document that includes all data needed for a test protocol.

Static Private Attributes

 __document = None
list __additionalFiles = ["protocol.dtd", "protocol.xsl", "protocol.css", "images"]

Member Function Documentation

def __init__ (   self,
  testSuites 
)

Constructor.

Parameters:
testSuites test suites (list of TestSuite)

Definition at line 55 of file TestProtocol.py.

def __buildDomDocument (   self,
  units 
) [private]

Build a DOM document that includes all data needed for a test protocol.

Included data:

Parameters:
units list of objects (e.g. of class TestUnit or TestUser) (list)
Returns:
XML structure of test protocol (xml.dom.minidom.Document)

Definition at line 92 of file TestProtocol.py.

def getProtocol (   self  ) 

Return XML string of protocol.

Returns:
XML of protocol (string)

Definition at line 280 of file TestProtocol.py.

def createXmlFile (   self,
  fileName 
)

Creates a XML file with the data of this protocol.

The following additional files are expected to be situated in the same directory as the XML file of this protocol:

  • protocol.dtd
  • protocol.xsl

Parameters:
fileName path + name of file to be created (string)

Definition at line 297 of file TestProtocol.py.

def __str__ (   self  ) 

Definition at line 345 of file TestProtocol.py.

def cleanUp (   self  ) 

Clean up temporary protocol data.

Definition at line 353 of file TestProtocol.py.


Member Data Documentation

__document = None [static, private]

Definition at line 43 of file TestProtocol.py.

list __additionalFiles = ["protocol.dtd", "protocol.xsl", "protocol.css", "images"] [static, private]

Definition at line 46 of file TestProtocol.py.


The documentation for this class was generated from the following file:

Generated on Mon Aug 11 17:28:33 2008 for TestEnv by  doxygen 1.5.5