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

Class EDTestSuite

source code

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


A test suite can contain a list of test cases and/or other test suites.
At the end of the execution of a test suite a summary is written containing:
- The number of test suites in the test suite(if any)
- If there are test suites not executed a list of these
- The total number of test cases not executed due to e.g. missing configuration file and a list of these
- The total number of test cases ending with success
- The total number of test cases ending with failure
- If there are test methods ending with failure a list of the test cases, test methods and the failures.
- The total number of test methods ending with success
- The total number of test methods ending with failure

Instance Methods [hide private]
 
__init__(self, _strTestSuiteName=None)
Constructor of the main pure virtual class.
source code
integer
addTestCaseFromName(self, _strTestCaseName)
This method adds a test case give it's name to the test suite.
source code
integer
addTestSuiteFromName(self, _strTestSuiteName)
This method adds a test suite give it's name to the test suite.
source code
 
processKernel(self)
This method executes the test suite.
source code
 
postProcess(self)
This method writes out the results of the test suite.
source code
 
extendDictionary(self, _dictBase, _dictExtend)
Helper function for "extending" a dictionary.
source code
integer
getNumberTestCaseFailure(self)
Total number of test cases ended with failure.
source code
integer
getNumberTestCaseSuccess(self)
Total number of test cases ended with success.
source code
integer
getNumberTestMethodFailure(self)
Total number of test methods ending with failure.
source code
integer
getNumberTestMethodSuccess(self)
Total number of test methods ending with success.
source code
 
getDictTestCaseFailureMessages(self)
Returns a dictionary containing: Key : Test case name with failed test method(s) Value : Dictionary with method names (keys) and error messages (values).
source code
 
getDictTestCaseNotExecuted(self)
Returns a dictionary containing:...
source code
 
getDictTestSuiteNotExecuted(self)
Returns a dictionary containing:...
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, _strTestSuiteName=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)

addTestCaseFromName(self, _strTestCaseName)

source code 

This method adds a test case give it's name to the test suite. If the test case cannot be loaded an error message is issued and it's name is added to the list of not executed test cases.

Returns: integer
NumberTestCaseFailure

addTestSuiteFromName(self, _strTestSuiteName)

source code 

This method adds a test suite give it's name to the test suite. If the test case cannot be loaded an error message is issued and it's name is added to the list of not executed test suites.

Returns: integer
NumberTestCaseFailure

processKernel(self)

source code 

This method executes the test suite.

Overrides: EDTest.EDTest.processKernel

postProcess(self)

source code 

This method writes out the results of the test suite.

Overrides: EDTest.EDTest.postProcess

extendDictionary(self, _dictBase, _dictExtend)

source code 

Helper function for "extending" a dictionary. Example: >>> a={"a":1, "b": 2} >>> b={"c":3, "d": 4} >>> extendDictionary(a,b) >>>a {"a":1, "b": 2, "c":3, "d": 4}

Parameters:
  • _dictBase (dict) - The dictionary to be extended
  • _dictExtend (dict) - The dictionary that will extend _dictBase

getNumberTestCaseFailure(self)

source code 

Total number of test cases ended with failure.

Returns: integer
NumberTestCaseFailure

getNumberTestCaseSuccess(self)

source code 

Total number of test cases ended with success.

Returns: integer
NumberTestCaseSuccess

getNumberTestMethodFailure(self)

source code 

Total number of test methods ending with failure.

Returns: integer
NumberTestMethodFailure

getNumberTestMethodSuccess(self)

source code 

Total number of test methods ending with success.

Returns: integer
NumberTestMethodSuccess

getDictTestCaseFailureMessages(self)

source code 

Returns a dictionary containing:
    Key   : Test case name with failed test method(s)
    Value : Dictionary with method names (keys) and error messages (values).
@return: TestCaseFailureMessages
@rtype: dict

getDictTestCaseNotExecuted(self)

source code 

Returns a dictionary containing:
    Key   : Test case name
    Value : Description of why the test case was not executed
@return: TestCaseNotExecuted
@rtype: dict

getDictTestSuiteNotExecuted(self)

source code 

Returns a dictionary containing:
    Key   : Test suite name
    Value : Description of why the test suite was not executed
@return: TestCaseNotExecuted
@rtype: list