TestResult Class Reference

List of all members.


Detailed Description

Storage class for a test result.

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

Definition at line 26 of file TestResult.py.


Public Member Functions

def __init__
 Constructor.
def set
 Generic setter for the protected attributes of an object of this class.
def get
 Generic getter for the protected attributes of an object of this class.
def addValue
 Add additional value to this test result.
def setValue
 Change value of this test result.
def getValue
 Get additional value from this test result.
def __str__

Private Attributes

 _name
 _resultCode
 _terminationType
 _expectedResultCode
 _expectedTerminationType
 __values

Static Private Attributes

string _name = ""
int _resultCode = 0
string _terminationType = ""
dictionary __values = {}
int _expectedResultCode = 0
string _expectedTerminationType = ""

Member Function Documentation

def __init__ (   self  ) 

Constructor.

Definition at line 41 of file TestResult.py.

def set (   self,
  name,
  value 
)

Generic setter for the protected attributes of an object of this class.

Parameters:
name name of attribute without '_' (string)
value value the attribute should be set to (void)

Definition at line 60 of file TestResult.py.

def get (   self,
  name 
)

Generic getter for the protected attributes of an object of this class.

Parameters:
name name of attribute without '_' (string)
Returns:
value the attribute is set to (void)

Definition at line 71 of file TestResult.py.

def addValue (   self,
  name,
  value 
)

Add additional value to this test result.

Parameters:
name name of additional result value (string)
value value of additional result value (void)

Definition at line 82 of file TestResult.py.

def setValue (   self,
  name,
  value 
)

Change value of this test result.

Parameters:
name name of additional result value (string)
value value of additional result value (void)

Definition at line 94 of file TestResult.py.

def getValue (   self,
  name 
)

Get additional value from this test result.

Parameters:
name name of additional result value (string)
Returns:
value of additional result value (void)

Definition at line 106 of file TestResult.py.

def __str__ (   self  ) 

Definition at line 110 of file TestResult.py.


Member Data Documentation

string _name = "" [static, private]

Definition at line 27 of file TestResult.py.

int _resultCode = 0 [static, private]

Definition at line 28 of file TestResult.py.

string _terminationType = "" [static, private]

Definition at line 29 of file TestResult.py.

dictionary __values = {} [static, private]

Definition at line 31 of file TestResult.py.

int _expectedResultCode = 0 [static, private]

Definition at line 33 of file TestResult.py.

string _expectedTerminationType = "" [static, private]

Definition at line 34 of file TestResult.py.

_name [private]

Definition at line 42 of file TestResult.py.

_resultCode [private]

Definition at line 43 of file TestResult.py.

_terminationType [private]

Definition at line 44 of file TestResult.py.

Definition at line 47 of file TestResult.py.

Definition at line 48 of file TestResult.py.

__values [private]

Definition at line 50 of file TestResult.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