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

Class EDTestCasePlugin

source code

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

This is the main test class to test a plugin (Unit and Execution)

Instance Methods [hide private]
 
__init__(self, _strPluginName, _strPluginDir=None, _strTestName=None)
Initialize the test case by determining the paths to the plugin home and plugin test directories.
source code
 
preProcess(self)
to be overwritten
source code
 
getPluginConfig(self, _strPluginName=None) source code
 
getPluginConfiguration(*arg, **kw)
decorator that deprecates the use of a function
source code
 
setConfigurationFile(self, _strConfigurationFile)
Sets the configuration file
source code
 
getConfigurationFile(self)
Returns the configuration file
source code
 
setRequiredPluginConfiguration(self, _strPluginName=None) source code
 
createPlugin(self)
Creates a plugin instance
source code
 
getPlugin(self)
Returns the plugin instance
source code
 
getPluginName(self)
Returns the plugin name
source code
 
getPluginHome(self)
Returns the plugin home directory
source code
 
getPluginTestsDataHome(self)
Returns the plugin test data home directory
source code
 
setPluginTestsDataHome(self, _strPluginTestsDataHome)
Sets the plugin test data home directory
source code
 
loadTestImage(self, _listImageFileName)
This method checks the presence of all the images in the list of image file names in the $EDNA_HOME/tests/data/images directory.
source code
 
getDictReplace(self) source code
 
readAndParseFile(self, _strFileName)
Reads a file and parses potential existing environment variables such as:
source code

Inherited from EDTestCase.EDTestCase: getMethodFailureMessages, getNumberTestMethodFailure, getNumberTestMethodSuccess, getReasonForNotBeingExectuted, getTestSuiteName, getTestsDataHome, getTestsDataImagesHome, getTestsHome, isExecuted, postProcess, processKernel, setReasonForNotBeingExectuted, setTestSuiteName

Inherited from EDTest.EDTest: addTestMethod, execute, executeKernel, getListTest, getNumberOfTests, getTestName, 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]
  URL_EDNA_SITE = 'http://www.edna-site.org/data/tests/images'

Inherited from EDLogging.EDLogging (private): _EDObject__iId_class

Properties [hide private]
  plugin
read-only only property
  pluginName
read-only property
  pluginHome
read-only property
  pluginTestDataHome
Returns the plugin test data home directory
  dictReplace
Read-only property

Inherited from object: __class__

Method Details [hide private]

__init__(self, _strPluginName, _strPluginDir=None, _strTestName=None)
(Constructor)

source code 

Initialize the test case by determining the paths to the plugin home and plugin test directories.

Overrides: object.__init__

preProcess(self)

source code 

to be overwritten

Overrides: EDTest.EDTest.preProcess
(inherited documentation)

getPluginConfiguration(*arg, **kw)

source code 

decorator that deprecates the use of a function

Decorators:
  • @deprecated

loadTestImage(self, _listImageFileName)

source code 

This method checks the presence of all the images in the list of image file names in the $EDNA_HOME/tests/data/images directory. If one image is not present this method tries to download it from http://www.edna-site.org/data/tests/images

readAndParseFile(self, _strFileName)

source code 

Reads a file and parses potential existing environment variables such as:

  • EDNA_TESTS_DATA_HOME
  • EDNA_PLUGIN_TESTS_DATA_HOME
  • EDNA_HOME
  • USER
  • TMPDIR

All those key are defined in a class dictionary

Returns the content of this file as a string


Property Details [hide private]

plugin

read-only only property

Get Method:
getPlugin(self) - Returns the plugin instance

pluginName

read-only property

Get Method:
getPluginName(self) - Returns the plugin name

pluginHome

read-only property

Get Method:
getPluginHome(self) - Returns the plugin home directory

pluginTestDataHome

Returns the plugin test data home directory

Get Method:
getPluginTestsDataHome(self) - Returns the plugin test data home directory
Set Method:
setPluginTestsDataHome(self, _strPluginTestsDataHome) - Sets the plugin test data home directory
Delete Method:
'pluginTestDataHome is the data directory in the plugin\'s tests'

dictReplace

Read-only property

Get Method:
getDictReplace(self)