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)
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 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_)
def postProcess(self, _edObject=None): EDPluginControl.postProcess(self) self.DEBUG("EDPluginControlISPyB.postProcess") # Create some output data xsDataResult = XSDataResultControlISPyB() self.setDataOutput(xsDataResult)
def postProcess(self, _edPlugin=None): EDVerbose.DEBUG("EDPluginControlISPyBv1_0.postProcess") # For the moment just an empty result object xsDataResultControlISPyB = XSDataResultControlISPyB() self.setDataOutput(xsDataResultControlISPyB)