arXiv:2611.04769cs.SENov 2026

Manuscript Offprint

arXiv:2611.04769

RESTberus: Trace-Aware Benchmarking of Automated REST API Testing Tools Across Microservice Dependencies

John Toniutti, Massimiliano Baldo, Marino Miculan, Vincenzo Riccio

John Toniutti

University of Udine – Italy

toniutti.john@spes.uniud.it

Massimiliano Baldo

IMT Lucca – Italy

massimiliano.baldo@imtlucca.it

Marino Miculan

University of Udine – Italy

marino.miculan@uniud.it

Vincenzo Riccio

University of Udine – Italy

vincenzo.riccio@uniud.it

Abstract—Existing REST API testing benchmarks focus on isolated services, overlooking failures arising from interactions with downstream dependencies. In microservice systems, response bodies and entry-point operations alone cannot reliably distinguish failures, compromising tool comparisons. We present RESTberus, a Kubernetes-based benchmarking platform for black-box REST API testing tools on deployed microservice systems. By complementing API-level evidence with distributed traces, RESTberus can distinguish failures manifesting in the target service from those manifesting in downstream dependencies. Across six tools on two microservice benchmarks, our trace-aware deduplication strategy achieves 87.1% accuracy, outperforming baselines from prior work by 10–13 percentage points. Our empirical study shows that all tools expose downstream failures, accounting for 11.7% of estimated unique failures on average, which isolated-service benchmarks cannot expose. On single-service benchmarks, RESTberus produces statistically equivalent results to RESTgym, demonstrating that integration-level assessments can preserve compatibility with existing tools and comparability with prior evaluations.

Index Terms—REST APIs, Microservice Testing, Benchmarking Infrastructure, Distributed Tracing, Integration Testing

I. INTRODUCTION

REST APIs are widely used to build the backends of modern web and cloud applications, especially in microservice architectures, where they allow clients to access backend functionality and services to communicate with each other [1]. Ensuring their reliability has motivated the development of several automated black-box testing tools, which generate requests from OpenAPI specifications to exercise API operations and expose failures. As these tools evolve, e.g., including deep learning approaches [2], reproducible benchmarking is essential to compare their effectiveness under controlled conditions.

However, existing benchmarking infrastructures focus on isolated services. In particular, RESTgym [3] provides a reproducible environment for comparing REST API testing tools, but evaluates individual services by observing HTTP responses at the API boundary and estimating unique failures through response-body similarity. This approach overlooks the challenges introduced by distributed microservice architectures.

In fact, a single API request within a microservice system may trigger calls to several downstream services before a response is returned. An HTTP 5xx response observed at the API boundary may therefore reflect a failure manifested either in the target service or in a downstream dependency. Moreover, intermediate services may return the same generic error response for different failures, while the same downstream failure may be exposed through different entry-point operations. Consequently, API-boundary observations alone cannot distinguish target-side from downstream failures, and grouping failures solely by response similarity or API operation may produce misleading estimates of unique failures.

Moving from isolated services to microservices requires more sophisticated orchestration and monitoring, but this technological leap should not come at the cost of comparability with established benchmarks.

MacroHive [4] successfully extends automated REST API testing to deployed microservice systems through dedicated test generation and monitoring of inter-service interactions. Although its approach is compared to testing tools, its empirical comparison does not apply the same internal observability and failure-analysis methodology to all compared tools.

This leaves an important gap: how can we benchmark existing REST API testing tools on real microservice deployments, measure failures across service boundaries, and preserve comparability with established benchmarks?

We address this gap with RESTberus, a Kubernetes-based benchmarking platform that evaluates existing black-box REST API testing tools without modifying their test-generation logic. RESTberus automatically deploys each target service with its downstream dependencies, isolates experimental runs, controls random seeds and interaction budgets, and collects API-boundary interactions, code coverage, and distributed traces. It introduces a trace-aware deduplication strategy to distinguish failures manifesting in the target service from those manifesting downstream. These capabilities are implemented within the benchmarking infrastructure, allowing existing approaches to benefit from richer evaluation without being redesigned.

We evaluate RESTberus using six testing tools on Train Ticket and PetClinic and nine single-service benchmarks from RESTgym. Our proposed deduplication strategy achieves 87.1% deduplication accuracy, outperforming existing strategies by up to 13.0 percentage points. It also achieves the highest observed accuracy (92.2%) on human-annotated failure pairs. All six testing tools expose downstream failures, which account for 11.7% of their unique failures on average, demonstrating the importance of accounting for downstream failures. Finally, equivalence testing shows that RESTgym on single-service benchmarks. Together, these findings demonstrate that benchmarking can move beyond API-boundary observations without sacrificing compatibility with existing tools or comparability with prior results.

The main contributions of this paper are:

  • Integration-level microservice benchmarking. We introduce RESTgym to evaluate black-box REST API testing tools on deployed service chains, with controlled execution and integrated telemetry collection.
  • Trace-aware failure analysis. We introduce attribution of target and downstream failure manifestations and a deduplication strategy that combines distributed traces with API-level evidence, improving upon existing approaches.
  • Empirical evidence and backward compatibility. We evaluate six testing tools on distributed benchmarks, quantify the contribution of downstream failures, assess deduplication against LLM and human reference labels, and establish practical equivalence with RESTgym on single-service applications.

References (46)