def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseEDConfiguration") strKernelDataHome = EDUtilsTest.getPluginTestDataDirectory( self.getClassName()) strDataDir = "EDConfiguration" self.strDataPath = EDUtilsPath.mergePath(strKernelDataHome, strDataDir) self.strEdnaSiteOrig = EDUtilsPath.getEdnaSite()
def __init__(self, _pyStrTestName=None): EDTestCase.__init__(self, _pyStrTestName) strKernelDataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) strDataDir = "EDHandlerRaddosev10" self.strDataPath = EDUtilsPath.mergePath(strKernelDataHome, strDataDir) self.strReferenceInputFile2 = EDUtilsPath.mergePath(self.strDataPath, "XSDataRaddosev10Input_reference_02.xml") self.strObtainedInputFile2 = "XSDataInputRaddosev10FromObject_02.xml"
def __init__(self, _pyStrTestName=None): """ """ EDTestCase.__init__(self, _pyStrTestName) pyStrMXv1DataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) pyStrDataDir = "EDHandlerXDSv1_0" self.m_pyStrDataPath = os.path.join(pyStrMXv1DataHome, pyStrDataDir)
def __init__(self, _strTestName=None): EDTestCase.__init__(self, _strTestName) self.__edConfiguration = None edStrDataDir = "images" self.__edStrDataPath = os.path.join(self.getTestsDataHome(), edStrDataDir) self.__strFileName = "ref-testscale_1_001.img" self.__strFilePath = os.path.join(self.__edStrDataPath, self.__strFileName)
def __init__(self, _strTestName=None): EDTestCase.__init__(self, _strTestName) strMXv1DataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) strDataDir = "EDHandlerBestv1_2" self.strDataPath = os.path.join(strMXv1DataHome, strDataDir) self.strReferenceInputFile = os.path.join(self.strDataPath, "XSDataInputStrategy_reference.xml") self.strReferenceOutputFile = os.path.join(self.strDataPath, "XSDataResultBestv1_2_reference.xml")
def __init__(self, _pyStrTestName=None): """ """ EDTestCase.__init__(self, _pyStrTestName) pyStrMXv1DataHome = EDUtilsTest.getPluginTestDataDirectory( self.getClassName()) pyStrDataDir = "EDHandlerXDSv1_0" self.m_pyStrDataPath = os.path.join(pyStrMXv1DataHome, pyStrDataDir)
def __init__(self, _pyStrTestName=None): EDTestCase.__init__(self, _pyStrTestName) strKernelDataHome = EDUtilsTest.getPluginTestDataDirectory( self.getClassName()) strDataDir = "EDHandlerRaddosev10" self.strDataPath = EDUtilsPath.mergePath(strKernelDataHome, strDataDir) self.strReferenceInputFile2 = EDUtilsPath.mergePath( self.strDataPath, "XSDataRaddosev10Input_reference_02.xml") self.strObtainedInputFile2 = "XSDataInputRaddosev10FromObject_02.xml"
def __init__(self, _pyStrTestName=None): EDTestCase.__init__(self, _pyStrTestName) strMXv1DataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) strDataDir = "EDHandlerISPyBv1_3" self.strDataPath = os.path.join(strMXv1DataHome, strDataDir) self.dictReplace = {"${EDNA_TESTIMAGES}": EDUtilsPath.EDNA_TESTIMAGES, "${EDNA_HOME}": EDUtilsPath.getEdnaHome(), "${USER}": os.getenv("USER", "UndefindedUser"), "${TMPDIR}": os.getenv("TMPDIR", tempfile.gettempdir()), }
def __init__(self, _strTestName=None): EDTestCase.__init__(self, _strTestName) strMXv1DataHome = EDUtilsTest.getPluginTestDataDirectory( self.getClassName()) strDataDir = "EDHandlerBestv1_2" self.strDataPath = os.path.join(strMXv1DataHome, strDataDir) self.strReferenceInputFile = os.path.join( self.strDataPath, "XSDataInputStrategy_reference.xml") self.strReferenceOutputFile = os.path.join( self.strDataPath, "XSDataResultBestv1_2_reference.xml")
def __init__(self, _strTestName=None): EDTestCase.__init__(self, _strTestName) strDiffractionCTv1DataHome = EDUtilsTest.getPluginTestDataDirectory( self.getClassName()) strDataDir = "EDHandlerFIT2Dv1_0" self.m_strDataPath = os.path.abspath( os.path.join(strDiffractionCTv1DataHome, strDataDir)) self.m_strReferenceOutputFile = os.path.abspath( os.path.join(self.m_strDataPath, "XSDataResultFIT2DCake_reference.xml"))
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseEDUtilsTable") self.__edConfiguration = None strKernelDataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) strDataDir = "EDUtilsTable" self.__strDataPath = os.path.join(strKernelDataHome, strDataDir) self.__strFileName = "EDPluginBestv01_dnaTables.xml" self.__strFilePath = os.path.join(self.__strDataPath, self.__strFileName) self.__strFileName2 = "EDPluginBestv01_dnaTables2.xml" self.__strFilePath2 = os.path.join(self.__strDataPath, self.__strFileName2)
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
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseEDUtilsTable") self.__edConfiguration = None strKernelDataHome = EDUtilsTest.getPluginTestDataDirectory( self.getClassName()) strDataDir = "EDUtilsTable" self.__strDataPath = os.path.join(strKernelDataHome, strDataDir) self.__strFileName = "EDPluginBestv01_dnaTables.xml" self.__strFilePath = os.path.join(self.__strDataPath, self.__strFileName) self.__strFileName2 = "EDPluginBestv01_dnaTables2.xml" self.__strFilePath2 = os.path.join(self.__strDataPath, self.__strFileName2)
def preProcess(self): EDTestCase.preProcess(self) # Check if the plugin to be tested requires configuration edPlugin = self.createPlugin() if edPlugin is None: strErr = "Unable to create plugin %s: Check the corresponding module" % self.getPluginName() EDVerbose.ERROR(strErr) raise RuntimeError(strErr) if edPlugin.isRequiredToHaveConfiguration(): self.__listRequiredConfigurationPluginNames.append(self.getPluginName()) # Check if the required plugin parameters are available for strPluginName in self.__listRequiredConfigurationPluginNames: if self.getPluginConfiguration(strPluginName) is None: EDVerbose.DEBUG("EDTestCasePlugin.preProcess: plugin configuration NOT found for plugin %s" % strPluginName) self.setReasonForNotBeingExectuted("Missing configuration for %s" % strPluginName) else: EDVerbose.DEBUG("EDTestCasePlugin.preProcess: plugin configuration found for plugin %s" % strPluginName)
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()), }
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDUtilsArray") self.strXSDataArrayNumpy = """<?xml version="1.0" ?> <XSDataArray> <shape>10</shape> <shape>10</shape> <size>100</size> <dtype>uint8</dtype> <data>AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiYw==</data> <coding><value>base64</value></coding> <md5sum><value>7acedd1a84a4cfcb6e7a16003242945e</value></md5sum> </XSDataArray>""" self.xsDataArrayNumpy = XSDataArray.parseString( self.strXSDataArrayNumpy) self.strXSDataArrayNoNumpy = """<?xml version="1.0" ?> <XSDataArray> <shape>10</shape> <shape>10</shape> <size>100</size> <dtype>int64</dtype> <data>AAAAAAAAAAABAAAAAAAAAAIAAAAAAAAAAwAAAAAAAAAEAAAAAAAAAAUAAAAAAAAABgA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ray>""" self.arrayNoNumpy = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [20, 21, 22, 23, 24, 25, 26, 27, 28, 29], [30, 31, 32, 33, 34, 35, 36, 37, 38, 39], [40, 41, 42, 43, 44, 45, 46, 47, 48, 49], [50, 51, 52, 53, 54, 55, 56, 57, 58, 59], [60, 61, 62, 63, 64, 65, 66, 67, 68, 69], [70, 71, 72, 73, 74, 75, 76, 77, 78, 79], [80, 81, 82, 83, 84, 85, 86, 87, 88, 89], [90, 91, 92, 93, 94, 95, 96, 97, 98, 99]] if numpy is not None: self.arrayNumpy = numpy.arange(100, dtype="uint8").reshape( (10, 10)) else: self.arrayNumpy = self.arrayNoNumpy
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDUtilsArray") self.strXSDataArrayNumpy = """<?xml version="1.0" ?> <XSDataArray> <shape>10</shape> <shape>10</shape> <size>100</size> <dtype>uint8</dtype> <data>AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiYw==</data> <coding><value>base64</value></coding> <md5sum><value>7acedd1a84a4cfcb6e7a16003242945e</value></md5sum> </XSDataArray>""" self.xsDataArrayNumpy = XSDataArray.parseString(self.strXSDataArrayNumpy) self.strXSDataArrayNoNumpy = """<?xml version="1.0" ?> <XSDataArray> <shape>10</shape> <shape>10</shape> <size>100</size> <dtype>int64</dtype> <data>AAAAAAAAAAABAAAAAAAAAAIAAAAAAAAAAwAAAAAAAAAEAAAAAAAAAAUAAAAAAAAABgAAAAAAAAAHAAAAAAAAAAgAAAAAAAAACQAAAAAAAAAKAAAAAAAAAAsAAAAAAAAADAAAAAAAAAANAAAAAAAAAA4AAAAAAAAADwAAAAAAAAAQAAAAAAAAABEAAAAAAAAAEgAAAAAAAAATAAAAAAAAABQAAAAAAAAAFQAAAAAAAAAWAAAAAAAAABcAAAAAAAAAGAAAAAAAAAAZAAAAAAAAABoAAAAAAAAAGwAAAAAAAAAcAAAAAAAAAB0AAAAAAAAAHgAAAAAAAAAfAAAAAAAAACAAAAAAAAAAIQAAAAAAAAAiAAAAAAAAACMAAAAAAAAAJAAAAAAAAAAlAAAAAAAAACYAAAAAAAAAJwAAAAAAAAAoAAAAAAAAACkAAAAAAAAAKgAAAAAAAAArAAAAAAAAACwAAAAAAAAALQAAAAAAAAAuAAAAAAAAAC8AAAAAAAAAMAAAAAAAAAAxAAAAAAAAADIAAAAAAAAAMwAAAAAAAAA0AAAAAAAAADUAAAAAAAAANgAAAAAAAAA3AAAAAAAAADgAAAAAAAAAOQAAAAAAAAA6AAAAAAAAADsAAAAAAAAAPAAAAAAAAAA9AAAAAAAAAD4AAAAAAAAAPwAAAAAAAABAAAAAAAAAAEEAAAAAAAAAQgAAAAAAAABDAAAAAAAAAEQAAAAAAAAARQAAAAAAAABGAAAAAAAAAEcAAAAAAAAASAAAAAAAAABJAAAAAAAAAEoAAAAAAAAASwAAAAAAAABMAAAAAAAAAE0AAAAAAAAATgAAAAAAAABPAAAAAAAAAFAAAAAAAAAAUQAAAAAAAABSAAAAAAAAAFMAAAAAAAAAVAAAAAAAAABVAAAAAAAAAFYAAAAAAAAAVwAAAAAAAABYAAAAAAAAAFkAAAAAAAAAWgAAAAAAAABbAAAAAAAAAFwAAAAAAAAAXQAAAAAAAABeAAAAAAAAAF8AAAAAAAAAYAAAAAAAAABhAAAAAAAAAGIAAAAAAAAAYwAAAAAAAAA=</data> <coding><value>base64</value></coding> <md5sum><value>13e5d157161f66d98fe0b75ce51c982b</value></md5sum> </XSDataArray>""" self.arrayNoNumpy = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [10, 11, 12, 13, 14, 15, 16, 17, 18, 19], [20, 21, 22, 23, 24, 25, 26, 27, 28, 29], [30, 31, 32, 33, 34, 35, 36, 37, 38, 39], [40, 41, 42, 43, 44, 45, 46, 47, 48, 49], [50, 51, 52, 53, 54, 55, 56, 57, 58, 59], [60, 61, 62, 63, 64, 65, 66, 67, 68, 69], [70, 71, 72, 73, 74, 75, 76, 77, 78, 79], [80, 81, 82, 83, 84, 85, 86, 87, 88, 89], [90, 91, 92, 93, 94, 95, 96, 97, 98, 99]] if numpy is not None: self.arrayNumpy = numpy.arange(100, dtype="uint8").reshape((10, 10)) else: self.arrayNumpy = self.arrayNoNumpy
def __init__(self, _strTestName=None): EDTestCase.__init__(self, _strTestName) self.__edConfiguration = None
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseEDJob")
def postProcess(self): EDTestCase.postProcess(self) EDConfigurationStatic.setXSConfigurationItem(self._oldConfig)
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseEDUtilsFile")
def __init__(self, _strTestName="EDTestCaseEDPluginExecProcessScript"): EDTestCase.__init__(self, _strTestName)
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseEDConfiguration") strKernelDataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) strDataDir = "EDConfiguration" self.strDataPath = EDUtilsPath.mergePath(strKernelDataHome, strDataDir) self.strEdnaSiteOrig = EDUtilsPath.getEdnaSite()
def __init__(self, _strTestName=None): EDTestCase.__init__(self, _strTestName) strDiffractionCTv1DataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) strDataDir = "EDHandlerFIT2Dv1_0" self.m_strDataPath = os.path.abspath(os.path.join(strDiffractionCTv1DataHome, strDataDir)) self.m_strReferenceOutputFile = os.path.abspath(os.path.join(self.m_strDataPath, "XSDataResultFIT2DCake_reference.xml"))
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseEDServerXMLRCP")
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseEDFactoryPluginTest")
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDTestCaseParallelExecute") self.__edpluginPE = EDParallelExecute("EDPluginTestPluginFactory", fakeXML)
def __init__(self, _strTestName=None): EDTestCase.__init__(self, _strTestName) strMXv1DataHome = EDUtilsTest.getPluginTestDataDirectory( self.getClassName()) strDataDir = "EDHandlerMOSFLMv10" self.m_strDataPath = os.path.join(strMXv1DataHome, strDataDir)
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDUtilsPlatform")
def __init__(self, _testName=None): EDTestCase.__init__(self, _testName) dataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) dataDir = "EDHandlerXDSv1_0" self.dataPath = os.path.join(dataHome, dataDir)
def __init__(self, _pyStrTestName=None): EDTestCase.__init__(self, _pyStrTestName) strMXv1DataHome = EDUtilsTest.getPluginTestDataDirectory(self.getClassName()) strDataDir = "EDHandlerISPyBv1_1" self.strDataPath = os.path.join(strMXv1DataHome, strDataDir)
def __init__(self, _strTestName=None): EDTestCase.__init__(self, "EDUtilsUnit")