Пример #1
0
 def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_3.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_3_bestBFactorFailed")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_bestBFactorFailed.xml"))
     self.setNoExpectedWarningMessages(0)
     self.setNoExpectedErrorMessages(1)
     self.setAcceptPluginFailure(True)
 def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_3.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_3_fewSpots")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_fewSpots.xml"))
     self.setNoExpectedWarningMessages(0)
     self.setNoExpectedErrorMessages(1)
     self.setAcceptPluginFailure(True)
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_3.testExecute(self)

        edPlugin = self.getPlugin()
        strStatusMessage = None
        if edPlugin.hasDataOutput("statusMessage"):
            strStatusMessage = edPlugin.getDataOutput("statusMessage")[0].getValue()
        EDAssert.equal(True, strStatusMessage.find("Indexing FAILURE") != -1, "Status message contains 'Indexing FAILURE'")
Пример #4
0
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_3.testExecute(self)

        edPlugin = self.getPlugin()
        strStatusMessage = None
        if edPlugin.hasDataOutput("statusMessage"):
            strStatusMessage = edPlugin.getDataOutput("statusMessage")[0].getValue()
        EDAssert.equal(True, strStatusMessage.find("Strategy calculation FAILURE") != -1, "Status message contains 'Strategy calculation FAILURE'")
Пример #5
0
 def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_3.__init__(
         self,
         "EDTestCasePluginExecuteControlCharacterisationv1_3_iceRings")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(
         os.path.join(self.getPluginTestsDataHome(),
                      "XSDataInputCharacterisation_iceRings.xml"))
     self.setNoExpectedWarningMessages(2)
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_3.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_3.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")
Пример #8
0
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_3.testExecute(self)

        edPlugin = self.getPlugin()
        strStatusMessage = None
        if edPlugin.hasDataOutput("statusMessage"):
            strStatusMessage = edPlugin.getDataOutput(
                "statusMessage")[0].getValue()
        EDAssert.equal(True,
                       strStatusMessage.find("Indexing FAILURE") != -1,
                       "Status message contains 'Indexing FAILURE'")

        edPlugin.generateExecutiveSummary(edPlugin)
        edPlugin.verboseScreenExecutiveSummary()
Пример #9
0
    def testExecute(self):
        EDTestCasePluginExecuteControlCharacterisationv1_3.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_3.preProcess(self)
     self.loadTestImage(["fewSpots_1_001.img"])
Пример #11
0
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_3.preProcess(self)
     self.loadTestImage([ "ref-thermo1_1_001.img", "ref-thermo1_1_002.img" ])
 def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_3.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_3With2Sweep")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_reference_2_sweep.xml"))
     self.setNoExpectedWarningMessages(2)
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_3.preProcess(self)
     self.loadTestImage([ "ref-2m_RNASE_1_0002.cbf", "ref-2m_RNASE_1_0001.cbf" ])
 def __init__(self, _edStringTestName=None):
     EDTestCasePluginExecuteControlCharacterisationv1_3.__init__(self, "EDTestCasePluginExecuteControlCharacterisationv1_3_withForcedSpaceGroup")
     self.setConfigurationFile(self.getRefConfigFile())
     self.setDataInputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataInputCharacterisation_withForcedSpaceGroup.xml"))
     self.setNoExpectedWarningMessages(1)
     self.setNoExpectedErrorMessages(0)
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_3.preProcess(self)
     self.loadTestImage([ "fewSpots_1_001.img" ])
Пример #16
0
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_3.preProcess(self)
     self.loadTestImage([ "bestBFactorFailed_2_001.img" ])
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_3.preProcess(self)
     self.loadTestImage([ "indexingError_2_001.img" ])
 def preProcess(self):
     EDTestCasePluginExecuteControlCharacterisationv1_3.preProcess(self)
     self.loadTestImage(["integrationError_2_0001.img"])