Module EDTestCase :: Class EDTestCase
[hide private]
[frames] | no frames]

Class EDTestCase

source code

       object --+            
                |            
EDObject.EDObject --+        
                    |        
  EDLogging.EDLogging --+    
                        |    
            EDTest.EDTest --+
                            |
                           EDTestCase
Known Subclasses:

Test case class

Instance Methods [hide private]
 
__init__(self, _strTestName=None)
Constructor of the main pure virtual class.
source code
 
processKernel(self)
Executes the test case.
source code
 
postProcess(self)
Writes out a summary of the test case.
source code
 
getMethodFailureMessages(self)
This method returns a dictionary with the failure messages:...
source code
 
setTestSuiteName(self, _strTestSuiteName)
Used by EDTestSuite: Sets the name of the test suite invoking the test case.
source code
string
getTestSuiteName(self)
Returns the name of the test suite invoking the test case.
source code
 
setReasonForNotBeingExectuted(self, _strValue)
Sets a string describing why the test case shouldn't be executed.
source code
string
getReasonForNotBeingExectuted(self)
Returns a string describing why the test case shouldn't be executed.
source code
string
getTestsHome(self)
Returns the Test home directory
source code
string
getTestsDataHome(self)
Returns the Test data home directory
source code
string
getTestsDataImagesHome(self)
Returns the Test data home directory
source code
integer
getNumberTestMethodSuccess(self)
The number of successful test methods.
source code
integer
getNumberTestMethodFailure(self)
The number of test methods executed with failure.
source code
boolean
isExecuted(self)
Returns True if the test case was executed.
source code

Inherited from EDTest.EDTest: addTestMethod, execute, executeKernel, getListTest, getNumberOfTests, getTestName, preProcess, process, setTestName

Inherited from EDLogging.EDLogging: ASSERT, DEBUG, ERROR, WARNING, error, isVerboseDebug, log, screen, setAllLogLevels, setLogFileName, setLogFileOff, setLogLevel, setTestOff, setTestOn, setVerboseDebugOff, setVerboseDebugOn, setVerboseOff, setVerboseOn, unitTest, warning, writeErrorTrace

Inherited from EDObject.EDObject: getClassName, getId, getRunTime, getSemaphoreValue, getTimeEnd, getTimeInit, locked, setTimeEnd, setTimeInit, synchronizeOff, synchronizeOn

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from EDLogging.EDLogging (private): _EDObject__iId_class

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, _strTestName=None)
(Constructor)

source code 

Constructor of the main pure virtual class.
This constructor implements:
- the creation of the semaphore
- definition of timer object (uninitialized as potentially not used)

Overrides: object.__init__
(inherited documentation)

processKernel(self)

source code 

Executes the test case.

Overrides: EDTest.EDTest.processKernel

postProcess(self)

source code 

Writes out a summary of the test case.

Overrides: EDTest.EDTest.postProcess

getMethodFailureMessages(self)

source code 

This method returns a dictionary with the failure messages:
  Key   : Name of the test method
  Value : Failure message
@return: MethodFailureMessages
@rtype: dict

setTestSuiteName(self, _strTestSuiteName)

source code 

Used by EDTestSuite: Sets the name of the test suite invoking the test case.

Parameters:
  • _strTestSuiteName (string) - TestSuiteName

getTestSuiteName(self)

source code 

Returns the name of the test suite invoking the test case. None if not inviked by a test suite.

Returns: string
TestSuiteName

setReasonForNotBeingExectuted(self, _strValue)

source code 

Sets a string describing why the test case shouldn't be executed. For example : missing configuration file. If the string is not empty, the test case is not executed.

Parameters:
  • _strValue (string) - ReasonForNotBeingExecuted

getReasonForNotBeingExectuted(self)

source code 

Returns a string describing why the test case shouldn't be executed. For example : missing configuration file. If the string is not empty, the test case is not executed.

Returns: string
ReasonForNotBeingExecuted

getTestsHome(self)

source code 

Returns the Test home directory

Returns: string
TestsHome

getTestsDataHome(self)

source code 

Returns the Test data home directory

Returns: string
TestsDataHome

getTestsDataImagesHome(self)

source code 

Returns the Test data home directory

Returns: string
TestsDataImagesHome

getNumberTestMethodSuccess(self)

source code 

The number of successful test methods.

Returns: integer
NumberTestMethodSuccess

getNumberTestMethodFailure(self)

source code 

The number of test methods executed with failure.

Returns: integer
NumberTestMethodFailure

isExecuted(self)

source code 

Returns True if the test case was executed.

Returns: boolean
IsExecuted