TestCenter Reference
TestCenterAdvanced.Config.Configuration Class Reference

Public Member Functions

 __init__ (self, filePath=None, autoSave=True, isTestCaseManager=False)
 Loads configuration from given file or creates configuration with default values.
 fetchMLABSettings (self, xmlRoot)
 fetchReportSettings (self, xmlRoot)
 fetchReportNodeSettings (self, xmlRoot)
 fetchTestCaseManagerSettings (self, xmlRoot)
 storeTestCaseManagerSettings (self, xmlRoot)
 fetchCoverageSettings (self, xmlRoot)
 fetchBullseyeCoverageSettings (self, coverageNode)
 fetchUseBullseyeCoverage (self, bullseyeNode)
 fetchPythonCoverageSettings (self, coverageNode)
 fetchUsePythonCoverage (self, pythonCoverageNode)
 fetchUseGlobalPythonCoverage (self, pythonCoverageNode)
 fetchPythonCoverageExclusionExpressions (self, coverageNode)
 fetchPythonCoverageInclusionExpressions (self, coverageNode)
 fetchIPCSettings (self, xmlRoot)
 save (self, filename=None)
 Save the configuration variables set to the file with the given name.
 getSlaveLogFilePath (self)
 setResultDir (self, directory)
 getResultDir (self)
 getResultFile (self)
 getMLABCurrentBinariesPath (self)
 getMLABBinariesPath (self)
 getMLABUseCurrent (self)
 getMLABEffectiveBinariesPath (self)
 getMLABExecutableCommand (self)
 getMLABArguments (self)
 getMLABCompileMode (self)
 useMLABDebugVersion (self)
 setMLABUseDebug (self, useDebug)
 shouldReloadPythonModulesWhenReloadingTestCases (self)
 setTestCaseManagerOptions (self, shouldReloadPythonModulesWhenReloadingTestCases)
 getMLABTestCenterCommand (self, macroName)
 setMLABExecutablePath (self, executablePath)
 setMLABUseCurrent (self, usecurrent)
 setMLABArguments (self, arguments)
 setMLABCompileMode (self, value)
 getDefaultTestTimeoutSeconds (self)
 getConfigFilePath (self)
 getReportOptions (self)
 setReportOptions (self, directory, name, timestampTemplate, appendTestCaseName, appendTimestamp, collapseFunctions, showFailedFunctionsOnly, hideInfoMessages, hideSystemMessages)
 getReportDirectory (self)
 getReportName (self)
 getReportTimestampTemplate (self)
 appendTestCaseNameToReportName (self)
 appendTimestampToReportName (self)
 collapseFunctions (self)
 showFailedFunctionsOnly (self)
 hideInfoMessages (self)
 hideSystemMessages (self)
 getCoverageExclusions (self)
 getCoverageInclusions (self)
 isPythonCoverageEnabled (self)
 isGlobalPythonCoverageEnabled (self)
 setPythonCoverageEnabled (self, value)
 setGlobalPythonCoverageEnabled (self, value)
 isBullseyeCoverageEnabled (self)
 setBullseyeCoverageEnabled (self, value)
 getRestartInterval (self)
 getMaxTestTimeoutSeconds (self)
 getIPCConnectionTimeout (self)

Static Public Member Functions

 nodeHasValidText (node)
 getBoolean (node, default, attributeName)
 getInteger (node, default, attributeName)
 findMLABExecutable (basePath, executableName, subPath)
 Searches for the executable in the basePath and all levels of the provided subPath in a 'deepest first' manner.

Detailed Description

Definition at line 96 of file Config.py.

Constructor & Destructor Documentation

◆ __init__()

TestCenterAdvanced.Config.Configuration.__init__ ( self,
filePath = None,
autoSave = True,
isTestCaseManager = False )

Member Function Documentation

◆ appendTestCaseNameToReportName()

TestCenterAdvanced.Config.Configuration.appendTestCaseNameToReportName ( self)

Definition at line 622 of file Config.py.

References __report.

◆ appendTimestampToReportName()

TestCenterAdvanced.Config.Configuration.appendTimestampToReportName ( self)

Definition at line 625 of file Config.py.

References __report.

◆ collapseFunctions()

TestCenterAdvanced.Config.Configuration.collapseFunctions ( self)

Definition at line 628 of file Config.py.

References __report.

◆ fetchBullseyeCoverageSettings()

TestCenterAdvanced.Config.Configuration.fetchBullseyeCoverageSettings ( self,
coverageNode )

Definition at line 359 of file Config.py.

References fetchUseBullseyeCoverage().

Referenced by fetchCoverageSettings().

◆ fetchCoverageSettings()

