software · Q1668
Hoverfly
API dependency simulation using captured JSON fixtures, stateful replay and controllable failures.
Overview
Hoverfly is an Apache-2.0 API simulation tool for development and testing. It can capture service interactions into reusable simulations, serve controlled responses without the original dependency and introduce behavior such as latency or failures.[1]
Capturing and simulating
Capture mode runs Hoverfly as a proxy between a client and the real service, recording their exchanges. It is unavailable when Hoverfly runs as a webserver. Simulate mode instead responds from simulation data without forwarding the request to the real API. Choosing the mode is therefore an operational distinction: capturing still depends on the upstream service, whereas replaying a prepared simulation can remove that dependency.[2][3]
Stateful response sequences
By default, capture ignores repeated requests that have not changed. That can omit a meaningful sequence when an endpoint returns different responses to the same request over time. Stateful capture disables that duplicate-request handling so the sequence can be replayed in order. A recording strategy should therefore reflect whether the service is being modeled as stateless or as a workflow with changing responses.[2]
Portable simulation fixtures
The command-line workflow can export captured simulation data as JSON for editing, sharing and later reuse. Exports can be filtered by URL pattern to separate fixtures. Request headers are not captured by default and must be selected explicitly when needed. This makes capture configuration part of the test fixture: a body-and-URL recording should not be assumed to preserve header-dependent authentication or routing behavior.[1][4]
HTTPS and deployment boundaries
Capturing HTTPS requires the test client to trust Hoverfly's certificate so that the proxy can inspect the encrypted exchange. The documentation describes client-specific certificate handling and notes that its Java integration automates this setup. Trust configuration is therefore a prerequisite, not evidence that arbitrary encrypted traffic is inspectable without client cooperation. The open-source tool's Apache-2.0 license is distinct from the separately advertised hosted service.[1][5]
Substitution scope
Hoverfly can substitute for WireMock for HTTP dependency simulation when a capture-and-replay workflow and reusable JSON fixtures fit the project. WireMock also records proxy interactions but uses its own mappings and scenario model. No direct fixture converter or equivalent matching behavior is established here. Migration should verify capture headers, stateful sequences and proxy-versus-webserver deployment rather than assuming that the same recorded payload produces equivalent tests.[2][4][6][7]
Capabilities & limitations
Proxy capture and replay
supportedCapture observes live traffic; simulate serves fixtures without forwarding to the real API.[2][3]
HTTP API capture and replay in tests · Self-hosted proxy or webserver, CLI, Java integration · Version, deployment mode and client configuration requirements apply
2 sources · check evidence
Proxy-only capture and stateful recording option
vendor · checked 2026-10-07Serving simulations without forwarding to real API
vendor · checked 2026-10-07Stateful recording
limitedExplicit stateful capture is needed to preserve changing responses to identical requests.[2]
HTTP API capture and replay in tests · Self-hosted proxy or webserver, CLI, Java integration · Version, deployment mode and client configuration requirements apply
1 source · check evidence
Proxy-only capture and stateful recording option
vendor · checked 2026-10-07HTTPS capture
limitedRequires test-client trust in Hoverfly's certificate.[5]
HTTP API capture and replay in tests · Self-hosted proxy or webserver, CLI, Java integration · Version, deployment mode and client configuration requirements apply
1 source · check evidence
Client trust prerequisite for TLS interception
vendor · checked 2026-10-07Can substitute for
These are products or services this entry can replace. Check the task and limitations for each comparison.
WireMock for HTTP API capture and replay in tests
limitedCan replace HTTP record/replay workflows; matching, state, headers and deployment configuration need verification.[2][4][6]
Self-hosted proxy or webserver, CLI, Java integration · Version, deployment mode and client configuration requirements apply
References
- Hoverfly repository
Simulation features, interfaces and Apache-2.0 license
vendor · retrieved 2026-10-07 - Hoverfly capture mode
Proxy-only capture and stateful recording option
vendor · retrieved 2026-10-07 - Hoverfly simulate mode
Serving simulations without forwarding to real API
vendor · retrieved 2026-10-07 - Exporting Hoverfly simulations
JSON simulation export and URL filtering
vendor · retrieved 2026-10-07 - Hoverfly HTTPS simulation
Client trust prerequisite for TLS interception
vendor · retrieved 2026-10-07 - WireMock record and playback
Recording and snapshotting stub mappings
vendor · retrieved 2026-10-07 - WireMock stateful behavior
Scenario states and reset controls
vendor · retrieved 2026-10-07
Discussion & disputes
Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.
No discussion yet.
Revision history
Open a revision to read an earlier version of this article.
| Revision | Timestamp | Edit summary |
|---|---|---|
| 1781 | 2026-10-25 22:20:08 | /* wbeditentity-create-item:0| */ sf:efa08bd0-fb94-4040-b2f7-61f028514fa8:v2 | Remove unsupported subscription-plan qualifiers from the three open-source capabilities and WireMock relationship. Replace them with version, deployment-mode an | attribution: /proposals/efa08bd0-fb94-4040-b2f7-61f028514fa8 |