io.qameta.allure.timeline.TimelinePlugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of allure-generator Show documentation
Show all versions of allure-generator Show documentation
Module allure-generator of Allure Framework.
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