def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_2.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_2_integrationError")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_integrationError.xml"))
     self.setNoExpectedWarningMessages(0)
     self.setNoExpectedErrorMessages(1)
     self.setAcceptPluginFailure(True)
Esempio n. 2
0
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_2.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_2"):
            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 testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_2.testExecute(self)

        edPlugin = self.getPlugin()
        strStatusMessage = None
        if edPlugin.hasDataOutput("statusMessage"):
            strStatusMessage = edPlugin.getDataOutput("statusMessage")[0].getValue()
        EDAssert.equal(True, strStatusMessage.find("Integration FAILURE") != -1, "Status message contains 'Integration FAILURE'")
 def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_2.__init__(
         self,
         "EDTestCasePluginExecuteControlCharacterisationv1_2_iceRings")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(
         os.path.join(self.getPluginTestsDataHome(),
                      "XSDataInputCharacterisation_iceRings.xml"))
     self.setNoExpectedWarningMessages(2)
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_2.testExecute(self)

        edPlugin = self.getPlugin()
        xsDataCharacterisation = edPlugin.getDataOutput()
        xsDataResultIndexing = xsDataCharacterisation.getIndexingResult()
        xsDataSelectedSolution = xsDataResultIndexing.getSelectedSolution()
        xsDataCrystal = xsDataSelectedSolution.getCrystal()
        xsDataSpaceGroup = xsDataCrystal.getSpaceGroup()
        strSpaceGroupName = xsDataSpaceGroup.getName().getValue()
        EDAssert.equal("P1", strSpaceGroupName, "Selected indexing solution is P1")
Esempio n. 6
0
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_2.testExecute(self)

        edPlugin = self.getPlugin()
        xsDataCharacterisation = edPlugin.getDataOutput()
        xsDataResultIndexing = xsDataCharacterisation.getIndexingResult()
        xsDataSelectedSolution = xsDataResultIndexing.getSelectedSolution()
        xsDataCrystal = xsDataSelectedSolution.getCrystal()
        xsDataSpaceGroup = xsDataCrystal.getSpaceGroup()
        strSpaceGroupName = xsDataSpaceGroup.getName().getValue()
        EDAssert.equal("P1", strSpaceGroupName,
                       "Selected indexing solution is P1")
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_2.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_2"):
            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_2.preProcess(self)
     self.loadTestImage([ "integrationError_2_001.img" ])
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_2.preProcess(self)
     self.loadTestImage(["fewSpots_1_001.img"])
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_2.preProcess(self)
     self.loadTestImage(["bestBFactorFailed_2_001.img"])
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_2.preProcess(self)
     self.loadTestImage([ "ref-testscale_1_001.img", "ref-testscale_1_002.img" ])
 def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_2.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_2_withForcedSpaceGroup")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_withForcedSpaceGroup.xml"))
     self.setNoExpectedWarningMessages(1)
     self.setNoExpectedErrorMessages(0)
Esempio n. 13
0
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_2.preProcess(self)
     self.loadTestImage(
         ["ref-testscale_1_001.img", "ref-testscale_1_002.img"])
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_2.preProcess(self)
     self.loadTestImage([ "iceRings_1_001.img" ])
 def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_2.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_2With2Sweep")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_reference_2_sweep.xml"))
     self.setNoExpectedWarningMessages(2)
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_2.preProcess(self)
     self.loadTestImage([ "bestBFactorFailed_2_001.img" ])