rootElement.setAttribute(XMLConstants.ATTR_ERRORS, "0");
rootElement.setAttribute(XMLConstants.TIMESTAMP, DateUtils.format(state.getStartTime(),
DateUtils.ISO8601_DATETIME_PATTERN));
rootElement.setAttribute(XMLConstants.HOSTNAME, hostName);
Element stdoutElement = testSuiteReport.createElement(XMLConstants.SYSTEM_OUT);
stdoutElement.appendChild(testSuiteReport.createCDATASection(outputs.get(
TestOutputEvent.Destination.StdOut).toString()));
rootElement.appendChild(stdoutElement);
Element stderrElement = testSuiteReport.createElement(XMLConstants.SYSTEM_ERR);
stderrElement.appendChild(testSuiteReport.createCDATASection(outputs.get(
TestOutputEvent.Destination.StdErr).toString()));