Package net.sourceforge.marathon.junit.textui

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


        // TODO:
      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();
        TestLinkXMLOutputter outputter = new TestLinkXMLOutputter();
        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"
View Full Code Here


            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);
            fileEventHandler.fireNewEvent(resultReporterTestLinkXMLFile, false);
        } catch (IOException e) {
            e.printStackTrace();
View Full Code Here

            "results.xml");
        resultReporter.generateReport(new XMLOutputter(),
            resultReporterXMLFile.getCanonicalPath());
                File resultReporterTestLinkXMLFile = new File(runReportDir,
            "testlink-results.xml");
                resultReporter.generateReport(new TestLinkXMLOutputter(),
            resultReporterTestLinkXMLFile.getCanonicalPath());

                if (exploratoryTest) {
                    ArrayList<CheckList> checklists = testCase.getChecklists();
                    for (CheckList checkList : checklists) {
View Full Code Here

TOP

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

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.