Skip to content
Allure report logoAllure Report
Main Navigation ModulesDocumentationStarter Project

English

Español

English

Español

Appearance

Sidebar Navigation

Allure 3

Install & Upgrade

Install Allure

Upgrade Allure

Configure

Create Reports

How to generate a report

How to view a report

Improving readability of your test reports

Improving navigation in your test report

Reading Allure charts

Migrate from Allure 2

Allure 2

Install & Upgrade

Install for Windows

Install for macOS

Install for Linux

Install for Node.js

Upgrade Allure

Create Reports

How to generate a report

How to view a report

Improving readability of your test reports

Improving navigation in your test report

Features

Agent Mode

Test steps

Attachments

Test statuses

Assertion diffs

Sorting and filtering

Environments

Multistage Builds

Categories

Visual analytics

Test stability analysis

History and retries

Self-hosted storage

Quality Gate

Resolutions

Global Errors and Attachments

Timeline

Performance Metrics

Export to CSV

Export metrics

Guides

Migrating to Allure Java 3

JUnit 5 parametrization

JUnit 5 & Selenide: screenshots and attachments

JUnit 5 & Selenium: screenshots and attachments

Setting up JUnit 5 with GitHub Actions

Pytest parameterization

Pytest & Selenium: screenshots and attachments

Pytest & Playwright: screenshots and attachments

Pytest & Playwright: videos

Playwright parameterization

Publishing Reports to GitHub Pages

Deploying Self-Hosted Storage with Docker

Deploying Self-Hosted Storage on Cloudflare Workers

Allure Report 3: XCResults Reader

How it works

Overview

Glossary

Test result file

Container file

Categories file

Environment file

Executor file

History files

Test Identifiers

Integrations

Azure DevOps

Bamboo

GitHub Action

Gradle

Jenkins

JetBrains IDEs

Maven

Slack

TeamCity

Visual Studio Code

Xray

Frameworks

AVA

Getting started

Configuration

Reference

Axios

Getting started

Configuration

Reference

Behat

Getting started

Configuration

Reference

Behave

Getting started

Configuration

Reference

Bun

Getting started

Configuration

Reference

Chai

Getting started

Reference

Codeception

Getting started

Configuration

Reference

CodeceptJS

Getting started

Configuration

Reference

Cucumber.js

Getting started

Configuration

Reference

Cucumber-JVM

Getting started

Configuration

Reference

Cucumber.rb

Getting started

Configuration

Reference

Cypress

Getting started

Configuration

Reference

Dart and Flutter

Getting started

Configuration

Reference

Diesel

Getting started

Configuration

Reference

Fetch

Getting started

Configuration

Reference

Go

Getting started

Configuration

Reference

gRPC

Getting started

Configuration

Jasmine

Getting started

Configuration

Reference

Java HTTP Client

Getting started

JBehave

Getting started

Configuration

Reference

Jest

Getting started

Configuration

Reference

JUnit 4

Getting started

Configuration

Reference

JUnit Jupiter

Getting started

Configuration

Reference

Kotlin

Getting started

Reference

Mocha

Getting started

Configuration

Reference

Newman

Getting started

Configuration

Reference

Node.js Test Runner

Getting started

Configuration

Reference

NUnit

Getting started

Configuration

Reference

OkHttp

Getting started

PHPUnit

Getting started

Configuration

Reference

Playwright

Getting started

Configuration

Reference

Playwright Java

Getting started

Configuration

Reference

pytest

Getting started

Configuration

Reference

Pytest-BDD

Getting started

Configuration

Reference

Reqnroll

Getting started

Configuration

Reference

Reqwest

Getting started

Configuration

Reference

REST Assured

Getting started

Configuration

Robot Framework

Getting started

Configuration

Reference

Rust Cargo Test

Getting started

Configuration

Reference

RSpec

Getting started

Configuration

Reference

Selenide

Getting started

Configuration

Reference

Selenium BiDi

Getting started

Configuration

Reference

SpecFlow

Getting started

Configuration

Reference

Spock

Getting started

Configuration

Reference

TestCafe

Getting started

Configuration

Reference

TestNG

Getting started

Configuration

Reference

Tinybench

Getting started

Reference

Vitest

Getting started

Configuration

Reference

WebdriverIO

Getting started

Configuration

Reference

xUnit.net

Getting started

Configuration

Reference

On this page

Getting started with Allure gRPC ​

Allure gRPC latest version

Enrich your Allure Report test reports with the details of the calls your tests make via gRPC Java.

This page describes Allure gRPC 3.0.0 and newer, which requires Java 17 or newer.

Allure gRPC is compatible with all JVM-based Allure integrations, including Allure JUnit Jupiter, Allure TestNG, Allure Cucumber-JVM, and more.

