Package gnu.testlet.runner.compare

Examples of gnu.testlet.runner.compare.HTMLComparisonWriter$HTMLVisitor


           
            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"));
           
            // write comparison in text format
            writer = new TextComparisonWriter();
            writer.write(comparison, new File(newRun.getReportXml().getParentFile(), "comparison.txt"));
        }
    }
View Full Code Here


        System.out.println("\n--- comparison result in text ---");
        new TextComparisonWriter().write(comp, new PrintWriter(System.out));
        System.out.println("========================\n");
       
        System.out.println("\n--- comparison result in html ---");
        new HTMLComparisonWriter().write(comp, new PrintWriter(System.out));
        //new HTMLComparisonWriter().write(comp, new File("/tmp/HTMLComparison.html"));
        System.out.println("========================\n");
    }
View Full Code Here

TOP

Related Classes of gnu.testlet.runner.compare.HTMLComparisonWriter$HTMLVisitor

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.