def testExecute(self): """ """ self.run() # Checks that there are no error messages plugin = self.getPlugin() edPlugin = self.getPlugin() strBestVersion = self.getPlugin().getStringVersion() if strBestVersion.find("3.1.0") != -1: self.setReferenceDataOutputFile( os.path.join(self.getPluginTestsDataHome(), "XSDataResultBest_reference.xml")) elif strBestVersion.find("3.2.0") != -1: self.setReferenceDataOutputFile( os.path.join(self.getPluginTestsDataHome(), "XSDataResultBest_reference_BESTv320.xml")) # Checks the expected result strExpectedOutput = self.readAndParseFile( self.getReferenceDataOutputFile()) from XSDataBestv1_1 import XSDataResultBest xsDataOutputExpected = XSDataResultBest.parseString(strExpectedOutput) xsDataOutputObtained = edPlugin.getDataOutput() EDAssert.equal(xsDataOutputExpected.marshal(), xsDataOutputObtained.marshal())
def testExecute(self): """ """ self.run() # Checks that there are no error messages plugin = self.getPlugin() edPlugin = self.getPlugin() strBestVersion = self.getPlugin().getStringVersion() if strBestVersion.find("3.1.0") != -1 : self.setReferenceDataOutputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataResultBest_reference.xml")) elif strBestVersion.find("3.2.0") != -1 : self.setReferenceDataOutputFile(os.path.join(self.getPluginTestsDataHome(), "XSDataResultBest_reference_BESTv320.xml")) # Checks the expected result strExpectedOutput = self.readAndParseFile(self.getReferenceDataOutputFile()) from XSDataBestv1_1 import XSDataResultBest xsDataOutputExpected = XSDataResultBest.parseString(strExpectedOutput) xsDataOutputObtained = edPlugin.getDataOutput() EDAssert.equal(xsDataOutputExpected.marshal(), xsDataOutputObtained.marshal())
def testGenerateExecutiveSummary(self): strInputBest = self.readAndParseFile(self.strReferenceInputFile) strResultBest = self.readAndParseFile(self.strReferenceResultFile) from XSDataBestv1_1 import XSDataInputBest from XSDataBestv1_1 import XSDataResultBest xsDataInputBest = XSDataInputBest.parseString(strInputBest) xsDataResultBest = XSDataResultBest.parseString(strResultBest) edPluginBest = self.createPlugin() edPluginBest.setDataInput(xsDataInputBest) edPluginBest.setDataOutput(xsDataResultBest) edPluginBest.generateExecutiveSummary(edPluginBest)