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

io.qameta.allure.timeline.TimelinePlugin Maven / Gradle / Ivy

There is a newer version: 2.32.0
Show newest version
package io.qameta.allure.timeline;

import io.qameta.allure.entity.LabelName;
import io.qameta.allure.entity.TestResult;
import io.qameta.allure.tree.AbstractTreeAggregator;
import io.qameta.allure.tree.TreeGroup;

import java.util.Arrays;
import java.util.List;

/**
 * Plugin that generates data for Timeline tab.
 *
 * @since 2.0
 */
public class TimelinePlugin extends AbstractTreeAggregator {

    @Override
    protected String getFileName() {
        return "timeline.json";
    }

    @Override
    protected List getGroups(final TestResult result) {
        return Arrays.asList(
                TreeGroup.oneByLabel(result, LabelName.HOST, "Default hostname"),
                TreeGroup.oneByLabel(result, LabelName.THREAD, "Default thread")
        );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy