Package gnu.testlet.runner.compare

Examples of gnu.testlet.runner.compare.ReportComparator.compare()


            // 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
            ComparisonWriter writer = new HTMLComparisonWriter();
            writer.write(comparison, new File(newRun.getReportXml().getParentFile(), "comparison.html"));
           
View Full Code Here


       
        RunResult runResult2 = createRunResult(2, 2, 1, 3, 0);
        System.out.println("========================\n");
       
        ReportComparator c = new ReportComparator(runResult, runResult2);
        RunComparison comp = c.compare();
       
        System.out.println("\n--- comparison result in text ---");
        new TextComparisonWriter().write(comp, new PrintWriter(System.out));
        System.out.println("========================\n");
       
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.