TestCenterAdvanced.Config.Configuration.fetchCoverageSettings ( self,
xmlRoot )

Definition at line 353 of file Config.py.

References fetchBullseyeCoverageSettings(), and fetchPythonCoverageSettings().

Referenced by __init__().

◆ fetchIPCSettings()

TestCenterAdvanced.Config.Configuration.fetchIPCSettings ( self,
xmlRoot )

Definition at line 401 of file Config.py.

References __ipcConnectionTimeout, and nodeHasValidText().

Referenced by __init__().

◆ fetchMLABSettings()

◆ fetchPythonCoverageExclusionExpressions()

TestCenterAdvanced.Config.Configuration.fetchPythonCoverageExclusionExpressions ( self,
coverageNode )

Definition at line 381 of file Config.py.

References __pythonCoverageExclusionExpressions.

Referenced by fetchPythonCoverageSettings().

◆ fetchPythonCoverageInclusionExpressions()

TestCenterAdvanced.Config.Configuration.fetchPythonCoverageInclusionExpressions ( self,
coverageNode )

Definition at line 391 of file Config.py.

References __pythonCoverageInclusionExpressions.

Referenced by fetchPythonCoverageSettings().

◆ fetchPythonCoverageSettings()

TestCenterAdvanced.Config.Configuration.fetchPythonCoverageSettings ( self,
coverageNode )

◆ fetchReportNodeSettings()

TestCenterAdvanced.Config.Configuration.fetchReportNodeSettings ( self,
xmlRoot )

Definition at line 295 of file Config.py.

References __report, getBoolean(), and getInteger().

Referenced by fetchReportSettings().

◆ fetchReportSettings()

TestCenterAdvanced.Config.Configuration.fetchReportSettings ( self,
xmlRoot )

Definition at line 280 of file Config.py.

References __report, fetchReportNodeSettings(), and nodeHasValidText().

Referenced by __init__().

◆ fetchTestCaseManagerSettings()

TestCenterAdvanced.Config.Configuration.fetchTestCaseManagerSettings ( self,
xmlRoot )

Definition at line 343 of file Config.py.

References __shouldReloadPythonModulesWhenReloadingTestCases, and getBoolean().

Referenced by __init__().

◆ fetchUseBullseyeCoverage()

TestCenterAdvanced.Config.Configuration.fetchUseBullseyeCoverage ( self,
bullseyeNode )

Definition at line 364 of file Config.py.

References __useBullseyeCoverage, and getBoolean().

Referenced by fetchBullseyeCoverageSettings().

◆ fetchUseGlobalPythonCoverage()

TestCenterAdvanced.Config.Configuration.fetchUseGlobalPythonCoverage ( self,
pythonCoverageNode )

Definition at line 378 of file Config.py.

References __useGlobalPythonCoverage, and getBoolean().

Referenced by fetchPythonCoverageSettings().

◆ fetchUsePythonCoverage()

TestCenterAdvanced.Config.Configuration.fetchUsePythonCoverage ( self,
pythonCoverageNode )

Definition at line 375 of file Config.py.

References __usePythonCoverage, and getBoolean().

Referenced by fetchPythonCoverageSettings().

◆ findMLABExecutable()

TestCenterAdvanced.Config.Configuration.findMLABExecutable ( basePath,
executableName,
subPath )
static

Searches for the executable in the basePath and all levels of the provided subPath in a 'deepest first' manner.

Definition at line 497 of file Config.py.

Referenced by getMLABExecutableCommand().

◆ getBoolean()

TestCenterAdvanced.Config.Configuration.getBoolean ( node,
default,
attributeName )
static

◆ getConfigFilePath()

TestCenterAdvanced.Config.Configuration.getConfigFilePath ( self)

Definition at line 583 of file Config.py.

References __configFilePath.

Referenced by __init__().

◆ getCoverageExclusions()

TestCenterAdvanced.Config.Configuration.getCoverageExclusions ( self)

Definition at line 640 of file Config.py.

References __pythonCoverageExclusionExpressions.

◆ getCoverageInclusions()

TestCenterAdvanced.Config.Configuration.getCoverageInclusions ( self)

Definition at line 643 of file Config.py.

References __pythonCoverageInclusionExpressions.

◆ getDefaultTestTimeoutSeconds()

TestCenterAdvanced.Config.Configuration.getDefaultTestTimeoutSeconds ( self)

Definition at line 580 of file Config.py.

References __defaultTestTimeoutSeconds.

◆ getInteger()

TestCenterAdvanced.Config.Configuration.getInteger ( node,
default,
attributeName )
static

Definition at line 332 of file Config.py.

Referenced by fetchReportNodeSettings().

◆ getIPCConnectionTimeout()

