def testExecute(self): EDTestCasePluginExecuteControlCharacterisationv1_1.testExecute(self) plugin = self.getPlugin() xsDataCharacterisation = plugin.getDataOutput() xsDataCollectionPlanList = xsDataCharacterisation.getStrategyResult( ).getCollectionPlan() EDAssert.equal(2, len(xsDataCollectionPlanList)) 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.getPluginStrategyName == "EDPluginControlStrategyv1_1"): EDAssert.equal("Low-resolution pass, no overloads", strRankingResolutionLow) elif (plugin.getPluginStrategyName == "EDPluginControlStrategyv1_2"): EDAssert.equal( "Low-resolution pass, no overloads and full completeness", strRankingResolutionLow)
def __init__(self, _strTestName=None): EDTestCasePluginExecuteControlCharacterisationv1_1.__init__( self, " EDTestCasePluginExecuteControlCharacterisationv1_1_withDamPar" ) self.setDataInputFile( os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_reference_withDamPar.xml") )
def __init__(self, _strTestName=None): EDTestCasePluginExecuteControlCharacterisationv1_1.__init__( self, " EDTestCasePluginExecuteControlCharacterisationv1_1_withDamPar") self.setDataInputFile( os.path.join( self.getPluginTestsDataHome(), "XSDataInputCharacterisation_reference_withDamPar.xml"))
def __init__(self, _edStringTestName=None): EDTestCasePluginExecuteControlCharacterisationv1_1.__init__( self, "EDTestCasePluginExecuteControlCharacterisationv1_1With2Sweep") self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile( os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_reference_2_sweep.xml")) self.setNoExpectedWarningMessages(2)
def __init__(self, _oedStringTestName=None): EDTestCasePluginExecuteControlCharacterisationv1_1.__init__( self, "EDTestCasePluginExecuteControlCharacterisationv1_1withAnomalousData" ) self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile( os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_withAnomalousData.xml"))
def __init__(self, _oedStringTestName=None): EDTestCasePluginExecuteControlCharacterisationv1_1.__init__( self, "EDTestCasePluginExecuteControlCharacterisationv1_1withForcedSpaceGroup" ) self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile( os.path.join( self.getPluginTestsDataHome(), "XSDataInputCharacterisation_withForcedSpaceGroup.xml")) self.setNoExpectedWarningMessages(1)
def testExecute(self): EDTestCasePluginExecuteControlCharacterisationv1_1.testExecute(self) plugin = self.getPlugin() xsDataCharacterisation = plugin.getDataOutput() xsDataCollectionPlanList = xsDataCharacterisation.getStrategyResult().getCollectionPlan() EDAssert.equal(2, len(xsDataCollectionPlanList)) 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.getPluginStrategyName == "EDPluginControlStrategyv1_1"): EDAssert.equal("Low-resolution pass, no overloads", strRankingResolutionLow) elif (plugin.getPluginStrategyName == "EDPluginControlStrategyv1_2"): EDAssert.equal("Low-resolution pass, no overloads and full completeness", strRankingResolutionLow)
def preProcess(self): EDTestCasePluginExecuteControlCharacterisationv1_1.preProcess(self) self.loadTestImage(["ref-thermo1_1_001.img", "ref-thermo1_1_002.img"])
def __init__(self, _oedStringTestName=None): EDTestCasePluginExecuteControlCharacterisationv1_1.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_1withForcedSpaceGroup") self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_withForcedSpaceGroup.xml")) self.setNoExpectedWarningMessages(1)
def preProcess(self): EDTestCasePluginExecuteControlCharacterisationv1_1.preProcess(self) self.loadTestImage([ "ref-thermo1_1_001.img", "ref-thermo1_1_002.img" ])
def __init__(self, _edStringTestName=None): EDTestCasePluginExecuteControlCharacterisationv1_1.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_1With2Sweep") self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_reference_2_sweep.xml")) self.setNoExpectedWarningMessages(2)
def __init__(self, _oedStringTestName=None): EDTestCasePluginExecuteControlCharacterisationv1_1.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_1withAnomalousData") self.setConfigurationFile(self.getRefConfigFile()) self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_withAnomalousData.xml"))