def testParseLabelitDistlOutput(self): """ This method test the parsing of the distl.signal_strength results in the log file. """ edPluginDistlSignalStrengthv1_1 = self.createPlugin() strPathToLabelitLogText = os.path.join(self.getPluginTestsDataHome(), "dstl.signal_strength.log") strLabelitLogText = self.readAndParseFile(strPathToLabelitLogText) xsDataImageQualityIndicators = edPluginDistlSignalStrengthv1_1.parseLabelitDistlOutput( strLabelitLogText) xmlInput1 = self.readAndParseFile(self.__strReferenceInputFile1) xsDataInputDistlSignalStrength = XSDataInputDistlSignalStrength.parseString( xmlInput1) xsDataImageQualityIndicators.setImage( xsDataInputDistlSignalStrength.getReferenceImage()) strResultDistlSignalStrengthFile = os.path.join( self.getPluginTestsDataHome(), "XSDataResultDistlSignalStrength_reference.xml") strResultDistlSignalStrength = self.readAndParseFile( strResultDistlSignalStrengthFile) xsDataResultDistlSignalStrength = XSDataResultDistlSignalStrength.parseString( strResultDistlSignalStrength) xsDataImageQualityIndicatorsReference = xsDataResultDistlSignalStrength.getImageQualityIndicators( ) EDAssert.equal(xsDataImageQualityIndicatorsReference.marshal(), xsDataImageQualityIndicators.marshal())
def testParseLabelitDistlOutput(self): """ This method test the parsing of the distl.signal_strength results in the log file. """ edPluginDistlSignalStrengthThinClientv1_1 = self.createPlugin() strPathToLabelitLogText = os.path.join(self.getPluginTestsDataHome(), "phenix.distl_thin_client_v17_650.txt") strLabelitLogText = self.readAndParseFile(strPathToLabelitLogText) xsDataImageQualityIndicators = edPluginDistlSignalStrengthThinClientv1_1.parseLabelitDistlOutput(strLabelitLogText) xmlInput1 = self.readAndParseFile(self.__strReferenceInputFile1) xsDataInputDistlSignalStrength = XSDataInputDistlSignalStrength.parseString(xmlInput1) xsDataImageQualityIndicators.setImage(xsDataInputDistlSignalStrength.getReferenceImage()) strResultDistlSignalStrengthFile = os.path.join(self.getPluginTestsDataHome(), "XSDataResultDistlSignalStrengthThinClient_reference.xml") strResultDistlSignalStrength = self.readAndParseFile(strResultDistlSignalStrengthFile) xsDataResultDistlSignalStrength = XSDataResultDistlSignalStrength.parseString(strResultDistlSignalStrength) xsDataImageQualityIndicatorsReference = xsDataResultDistlSignalStrength.getImageQualityIndicators() EDAssert.equal(xsDataImageQualityIndicatorsReference.marshal(), xsDataImageQualityIndicators.marshal())