Пример #1
0
 def postProcess(self, _edPlugin=None):
     EDVerbose.DEBUG("EDPluginControlISPyBv1_4.postProcess")
     # For the moment just an empty result object
     xsDataResultControlISPyB = XSDataResultControlISPyB()
     if self.edPluginExecISPyB.hasDataOutput():
         xsDataResultControlISPyB.screeningId = self.edPluginExecISPyB.dataOutput.screeningId
     self.setDataOutput(xsDataResultControlISPyB)
Пример #2
0
 def postProcess(self, _edPlugin=None):
     EDVerbose.DEBUG("EDPluginControlISPyBv1_4.postProcess")
     # For the moment just an empty result object
     xsDataResultControlISPyB = XSDataResultControlISPyB()
     if self.edPluginExecISPyB.hasDataOutput():
         xsDataResultControlISPyB.screeningId = self.edPluginExecISPyB.dataOutput.screeningId
     self.setDataOutput(xsDataResultControlISPyB)
 def finallyProcess(self, _edPlugin=None):
     EDPluginControl.finallyProcess(self, _edPlugin)
     self.DEBUG("EDPluginControlISPyBv1_4.finallyProcess")
     # For the moment just an empty result object
     xsDataResultControlISPyB = XSDataResultControlISPyB()
     if self.edPluginExecISPyB.hasDataOutput():
         xsDataResultControlISPyB.screeningId = self.edPluginExecISPyB.dataOutput.screeningId
         xsDataResultControlISPyB.dataCollectionId = self.edPluginExecISPyB.dataOutput.dataCollectionId
     self.setDataOutput(xsDataResultControlISPyB)
Пример #4
0
 def finallyProcess(self, _edPlugin=None):
     EDPluginControl.finallyProcess(self, _edPlugin)
     self.DEBUG("EDPluginControlISPyBv1_4.finallyProcess")
     # For the moment just an empty result object
     xsDataResultControlISPyB = XSDataResultControlISPyB()
     if self.edPluginExecISPyB.hasDataOutput():
         xsDataResultControlISPyB.screeningId = self.edPluginExecISPyB.dataOutput.screeningId
         xsDataResultControlISPyB.dataCollectionId = self.edPluginExecISPyB.dataOutput.dataCollectionId
     self.setDataOutput(xsDataResultControlISPyB)
    def testExecute(self):
        """
        """
        self.run()

        # Checks that there are no error messages
        plugin = self.getPlugin()

        # Checks the expected result
        strExpectedOutput = self.readAndParseFile (self.getReferenceDataOutputFile())
        strObtainedOutput = self.readAndParseFile (self.m_edObtainedOutputDataFile)
        EDVerbose.DEBUG("Checking obtained result...")

        xsDataResultReference = XSDataResultControlISPyB.parseString(strExpectedOutput)
        xsDataResultObtained = XSDataResultControlISPyB.parseString(strObtainedOutput)

        EDAssert.equal(xsDataResultReference.marshal(), xsDataResultObtained.marshal())
    def testExecute(self):
        """
        """
        self.run()

        # Checks that there are no error messages
        plugin = self.getPlugin()

        # Checks the expected result
        strExpectedOutput = self.readAndParseFile (self.getReferenceDataOutputFile())
        strObtainedOutput = self.readAndParseFile (self.m_edObtainedOutputDataFile)
        EDVerbose.DEBUG("Checking obtained result...")

        xsDataResultReference = XSDataResultControlISPyB.parseString(strExpectedOutput)
        xsDataResultObtained = XSDataResultControlISPyB.parseString(strObtainedOutput)

        EDAssert.equal(xsDataResultReference.marshal(), xsDataResultObtained.marshal())
Пример #7
0
 def buildChildren(self, child_, nodeName_):
     if child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'resultCharacterisation':
         obj_ = XSDataResultCharacterisation()
         obj_.build(child_)
         self.setResultCharacterisation(obj_)
     elif child_.nodeType == Node.ELEMENT_NODE and \
         nodeName_ == 'resultControlISPyB':
         obj_ = XSDataResultControlISPyB()
         obj_.build(child_)
         self.setResultControlISPyB(obj_)
Пример #8
0
 def postProcess(self, _edObject=None):
     EDPluginControl.postProcess(self)
     self.DEBUG("EDPluginControlISPyB.postProcess")
     # Create some output data
     xsDataResult = XSDataResultControlISPyB()
     self.setDataOutput(xsDataResult)
Пример #9
0
 def postProcess(self, _edPlugin=None):
     EDVerbose.DEBUG("EDPluginControlISPyBv1_0.postProcess")
     # For the moment just an empty result object
     xsDataResultControlISPyB = XSDataResultControlISPyB()
     self.setDataOutput(xsDataResultControlISPyB)