Package gnu.testlet.runner

Examples of gnu.testlet.runner.XMLReportParser


   
    private void compareRuns(Run latestRun, Run newRun, RunResult newRunResult) throws XMLParseException, IOException {
        if ((latestRun != null) && latestRun.getReportXml().exists()) {
            // there was a previous run, let do the comparison !
           
            RunResult latestRunResult = new XMLReportParser().parse(latestRun.getReportXml());
           
            ReportComparator comparator = new ReportComparator(latestRunResult, newRunResult);
            RunComparison comparison = comparator.compare();
           
            // write comparison in html format
View Full Code Here


        LOGGER.log(Level.INFO, "parsing xml report for " + test);
        return parseMauveReport(report);
    }
   
    protected RunResult parseMauveReport(String report) throws ProtocolException {
        XMLReportParser parser = new XMLReportParser();
        StringReader sr = new StringReader(report);
        try {
            LOGGER.log(Level.INFO, "xml report: " + report);
           
            return parser.parse(sr);
        } catch (XMLParseException e) {
            throw new ProtocolException("invalid XML answer", e);
        } catch (IOException e) {
            throw new ProtocolException("I/O error", e);
        }
View Full Code Here

            compare(report1, report2, format);
        }
    }
   
    public static File compare(File report1, File report2, String format) throws XMLParseException, IOException {
        XMLReportParser parser = new XMLReportParser();
        RunResult result1 = parser.parse(report1);
        RunResult result2 = parser.parse(report2);
       
        ReportComparator comparator = new ReportComparator(result1, result2);
        RunComparison comparison = comparator.compare();
       
        final ComparisonWriter writer;
View Full Code Here

TOP

Related Classes of gnu.testlet.runner.XMLReportParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.