当前位置: 首页>>代码示例>>Python>>正文


Python EDUtilsTest.getFactoryPluginTest方法代码示例

本文整理汇总了Python中EDUtilsTest.EDUtilsTest.getFactoryPluginTest方法的典型用法代码示例。如果您正苦于以下问题:Python EDUtilsTest.getFactoryPluginTest方法的具体用法?Python EDUtilsTest.getFactoryPluginTest怎么用?Python EDUtilsTest.getFactoryPluginTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EDUtilsTest.EDUtilsTest的用法示例。


在下文中一共展示了EDUtilsTest.getFactoryPluginTest方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from EDUtilsTest import EDUtilsTest [as 别名]
# 或者: from EDUtilsTest.EDUtilsTest import getFactoryPluginTest [as 别名]
 def __init__(self, _strPluginName, _strPluginDir=None, _strTestName=None):
     """
     Initialize the test case by determining the paths to the plugin home and plugin test directories.
     """
     EDTestCase.__init__(self, _strTestName)
     self._edPlugin = None
     self._strPluginName = _strPluginName
     self._strPluginHome = EDUtilsTest.getFactoryPluginTest().getModuleLocation(_strPluginName)
     self._strPluginTestsDataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName())
     self._listRequiredConfigurationPluginNames = []
     self._strConfigurationFile = None
开发者ID:edna-site,项目名称:edna,代码行数:13,代码来源:EDTestCasePlugin.py

示例2: addTestCaseFromName

# 需要导入模块: from EDUtilsTest import EDUtilsTest [as 别名]
# 或者: from EDUtilsTest.EDUtilsTest import getFactoryPluginTest [as 别名]
 def addTestCaseFromName(self, _strTestCaseName):
     """
     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.
     @return: NumberTestCaseFailure
     @rtype: integer 
     """
     edTestCase = None
     exceptionObject = None
     try:
         edTestCase = EDUtilsTest.getFactoryPluginTest().loadPlugin(_strTestCaseName)
     except exceptions.ImportError, exceptionObject:
         strWarningMessage = "Could not create the test case: %s, reason: %s" % (_strTestCaseName, exceptionObject)
         EDVerbose.WARNING(strWarningMessage)
         self.__dictTestCaseNotExecuted[_strTestCaseName] = "%s : %s" % (self.getClassName(), strWarningMessage)
开发者ID:olofsvensson,项目名称:edna-kernel,代码行数:18,代码来源:EDTestSuite.py

示例3: __init__

# 需要导入模块: from EDUtilsTest import EDUtilsTest [as 别名]
# 或者: from EDUtilsTest.EDUtilsTest import getFactoryPluginTest [as 别名]
 def __init__(self, _strPluginName, _strPluginDir=None, _strTestName=None):
     """
     Initialize the test case by determining the paths to the plugin home and plugin test directories.
     """
     EDTestCase.__init__(self, _strTestName)
     self.__strPluginName = _strPluginName
     self.__strTestsDataDir = None
     self.__strPluginTestsDataDir = None
     self.__strPluginHome = EDUtilsTest.getFactoryPluginTest().getModuleLocation(_strPluginName)
     self.__strPluginTestsDataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName())
     self.__listRequiredConfigurationPluginNames = []
     self.__strConfigurationFile = None
     self.__dictConfigurations = {} #key=pluginName ; value=config
     self.dictReplace = {"${EDNA_TESTS_DATA_HOME}": EDUtilsTest.getTestsDataHome(),
                    "${EDNA_PLUGIN_TESTS_DATA_HOME}" : self.getPluginTestsDataHome(),
                    "${EDNA_HOME}": EDUtilsPath.getEdnaHome(),
                    "${USER}":  os.getenv("USER", "UndefindedUser"),
                    "${TMPDIR}": os.getenv("TMPDIR", tempfile.gettempdir()),
                     }
开发者ID:olofsvensson,项目名称:edna-kernel,代码行数:21,代码来源:EDTestCasePlugin.py

示例4: __init__

# 需要导入模块: from EDUtilsTest import EDUtilsTest [as 别名]
# 或者: from EDUtilsTest.EDUtilsTest import getFactoryPluginTest [as 别名]
 def __init__(self):
     """
     """
     EDTestCasePluginExecute.__init__(self, "EDPluginTestPluginFactory")
     strModuleLocation = EDUtilsTest.getFactoryPluginTest().getModuleLocation("EDPluginTestPluginFactory")
     strRootDirectory = EDUtilsPath.appendListOfPaths(strModuleLocation, [ "..", "tests", "data" ])
     # Default input
     self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"))
     self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"))
     # Named input
     self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"), "value1")
     self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"), "value1")
     # List input
     self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"), "value2")
     self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"), "value2")
     self.setDataInputFile(os.path.join(strRootDirectory, "XSDataInputString_reference.xml"), "value2")
     self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"), "value2")
     self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"), "value2")
     self.setReferenceDataOutputFile(os.path.join(strRootDirectory, "XSDataResultString_reference.xml"), "value2")
开发者ID:IvarsKarpics,项目名称:edna-mx,代码行数:21,代码来源:EDTestCasePluginExecuteTestPlugin.py

示例5: preProcess

# 需要导入模块: from EDUtilsTest import EDUtilsTest [as 别名]
# 或者: from EDUtilsTest.EDUtilsTest import getFactoryPluginTest [as 别名]
 def preProcess(self):
     """
     Scans the command line.
     """
     EDVerbose.DEBUG("EDTestLauncher.preProcess")
     edCommandLine = EDCommandLine(sys.argv)
     EDVerbose.log(self.getEdCommandLine().getCommandLine())
     self.processCommandLineDebugVerboseLogFile()
     bContinue = True
     strTestName = edCommandLine.getArgument(EDTestLauncher.TEST_LABEL)
     EDVerbose.DEBUG("EDTestLauncher.preProcess: test name = %r" % strTestName)
     if (strTestName is None):
         EDVerbose.screen("ERROR - no --test argument found")
         bContinue = False
     else:
         self.__edTestCase = EDUtilsTest.getFactoryPluginTest().loadPlugin(strTestName)
     if (bContinue):
         # Determine the base directory
         if(self.getBaseDir() is None):
             self.processCommandLineBaseDirectory()
         # Create the application working directory  
         strApplicationInstanceName = strTestName + "_" + time.strftime("%Y%m%d-%H%M%S", time.localtime())
         if(self.getWorkingDir() is None):
             self.setWorkingDir(strApplicationInstanceName)
         self.createApplicationWorkingDirectory()
         # Set the name of the log file
         EDVerbose.setLogFileName(os.path.join(self.getBaseDir(), strApplicationInstanceName + ".log"))
         # The check for --quiet and --DEBUG should ideally be placed elsewhere,
         # for example in EDApplication.
         if (edCommandLine.existCommand(EDTestLauncher.QUIET_LABEL)):
             EDVerbose.setVerboseOff()
             EDVerbose.setTestOff()
         if (edCommandLine.existCommand(EDApplication.DEBUG_PARAM_LABEL_1) or \
             edCommandLine.existCommand(EDApplication.DEBUG_PARAM_LABEL_2)):
             EDVerbose.setVerboseDebugOn()
             EDVerbose.DEBUG("EDTestLauncher.preProcess: Debug mode")
开发者ID:gbourgh,项目名称:edna,代码行数:38,代码来源:EDTestLauncher.py


注:本文中的EDUtilsTest.EDUtilsTest.getFactoryPluginTest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。