Class AbstractTrendPlugin<T>

java.lang.Object
io.qameta.allure.CompositeAggregator2
io.qameta.allure.trend.AbstractTrendPlugin<T>
Type Parameters:
T - Trend item type
All Implemented Interfaces:
io.qameta.allure.Aggregator2, io.qameta.allure.Extension, io.qameta.allure.Reader
Direct Known Subclasses:
CategoriesTrendPlugin, DurationTrendPlugin, HistoryTrendPlugin, RetryTrendPlugin

public abstract class AbstractTrendPlugin<T> extends io.qameta.allure.CompositeAggregator2 implements io.qameta.allure.Reader
Encapsulates common for all trend plugins logic.
  • Constructor Details

    • AbstractTrendPlugin

      protected AbstractTrendPlugin(List<io.qameta.allure.Aggregator2> aggregators, String jsonFileName, String trendBlockName)
  • Method Details

    • readResults

      public void readResults(io.qameta.allure.core.Configuration configuration, io.qameta.allure.core.ResultsVisitor visitor, Path directory)
      Specified by:
      readResults in interface io.qameta.allure.Reader
    • parseItem

      protected abstract Optional<T> parseItem(com.fasterxml.jackson.databind.ObjectMapper mapper, com.fasterxml.jackson.databind.JsonNode child) throws com.fasterxml.jackson.core.JsonProcessingException
      Throws:
      com.fasterxml.jackson.core.JsonProcessingException
    • extractLatestExecutor

      @Deprecated protected static Optional<io.qameta.allure.entity.ExecutorInfo> extractLatestExecutor(List<io.qameta.allure.core.LaunchResults> launches)
      Deprecated.
      Parameters:
      launches - the launch results.
      Returns:
      the latest executor