io.qameta.allure.executor.ExecutorPlugin Java Examples

The following examples show how to use io.qameta.allure.executor.ExecutorPlugin. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HistoryPlugin.java    From allure2 with Apache License 2.0 6 votes vote down vote up
protected Map<String, HistoryData> getData(final List<LaunchResults> launches) {
    final Map<String, HistoryData> history = launches.stream()
            .map(launch -> launch.getExtra(HISTORY_BLOCK_NAME, (Supplier<Map<String, HistoryData>>) HashMap::new))
            .reduce(new HashMap<>(), (a, b) -> {
                a.putAll(b);
                return a;
            });
    launches.forEach(launch -> {
        final ExecutorInfo executorInfo = launch.getExtra(
                ExecutorPlugin.EXECUTORS_BLOCK_NAME,
                ExecutorInfo::new
        );
        launch.getResults().stream()
                .filter(result -> Objects.nonNull(result.getHistoryId()))
                .forEach(result -> updateHistory(history, result, executorInfo));
    });
    return history;
}
 
Example #2
Source File: AllureReportGenerator.java    From vividus with Apache License 2.0 5 votes vote down vote up
private void generateData() throws IOException
{
    List<Extension> plugins = List.of(
            new SummaryPlugin(),
            new HistoryTrendPlugin(),
            new DurationTrendPlugin(),
            new ExecutorPlugin()
    );
    Configuration configuration = new ConfigurationBuilder().useDefault().fromExtensions(plugins).build();
    new ReportGenerator(configuration).generate(reportDirectory.toPath(), List.of(resultsDirectory.toPath()));
}
 
Example #3
Source File: AllureReportGenerator.java    From AuTe-Framework with Apache License 2.0 5 votes vote down vote up
private Configuration createConfiguration() {
    ConfigurationBuilder configurationBuilder = new ConfigurationBuilder().fromExtensions(Arrays.asList(
            new JacksonContext(),
            new MarkdownContext(),
            new FreemarkerContext(),
            new RandomUidContext(),
            new ProjectContext(),
            new MarkdownDescriptionsPlugin(),
            new TagsPlugin(),
            new SeverityPlugin(),
            new OwnerPlugin(),
            new DefaultCategoriesPlugin(),
            new CategoriesPlugin(),
            new HistoryRestorePlugin(),
            new HistoryPlugin(),
            new HistoryTrendPlugin(),
            new DurationPlugin(),
            new DurationTrendPlugin(),
            new StatusChartPlugin(),
            new TimelinePlugin(),
            new SuitesPlugin(),
            new ReportWebPlugin(),
            new TestsResultsPlugin(),
            new AttachmentsPlugin(),
            new SummaryPlugin(),
            new ExecutorPlugin(),
            new LaunchPlugin(),
            new Allure1Plugin(),
            new Allure1EnvironmentPlugin(),
            new Allure2Plugin()
    ));
    List<Plugin> plugins = loadPlugins();
    if (!plugins.isEmpty()) {
        configurationBuilder = configurationBuilder.fromPlugins(plugins);
    }
    return configurationBuilder.build();
}
 
Example #4
Source File: ConfigurationBuilder.java    From allure2 with Apache License 2.0 5 votes vote down vote up
public ConfigurationBuilder useDefault() {
    fromExtensions(Arrays.asList(
            new JacksonContext(),
            new MarkdownContext(),
            new FreemarkerContext(),
            new RandomUidContext(),
            new MarkdownDescriptionsPlugin(),
            new RetryPlugin(),
            new RetryTrendPlugin(),
            new TagsPlugin(),
            new SeverityPlugin(),
            new OwnerPlugin(),
            new IdeaLinksPlugin(),
            new HistoryPlugin(),
            new HistoryTrendPlugin(),
            new CategoriesPlugin(),
            new CategoriesTrendPlugin(),
            new DurationPlugin(),
            new DurationTrendPlugin(),
            new StatusChartPlugin(),
            new TimelinePlugin(),
            new SuitesPlugin(),
            new ReportWebPlugin(),
            new TestsResultsPlugin(),
            new AttachmentsPlugin(),
            new MailPlugin(),
            new InfluxDbExportPlugin(),
            new PrometheusExportPlugin(),
            new SummaryPlugin(),
            new ExecutorPlugin(),
            new LaunchPlugin(),
            new Allure1Plugin(),
            new Allure1EnvironmentPlugin(),
            new Allure2Plugin(),
            new GaPlugin()
    ));
    return this;
}