Package net.sourceforge.marathon.junit.textui

Examples of net.sourceforge.marathon.junit.textui.XMLOutputter


    public void testOutput() throws IOException {
        Map<Test, MarathonTestResult> testOutputMap = new HashMap<Test, MarathonTestResult>();
        TestSuite suite = (TestSuite) new TestCreator(false, new StdOutConsole()).getTest("AllTests");
        createResult(suite, testOutputMap);
        StringWriter writer = new StringWriter();
        XMLOutputter outputter = new XMLOutputter();
        outputter.output(writer, suite, testOutputMap);
        String actual = writer.toString();
        String expected = "<?xml version=\"1.0\" ?>\n" + "<test projectname='' reportdir='testDir' >\n"
                + "<testsuite name=\"AllTests\" >\n" + "  <testsuite name=\"subdir.AllTests\" >\n"
                + "    <testcase name=\"subtest1\" status=\"0\" time=\"0\" >\n" + "    </testcase>\n"
                + "    <testcase name=\"subtest2\" status=\"2\" time=\"0.102\" >\n<![CDATA["
View Full Code Here


            resultReporterHTMLFile = new File(runReportDir, "results.html");
            if (reporter != null)
                reporter.generateReport(new HTMLOutputter(), resultReporterHTMLFile.getCanonicalPath());
            File resultReporterXMLFile = new File(runReportDir, "results.xml");
            if (reporter != null)
                reporter.generateReport(new XMLOutputter(), resultReporterXMLFile.getCanonicalPath());
            File resultReporterTestLinkXMLFile = new File(runReportDir, "testlink-results.xml");
            if (reporter != null)
                reporter.generateReport(new TestLinkXMLOutputter(), resultReporterTestLinkXMLFile.getCanonicalPath());
            fileEventHandler.fireNewEvent(resultReporterHTMLFile, false);
            fileEventHandler.fireNewEvent(resultReporterXMLFile, false);
View Full Code Here

                resultReporterHTMLFile = new File(runReportDir, "results.html");
        resultReporter.generateReport(new HTMLOutputter(),
            resultReporterHTMLFile.getCanonicalPath());
        File resultReporterXMLFile = new File(runReportDir,
            "results.xml");
        resultReporter.generateReport(new XMLOutputter(),
            resultReporterXMLFile.getCanonicalPath());
                File resultReporterTestLinkXMLFile = new File(runReportDir,
            "testlink-results.xml");
                resultReporter.generateReport(new TestLinkXMLOutputter(),
            resultReporterTestLinkXMLFile.getCanonicalPath());
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.junit.textui.XMLOutputter

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.