{"schemaVersion":"1.0","record":{"label":"Hoverfly","description":"API dependency simulation using captured JSON fixtures, stateful replay and controllable failures.","aliases":[],"kind":"software","website":"https://hoverfly.io/","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.","license":"Apache-2.0","lifecycle":"active","example":false,"features":[{"name":"Proxy capture and replay","status":"supported","detail":"Capture observes live traffic; simulate serves fixtures without forwarding to the real API.","useCase":"HTTP API capture and replay in tests","platforms":["Self-hosted proxy or webserver","CLI","Java integration"],"region":"Version, deployment mode and client configuration requirements apply","evidence":[{"url":"https://docs.hoverfly.io/en/stable/pages/keyconcepts/modes/capture.html","locator":"Proxy-only capture and stateful recording option","retrievedAt":"2026-10-07T11:08:36Z","kind":"vendor"},{"url":"https://docs.hoverfly.io/en/stable/pages/keyconcepts/modes/simulate.html","locator":"Serving simulations without forwarding to real API","retrievedAt":"2026-10-07T11:09:44Z","kind":"vendor"}]},{"name":"Stateful recording","status":"limited","detail":"Explicit stateful capture is needed to preserve changing responses to identical requests.","useCase":"HTTP API capture and replay in tests","platforms":["Self-hosted proxy or webserver","CLI","Java integration"],"region":"Version, deployment mode and client configuration requirements apply","evidence":[{"url":"https://docs.hoverfly.io/en/stable/pages/keyconcepts/modes/capture.html","locator":"Proxy-only capture and stateful recording option","retrievedAt":"2026-10-07T11:08:36Z","kind":"vendor"}]},{"name":"HTTPS capture","status":"limited","detail":"Requires test-client trust in Hoverfly's certificate.","useCase":"HTTP API capture and replay in tests","platforms":["Self-hosted proxy or webserver","CLI","Java integration"],"region":"Version, deployment mode and client configuration requirements apply","evidence":[{"url":"https://docs.hoverfly.io/en/latest/pages/tutorials/basic/https/https.html","locator":"Client trust prerequisite for TLS interception","retrievedAt":"2026-10-07T11:09:44Z","kind":"vendor"}]}],"alternatives":[],"slug":"hoverfly","draftAlternatives":[{"targetSlug":"wiremock","status":"limited","detail":"Can replace HTTP record/replay workflows; matching, state, headers and deployment configuration need verification.","useCase":"HTTP API capture and replay in tests","platforms":["Self-hosted proxy or webserver","CLI","Java integration"],"region":"Version, deployment mode and client configuration requirements apply","evidence":[{"url":"https://docs.hoverfly.io/en/stable/pages/keyconcepts/modes/capture.html","locator":"Proxy-only capture and stateful recording option","retrievedAt":"2026-10-07T11:08:36Z","kind":"vendor"},{"url":"https://docs.hoverfly.io/en/latest/pages/tutorials/basic/exportingsimulations/exportingsimulations.html","locator":"JSON simulation export and URL filtering","retrievedAt":"2026-10-07T11:10:24Z","kind":"vendor"},{"url":"https://wiremock.org/docs/record-playback/","locator":"Recording and snapshotting stub mappings","retrievedAt":"2026-10-07T11:08:23Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/SpectoLabs/hoverfly/blob/master/README.md","locator":"Simulation features, interfaces and Apache-2.0 license","retrievedAt":"2026-10-07T11:08:42Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/SpectoLabs/hoverfly/blob/master/README.md","locator":"Simulation features, interfaces and Apache-2.0 license","retrievedAt":"2026-10-07T11:08:42Z","id":"hoverfly-readme","title":"Hoverfly repository","kind":"vendor"},{"url":"https://docs.hoverfly.io/en/stable/pages/keyconcepts/modes/capture.html","locator":"Proxy-only capture and stateful recording option","retrievedAt":"2026-10-07T11:08:36Z","id":"hoverfly-capture","title":"Hoverfly capture mode","kind":"vendor"},{"url":"https://docs.hoverfly.io/en/stable/pages/keyconcepts/modes/simulate.html","locator":"Serving simulations without forwarding to real API","retrievedAt":"2026-10-07T11:09:44Z","id":"hoverfly-simulate","title":"Hoverfly simulate mode","kind":"vendor"},{"url":"https://docs.hoverfly.io/en/latest/pages/tutorials/basic/exportingsimulations/exportingsimulations.html","locator":"JSON simulation export and URL filtering","retrievedAt":"2026-10-07T11:10:24Z","id":"hoverfly-export","title":"Exporting Hoverfly simulations","kind":"vendor"},{"url":"https://docs.hoverfly.io/en/latest/pages/tutorials/basic/https/https.html","locator":"Client trust prerequisite for TLS interception","retrievedAt":"2026-10-07T11:09:44Z","id":"hoverfly-https","title":"Hoverfly HTTPS simulation","kind":"vendor"},{"url":"https://wiremock.org/docs/record-playback/","locator":"Recording and snapshotting stub mappings","retrievedAt":"2026-10-07T11:08:23Z","id":"wiremock-record","title":"WireMock record and playback","kind":"vendor"},{"url":"https://wiremock.org/docs/stateful-behaviour/","locator":"Scenario states and reset controls","retrievedAt":"2026-10-07T11:08:56Z","id":"wiremock-state","title":"WireMock stateful behavior","kind":"vendor"}],"overviewCitations":["hoverfly-readme"],"licenseCitations":["hoverfly-readme"],"sections":[{"id":"modes","heading":"Capturing and simulating","paragraphs":[{"id":"modes-detail","content":[{"text":"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."}],"citations":["hoverfly-capture","hoverfly-simulate"]}]},{"id":"sequences","heading":"Stateful response sequences","paragraphs":[{"id":"sequences-detail","content":[{"text":"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."}],"citations":["hoverfly-capture"]}]},{"id":"files","heading":"Portable simulation fixtures","paragraphs":[{"id":"files-detail","content":[{"text":"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."}],"citations":["hoverfly-export","hoverfly-readme"]}]},{"id":"https","heading":"HTTPS and deployment boundaries","paragraphs":[{"id":"https-detail","content":[{"text":"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."}],"citations":["hoverfly-https","hoverfly-readme"]}]},{"id":"fit","heading":"Substitution scope","paragraphs":[{"id":"fit-detail","content":[{"text":"Hoverfly can substitute for "},{"text":"WireMock","targetSlug":"wiremock"},{"text":" 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."}],"citations":["hoverfly-capture","hoverfly-export","wiremock-record","wiremock-state"]}]}]},"id":"Q1668","revision":1781,"updatedAt":"2026-10-25T22:20:08Z","sourceUrl":"https://substitutefor.net/entities/Q1668?revision=1781"}}