public void testRunStarted()

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


    public void testRunStarted(final Description description) throws Exception {
        flushed = false;
        startTime = System.currentTimeMillis();

        doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
        root = doc.createElement("testsuite");
        root.setAttribute("name", description.getDisplayName());
        doc.appendChild(root);

        // Create properties section of the report
        Element properties = doc.createElement("properties");
        root.appendChild(properties);
        for (String key : System.getProperties().stringPropertyNames()) {
            Element property = doc.createElement("property");
            property.setAttribute("name", key);
            property.setAttribute("value", System.getProperty(key));
            properties.appendChild(property);
        }

        // Add hostname and timestamp attribute
        String hostName = InetAddress.getLocalHost().getCanonicalHostName();
        root.setAttribute("hostname", hostName);

        root.setAttribute("timestamp", timestamp.format(new Date()));

        errors.set(0);
        failures.set(0);
        ignores.set(0);
        tests.set(0);
    }