public void testRunFinished()

in gepard-core/src/main/java/com/epam/gepard/logger/XmlRunReporter.java [99:120]


    public void testRunFinished(final Result result) throws Exception {
        if (!flushed) {
            root.setAttribute("failures", String.valueOf(failures.get()));
            root.setAttribute("errors", String.valueOf(errors.get()));
            root.setAttribute("tests", String.valueOf(tests.get()));
            if (handleIgnore) {
                root.setAttribute("ignores", String.valueOf(ignores.get()));
            }
            root.setAttribute("time", String.valueOf((System.currentTimeMillis() - startTime) / GepardConstants.ONE_SECOND_LENGTH.getConstant()));
            String tsName = root.getAttribute("name");

            root.appendChild(doc.createElement("system-out"));
            root.appendChild(doc.createElement("system-err"));

            // Write the XML log into the log-dir or if it not specified use the current directory
            File dir = logPath != null ? logPath : new File(System.getProperty("user.dir"));
            String prefix = handleIgnore ? "ITEST-" : "TEST-";
            FileUtil fileUtil = new FileUtil();
            fileUtil.writeToFile(doc, new File(dir, prefix + calcName(tsName).replace(' ', '_') + "_" + SUITE_INDEX.getAndIncrement() + ".xml"));
            flushed = true;
        }
    }