def unitTestRunning(self): """ check the status after a job creation """ EDVerbose.DEBUG("EDTestCaseEDStatus.unitTestRunning") EDStatus.tellRunning(self.strPluginName) EDVerbose.DEBUG("Success Plugins: " + ",".join(EDStatus.getSuccess())) EDVerbose.DEBUG("Running Plugins: " + ",".join(EDStatus.getRunning())) EDVerbose.DEBUG("Failed Plugins: " + ",".join(EDStatus.getFailure())) EDAssert.equal(True, self.strPluginName in EDStatus.getRunning(), "Plugin running") EDAssert.equal(False, self.strPluginName in EDStatus.getSuccess(), "Plugin not yet Finished") EDAssert.equal(False, self.strPluginName in EDStatus.getFailure(), "Plugin not yet Finished")
def preProcess(self, _edObject=None): """ Writes xml data input in the working dir (if required) Connects a slot for generating the executive summary after the plugin execution Connects a slot for checking output data to the finally process Initialize the base directory Configures the plugin Checks the input data """ EDAction.preProcess(self, _edObject) self.DEBUG("EDPlugin.preProcess") self.connectPostProcess(self.exportDataOutput) if self.__bWriteDataXMLInputOutput: if self.__bWriteDataXMLInput: self.connectPreProcess(self.writeDataInput) self.connectPostProcess(self.generateExecutiveSummary) self.connectFinallyProcess(self.checkDataOutput) if (self.__strBaseName is None): self.setBaseName(self.createBaseName()) EDStatus.tellRunning(self.__strPluginId) self.connectFinallyProcess(self.tellFinished) self.checkParameters()