TestCenterAdvanced.Config.Configuration.getIPCConnectionTimeout ( self)

Definition at line 670 of file Config.py.

References __ipcConnectionTimeout.

◆ getMaxTestTimeoutSeconds()

TestCenterAdvanced.Config.Configuration.getMaxTestTimeoutSeconds ( self)

Definition at line 667 of file Config.py.

References __maxTestTimeoutSeconds.

◆ getMLABArguments()

TestCenterAdvanced.Config.Configuration.getMLABArguments ( self)

Definition at line 534 of file Config.py.

References __MLABArguments.

Referenced by getMLABTestCenterCommand().

◆ getMLABBinariesPath()

TestCenterAdvanced.Config.Configuration.getMLABBinariesPath ( self)

Definition at line 487 of file Config.py.

References __MLABExecutablePath.

Referenced by __init__(), and getMLABEffectiveBinariesPath().

◆ getMLABCompileMode()

TestCenterAdvanced.Config.Configuration.getMLABCompileMode ( self)

Definition at line 537 of file Config.py.

References __MLABCompileMode.

◆ getMLABCurrentBinariesPath()

TestCenterAdvanced.Config.Configuration.getMLABCurrentBinariesPath ( self)

Definition at line 484 of file Config.py.

References __MLABCurrentExecutablePath.

Referenced by getMLABEffectiveBinariesPath().

◆ getMLABEffectiveBinariesPath()

TestCenterAdvanced.Config.Configuration.getMLABEffectiveBinariesPath ( self)

◆ getMLABExecutableCommand()

TestCenterAdvanced.Config.Configuration.getMLABExecutableCommand ( self)

◆ getMLABTestCenterCommand()

TestCenterAdvanced.Config.Configuration.getMLABTestCenterCommand ( self,
macroName )

Definition at line 560 of file Config.py.

References __configFilePath, getMLABArguments(), and getMLABExecutableCommand().

◆ getMLABUseCurrent()

TestCenterAdvanced.Config.Configuration.getMLABUseCurrent ( self)

Definition at line 490 of file Config.py.

References __MLABUseCurrent.

Referenced by getMLABEffectiveBinariesPath().

◆ getReportDirectory()

TestCenterAdvanced.Config.Configuration.getReportDirectory ( self)

Definition at line 613 of file Config.py.

References __report.

◆ getReportName()

TestCenterAdvanced.Config.Configuration.getReportName ( self)

Definition at line 616 of file Config.py.

References __report.

◆ getReportOptions()

TestCenterAdvanced.Config.Configuration.getReportOptions ( self)

Definition at line 586 of file Config.py.

References __report.

◆ getReportTimestampTemplate()

TestCenterAdvanced.Config.Configuration.getReportTimestampTemplate ( self)

Definition at line 619 of file Config.py.

References __report.

◆ getRestartInterval()

TestCenterAdvanced.Config.Configuration.getRestartInterval ( self)

Definition at line 664 of file Config.py.

References __mMLABRestartInterval.

◆ getResultDir()

TestCenterAdvanced.Config.Configuration.getResultDir ( self)

Definition at line 478 of file Config.py.

References __resultOutputDirectory.

◆ getResultFile()

TestCenterAdvanced.Config.Configuration.getResultFile ( self)

Definition at line 481 of file Config.py.

References __resultOutputDirectory, and __xmlResultFileName.

◆ getSlaveLogFilePath()

TestCenterAdvanced.Config.Configuration.getSlaveLogFilePath ( self)

Definition at line 472 of file Config.py.

References __MLABSlaveLogFileName, and __resultOutputDirectory.

◆ hideInfoMessages()

TestCenterAdvanced.Config.Configuration.hideInfoMessages ( self)

Definition at line 634 of file Config.py.

References __report.

◆ hideSystemMessages()

TestCenterAdvanced.Config.Configuration.hideSystemMessages ( self)

Definition at line 637 of file Config.py.

References __report.

◆ isBullseyeCoverageEnabled()

TestCenterAdvanced.Config.Configuration.isBullseyeCoverageEnabled ( self)

Definition at line 658 of file Config.py.

References __useBullseyeCoverage.

◆ isGlobalPythonCoverageEnabled()

TestCenterAdvanced.Config.Configuration.isGlobalPythonCoverageEnabled ( self)

Definition at line 649 of file Config.py.

References __useGlobalPythonCoverage.

◆ isPythonCoverageEnabled()

TestCenterAdvanced.Config.Configuration.isPythonCoverageEnabled ( self)

Definition at line 646 of file Config.py.

References __usePythonCoverage.

◆ nodeHasValidText()

TestCenterAdvanced.Config.Configuration.nodeHasValidText ( node)
static

