All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.yandex.qatools.allure.io.XmlTestSuiteResultIterator Maven / Gradle / Ivy

There is a newer version: 1.5.4
Show newest version
package ru.yandex.qatools.allure.io;

import ru.yandex.qatools.allure.model.TestSuiteResult;

import java.io.IOException;
import java.nio.file.Path;

import static ru.yandex.qatools.allure.AllureConstants.TEST_SUITE_XML_FILE_GLOB;
import static ru.yandex.qatools.allure.AllureUtils.unmarshalTestSuite;

/**
 * @author Dmitry Baev [email protected]
 *         Date: 08.10.15
 */
public class XmlTestSuiteResultIterator extends AbstractResultIterator {

    /**
     * Creates an instance of iterator.
     */
    public XmlTestSuiteResultIterator(Path... resultDirectories) throws IOException {
        super(resultDirectories);
    }

    /**
     * Read XML test suite result.
     * 

* {@inheritDoc} */ @Override protected TestSuiteResult readResult(Path path) throws IOException { return unmarshalTestSuite(path); } /** * {@inheritDoc} */ @Override protected String getFilesGlob() { return TEST_SUITE_XML_FILE_GLOB; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy