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

ru.yandex.qatools.allure.plugins.AttachmentsIndex Maven / Gradle / Ivy

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

import ru.yandex.qatools.allure.AttachmentInfo;

import java.util.List;

/**
 * You can use this index to get information about
 * your report attachments during report generation.
 *
 * @author Dmitry Baev [email protected]
 *         Date: 10.07.15
 */
public interface AttachmentsIndex {

    /**
     * Finds the attachment by given uid. Returns null if there is
     * no attachment with such uid.
     *
     * @param uid uid to find attachment.
     * @return found attachment info or null if there is no attachment
     * with such uid.
     */
    AttachmentInfo find(String uid);

    /**
     * Finds the attachment by given source. Returns null if there is
     * no attachment with such source.
     *
     * @param source source to find attachment.
     * @return found attachment info or null if there is no attachment
     * with such source.
     */
    AttachmentInfo findBySource(String source);

    /**
     * Returns the list of all attachments found in result directories.
     */
    List findAll();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy