def testExecute(self):
        """
        """
        self.run()
        plugin = self.getPlugin()

        # Checking obtained results
        xsDataResult = plugin.getDataOutput()
        ref = XSDataResultWaitFile.parseString(self.readAndParseFile(self.getReferenceDataOutputFile())).marshal()
        obt = xsDataResult.marshal()
        EDVerbose.DEBUG("Reference: %s" % ref)
        EDVerbose.DEBUG("Obtained: %s" % obt)
        EDAssert.equal(ref, obt, "XML object comparison")
示例#2
0
 def postProcess(self, _edObject=None):
     EDPlugin.postProcess(self)
     self.DEBUG("EDPluginWaitFile.postProcess: Waited for %.3f s" %
                self.getRunTime())
     xsDataResult = XSDataResultWaitFile()
     if os.path.exists(self.__filename):
         xsDataFile = XSDataFile()
         xsDataFile.setPath(XSDataString(self.__filename))
         xsDataResult.setActualFile(xsDataFile)
         xsDataResult.setActualSize(
             XSDataInteger(os.path.getsize(self.__filename)))
     xsDataResult.setTimedOut(
         XSDataBoolean(self.getRunTime() >= self.__timeout))
     # Create some output data
     self.setDataOutput(xsDataResult)
示例#3
0
 def postProcess(self, _edObject=None):
     EDPlugin.postProcess(self)
     self.DEBUG("EDPluginWaitFile.postProcess: Waited for %.3f s" % self.getRunTime())
     xsDataResult = XSDataResultWaitFile()
     if os.path.exists(self.__filename):
         xsDataFile = XSDataFile()
         xsDataFile.setPath(XSDataString(self.__filename))
         xsDataResult.setActualFile(xsDataFile)
         xsDataResult.setActualSize(XSDataInteger(os.path.getsize(self.__filename)))
     xsDataResult.setTimedOut(XSDataBoolean(self.getRunTime() >= self.__timeout))
     # Create some output data
     self.setDataOutput(xsDataResult)
示例#4
0
    def testExecute(self):
        """
        """
        self.run()
        plugin = self.getPlugin()

        # Checking obtained results
        xsDataResult = plugin.getDataOutput()
        ref = XSDataResultWaitFile.parseString(
            self.readAndParseFile(
                self.getReferenceDataOutputFile())).marshal()
        obt = xsDataResult.marshal()
        EDVerbose.DEBUG("Reference: %s" % ref)
        EDVerbose.DEBUG("Obtained: %s" % obt)
        EDAssert.equal(ref, obt, "XML object comparison")