To enable the integration in your project:

  1. Make sure you have the Allure Report integration enabled for the test framework you use.

    See the instructions in the integration's documentation in Frameworks.

  2. Add the Allure gRPC integration and the Protobuf JSON utilities to your project's dependencies.

    Allure gRPC uses protobuf-java-util to show the messages as JSON, but doesn't add it to your project. Use the same version as the protobuf-java library your project already uses.

    xml
    <!-- Define the version of Allure you want to use via the allure.version property -->
    <properties>
        <allure.version>VERSION</allure.version>
    </properties>
    
    <!-- Add allure-bom to dependency management to ensure correct versions of all the dependencies are used -->
    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>io.qameta.allure</groupId>
                <artifactId>allure-bom</artifactId>
                <version>${allure.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
    
    <dependencies>
        <dependency>
            <groupId>io.qameta.allure</groupId>
            <artifactId>allure-grpc</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.google.protobuf</groupId>
            <artifactId>protobuf-java-util</artifactId>
            <version>PROTOBUF_VERSION</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    kts
    val allureVersion = "VERSION"
    
    dependencies {
        testImplementation(platform("io.qameta.allure:allure-bom:$allureVersion"))
        testImplementation("io.qameta.allure:allure-grpc")
        testImplementation("com.google.protobuf:protobuf-java-util:PROTOBUF_VERSION")
    }
    groovy
    def allureVersion = "VERSION"
    
    dependencies {
        testImplementation platform("io.qameta.allure:allure-bom:$allureVersion")
        testImplementation "io.qameta.allure:allure-grpc"
        testImplementation "com.google.protobuf:protobuf-java-util:PROTOBUF_VERSION"
    }
  3. Register an instance of AllureGrpc as a client interceptor, either on the channel or on a stub.

    The example below shows usage of Allure gRPC in a JUnit Jupiter test. It uses the gRPC health checking service, so replace the address and the stub with your own.

    java
    import io.grpc.ManagedChannel;
    import io.grpc.ManagedChannelBuilder;
    import io.grpc.health.v1.HealthCheckRequest;
    import io.grpc.health.v1.HealthCheckResponse;
    import io.grpc.health.v1.HealthGrpc;
    import io.qameta.allure.grpc.AllureGrpc;
    import org.junit.jupiter.api.Test;
    
    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    class TestOrderService {
    
        @Test
        void testServiceIsServing() {
            ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", 8080)
                    .intercept(new AllureGrpc())
                    .usePlaintext()
                    .build();
            try {
                HealthCheckResponse response = HealthGrpc.newBlockingStub(channel)
                        .check(HealthCheckRequest.newBuilder().setService("shop.Orders").build());
                assertEquals(HealthCheckResponse.ServingStatus.SERVING, response.getStatus());
            } finally {
                channel.shutdownNow();
            }
        }
    }

    To add the interceptor to a single stub instead, use withInterceptors():

    java
    HealthGrpc.newBlockingStub(channel).withInterceptors(new AllureGrpc())

    Some aspects of the AllureGrpc behavior can be affected via its configuration methods.

  4. Run your tests and generate a test report the same way as you would do usually.

What the report shows ​

Allure gRPC adds a step for each gRPC call made during a test or a fixture, for example, “Send unary gRPC request to localhost:8080/grpc.health.v1.Health/Check”. The step name contains the type of the call (unary, client_streaming, server_streaming or bidi_streaming), the server address and the full name of the method.

The step contains a “gRPC exchange” HTTP exchange attachment with:

  • the request and response messages, converted to JSON (for streaming calls, all messages of the stream, in order);
  • the request metadata, and the response headers and trailers, including grpc-status and grpc-message;
  • the start and end time of the call.

Repeated metadata values are kept in their original order. Values of binary metadata keys (the ones ending with -bin) are shown Base64-encoded. By default, the authorization metadata value is replaced with a placeholder.

By default, if a call ends with a non-zero gRPC status code, the step is marked as failed. See Step status to change this.

A call is added to the report when it ends. If a streaming call is still open when the test ends, its step has no status and no attachment, so make sure that your tests complete or cancel their streaming calls.

Calls made while no test or fixture is running are not added to the report.

In Allure gRPC 2.x, the request and the response are added as two separate attachments.

Pager
Previous pageReference
Next pageConfiguration
Powered by

Subscribe to our newsletter

Get product news you actually need, no spam.

Subscribe
Allure TestOps
  • Overview
  • Why choose us
  • Cloud
  • Self-hosted
  • Success Stories
Company
  • Documentation
  • Blog
  • About us
  • Contact
  • Events
© 2026 Qameta Software Inc. All rights reserved.
A Markdown version of this page is available at /docs/grpc.md