Definition at line 229 of file Config.py.

Referenced by fetchIPCSettings(), fetchMLABSettings(), and fetchReportSettings().

◆ save()

TestCenterAdvanced.Config.Configuration.save ( self,
filename = None )

Save the configuration variables set to the file with the given name.

Attention
If the given filename does exists the file is overwritten! This method is made public such that external changes can be saved.

Definition at line 409 of file Config.py.

References __configFilePath, __defaultTestTimeoutSeconds, __ipcConnectionTimeout, __maxTestTimeoutSeconds, __MLABArguments, __MLABCompileMode, __MLABExecutablePath, __MLABSlaveLogFileName, __MLABUseCurrent, __mMLABRestartInterval, __pythonCoverageExclusionExpressions, __pythonCoverageInclusionExpressions, __report, __resultOutputDirectory, __useBullseyeCoverage, __useGlobalPythonCoverage, __usePythonCoverage, __xmlResultFileName, and storeTestCaseManagerSettings().

Referenced by __init__().

◆ setBullseyeCoverageEnabled()

TestCenterAdvanced.Config.Configuration.setBullseyeCoverageEnabled ( self,
value )

Definition at line 661 of file Config.py.

References __useBullseyeCoverage.

◆ setGlobalPythonCoverageEnabled()

TestCenterAdvanced.Config.Configuration.setGlobalPythonCoverageEnabled ( self,
value )

Definition at line 655 of file Config.py.

References __useGlobalPythonCoverage.

◆ setMLABArguments()

TestCenterAdvanced.Config.Configuration.setMLABArguments ( self,
arguments )

Definition at line 574 of file Config.py.

References __MLABArguments.

◆ setMLABCompileMode()

TestCenterAdvanced.Config.Configuration.setMLABCompileMode ( self,
value )

Definition at line 577 of file Config.py.

References __MLABCompileMode.

◆ setMLABExecutablePath()

TestCenterAdvanced.Config.Configuration.setMLABExecutablePath ( self,
executablePath )

Definition at line 567 of file Config.py.

References __MLABExecutablePath.

◆ setMLABUseCurrent()

TestCenterAdvanced.Config.Configuration.setMLABUseCurrent ( self,
usecurrent )

Definition at line 571 of file Config.py.

References __MLABUseCurrent.

◆ setMLABUseDebug()

TestCenterAdvanced.Config.Configuration.setMLABUseDebug ( self,
useDebug )

Definition at line 548 of file Config.py.

References __MLABCompileMode.

◆ setPythonCoverageEnabled()

TestCenterAdvanced.Config.Configuration.setPythonCoverageEnabled ( self,
value )

Definition at line 652 of file Config.py.

References __usePythonCoverage.

◆ setReportOptions()

TestCenterAdvanced.Config.Configuration.setReportOptions ( self,
directory,
name,
timestampTemplate,
appendTestCaseName,
appendTimestamp,
collapseFunctions,
showFailedFunctionsOnly,
hideInfoMessages,
hideSystemMessages )

Definition at line 589 of file Config.py.

References __report.

◆ setResultDir()

TestCenterAdvanced.Config.Configuration.setResultDir ( self,
directory )

Definition at line 475 of file Config.py.

References __resultOutputDirectory.

◆ setTestCaseManagerOptions()

TestCenterAdvanced.Config.Configuration.setTestCaseManagerOptions ( self,
shouldReloadPythonModulesWhenReloadingTestCases )

Definition at line 557 of file Config.py.

References __shouldReloadPythonModulesWhenReloadingTestCases.

◆ shouldReloadPythonModulesWhenReloadingTestCases()

TestCenterAdvanced.Config.Configuration.shouldReloadPythonModulesWhenReloadingTestCases ( self)

Definition at line 554 of file Config.py.

References __shouldReloadPythonModulesWhenReloadingTestCases.

◆ showFailedFunctionsOnly()

TestCenterAdvanced.Config.Configuration.showFailedFunctionsOnly ( self)

Definition at line 631 of file Config.py.

References __report.

◆ storeTestCaseManagerSettings()

TestCenterAdvanced.Config.Configuration.storeTestCaseManagerSettings ( self,
xmlRoot )

Definition at line 349 of file Config.py.

References __shouldReloadPythonModulesWhenReloadingTestCases.

Referenced by save().

◆ useMLABDebugVersion()

TestCenterAdvanced.Config.Configuration.useMLABDebugVersion ( self)

Definition at line 540 of file Config.py.

References __MLABCompileMode.

Referenced by getMLABExecutableCommand().


The documentation for this class was generated from the following file:
  • MeVisLab/Standard/Modules/Macros/Tests/TestCenterAdvanced/Config.py