def __init__(self, _strTestName=None): EDTestCasePluginExecuteControlMedianFilterImagev1_0.__init__(self, "EDPluginControlMedianFilterImagev1_0") # self.setConfigurationFile(os.path.join(self.getPluginTestsDataHome(), # "XSConfiguration_MedianFilterImage.xml")) self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), \ "XSDataInputMedianFilterImage_reference.xml")) self.setReferenceDataOutputFile(os.path.join(self.getPluginTestsDataHome(), \ "XSDataResultMedianFilterImage_reference.xml"))
def __init__(self, _strTestName=None): EDTestCasePluginExecuteControlMedianFilterImagev1_0.__init__( self, "EDPluginControlMedianFilterImagev1_0") # self.setConfigurationFile(os.path.join(self.getPluginTestsDataHome(), # "XSConfiguration_MedianFilterImage.xml")) self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), \ "XSDataInputMedianFilterImage_reference.xml")) self.setReferenceDataOutputFile(os.path.join(self.getPluginTestsDataHome(), \ "XSDataResultMedianFilterImage_reference.xml"))
def preProcess(self): """ PreProcess of the execution test: download an EDF file from http://www.edna-site.org """ EDTestCasePluginExecuteControlMedianFilterImagev1_0.preProcess(self) self.loadTestImage([ "noise2.edf", "noise3.edf", "noise4.edf", "noise5.edf", "noise6.edf"]) acc = EDFactoryPluginStatic.loadPlugin("EDPluginAccumulatorv1_0") xsdIn = XSDataInputAccumulator() xsdIn.setItem([XSDataString(os.path.join(self.getTestsDataImagesHome(), "noise%i.edf" % i)) for i in [2, 3, 5, 6]]) acc.setDataInput(xsdIn) acc.executeSynchronous()
def preProcess(self): """ PreProcess of the execution test: download an EDF file from http://www.edna-site.org """ EDTestCasePluginExecuteControlMedianFilterImagev1_0.preProcess(self) self.loadTestImage([ "noise2.edf", "noise3.edf", "noise4.edf", "noise5.edf", "noise6.edf" ]) acc = EDFactoryPluginStatic.loadPlugin("EDPluginAccumulatorv1_0") xsdIn = XSDataInputAccumulator() xsdIn.setItem([ XSDataString( os.path.join(self.getTestsDataImagesHome(), "noise%i.edf" % i)) for i in [2, 3, 5, 6] ]) acc.setDataInput(xsdIn) acc.executeSynchronous()