def __init__(self, _strTestName=None): """ """ EDTestCasePluginExecuteControlCharacterisationv2_0.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv2_0With2Sweep",) self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_reference_2_sweep.xml") , "mxv1InputCharacterisation")
def testExecute(self): EDTestCasePluginExecuteControlCharacterisationv2_0.testExecute(self) plugin = self.getPlugin() xsDataCharacterisation = plugin.getDataOutput() xsDataCollectionPlanList = xsDataCharacterisation.getStrategyResult( ).getCollectionPlan() EDAssert.equal(2, len(xsDataCollectionPlanList), "Length of xsDataCollectionPlanList should be 2") strRankingResolutionInitial = xsDataCollectionPlanList[ 1].getStrategySummary().getResolutionReasoning().getValue() EDAssert.equal( "Resolution limit is set by the initial image resolution", strRankingResolutionInitial) #Ric: to avoid error: strRankingResolutionLow = xsDataCollectionPlanList[ 0].getStrategySummary().getResolutionReasoning().getValue() if (plugin.m_strPluginStrategyName == "EDPluginControlStrategyv1_1"): EDAssert.equal("Low-resolution pass, no overloads", strRankingResolutionLow, "(Low-resolution pass, no overloads)") elif (plugin.m_strPluginStrategyName == "EDPluginControlStrategyv1_2"): EDAssert.equal( "Low-resolution pass, no overloads and full completeness", strRankingResolutionLow, "(Low-resolution pass, no overloads and full completeness)")
def __init__(self, _strTestName=None): EDTestCasePluginExecuteControlCharacterisationv2_0.__init__( self, "EDTestCasePluginExecuteControlCharacterisationv2_0withAnomalousData" ) self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile( os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_withAnomalousData.xml"), "mxv1InputCharacterisation")
def __init__(self, _strTestName=None): """ """ EDTestCasePluginExecuteControlCharacterisationv2_0.__init__( self, "EDTestCasePluginExecuteControlCharacterisationv2_0With2Sweep", ) self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile( os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_reference_2_sweep.xml"), "mxv1InputCharacterisation")
def testExecute(self): EDTestCasePluginExecuteControlCharacterisationv2_0.testExecute(self) plugin = self.getPlugin() xsDataCharacterisation = plugin.getDataOutput() xsDataCollectionPlanList = xsDataCharacterisation.getStrategyResult().getCollectionPlan() EDAssert.equal(2, len(xsDataCollectionPlanList), "Length of xsDataCollectionPlanList should be 2") strRankingResolutionInitial = xsDataCollectionPlanList[1].getStrategySummary().getResolutionReasoning().getValue() EDAssert.equal("Resolution limit is set by the initial image resolution", strRankingResolutionInitial) #Ric: to avoid error: strRankingResolutionLow = xsDataCollectionPlanList[0].getStrategySummary().getResolutionReasoning().getValue() if (plugin.m_strPluginStrategyName == "EDPluginControlStrategyv1_1"): EDAssert.equal("Low-resolution pass, no overloads", strRankingResolutionLow, "(Low-resolution pass, no overloads)") elif (plugin.m_strPluginStrategyName == "EDPluginControlStrategyv1_2"): EDAssert.equal("Low-resolution pass, no overloads and full completeness", strRankingResolutionLow, "(Low-resolution pass, no overloads and full completeness)")
def __init__(self, _strTestName=None): EDTestCasePluginExecuteControlCharacterisationv2_0.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv2_0withAnomalousData") self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_withAnomalousData.xml") , "mxv1InputCharacterisation")
def preProcess(self): EDTestCasePluginExecuteControlCharacterisationv2_0.preProcess(self) self.loadTestImage([ "ref-thermo1_1_001.img", "ref-thermo1_1_002.img" ])
def preProcess(self): EDTestCasePluginExecuteControlCharacterisationv2_0.preProcess(self) self.loadTestImage(["ref-thermo1_1_001.img", "ref-thermo1_1_002.img"])