Hoverfly vs Gostly

Compare an HTTP case from its first recording to the response your application checks. Review matching, response changes and the setup each workflow needs.

  • Self-hosted
  • Runs on Docker Compose
  • Built from real API traffic
  • Your test data, your control
  • Use the tests you already run

Gostly as a Hoverfly alternative

Gostly is a self-hosted API mocking tool. It builds its mock library from real API traffic, or from HAR captures and OpenAPI examples you import, then adds the errors, delays, state changes and simulated API time your tests need. In MOCK mode it answers from that library and does not call the upstream API.

14-day Pro trial. Runs on Docker Compose in your environment. See pricing

Compare one HTTP case

Both tools can start from HTTP recordings. Compare how you prepare the response, select a request and check the result in your application.

TaskHoverflyGostly
Prepare an HTTP caseCapture upstream exchanges or create/import simulation JSON. Review the matchers and stored responses.Capture a permitted HTTP exchange, review it and build the service library.
Match a requestEdit field matchers. Strongest successful match is the default; first-match is available.Configure the service route, confirm effective MOCK and check the response with your application assertion.
Change a responseEdit a stored response or enable per-response request/state templating. Middleware is another configured path.Use the reviewed response or choose an error response, then check the client result.
Exercise a sequenceUse state conditions and transitions to select a response sequence. The sequence keeps returning its final response.Write the request order and starting conditions in your test, then check each response and the application state.
Add a delaySelect a delay by URL pattern and, optionally, HTTP method.Configure the chosen delay and check your client's timeout, retry or recovery behavior.
Move and operate the caseExport/import Hoverfly-schema JSON and use the documented binary or Docker setup.Run the supported licensed stack with your account and license key; use the reviewed service library.

Prepare the response, then choose the mode

Hoverfly simulation pairs contain request matchers and responses you can edit. Response templating is optional and disabled by default; enable it on each response that needs request or state values. Middleware provides another path through a local executable or an HTTP endpoint. Synthesize mode uses that middleware to create a response.

The mode changes the upstream path. Capture records requests and responses while proxying the upstream. Simulate answers from simulation data. Modify forwards edited traffic without saving the exchange. Capture is not available in webserver mode, so check the mode as well as the installation.

Strongest matching selects among successful matches. If a request does not match, a nearest-candidate diagnostic can explain the mismatch; it is not a successfully served fallback response. Keep a wrong-request control when broadening matchers.

For Gostly, capture a permitted exchange, review it and build the service library. Configure the service route and confirm effective MOCK before checking your application. A chosen error response or delay gives you a specific client behavior to inspect.

Choose by the case you need to operate

Hoverfly gives you simulation JSON with editable matchers, stored responses, optional templates and state. Gostly's workflow here uses a reviewed service library and the response conditions you choose. Start with the artifact and setup you want to maintain.

A test plan for the same caller

Choose one permitted nonproduction HTTP exchange and use the same caller for both tools. Define the expected response and application assertion before running each case.

  1. Send the recorded request. Inspect the selected response and the resulting application behavior.
  2. Change one request field. Check the intended variant and a wrong request that must not match.
  3. Send an unmatched request. Define the expected miss behavior first; inspect what actually happens without assuming a fallback or an upstream call.
  4. For a sequence, write down its starting state and request order. Check the final response, then set up the next run explicitly; resetting one component does not establish the state of the whole application.

These are suggested checks for a reader-authored case; no test results are shown.

License and deployment

Hoverfly's open-source project is published under Apache-2.0. Its installation documentation covers native binaries and Docker. The Docker image does not include hoverctl; a host installation of that tool can manage the containerized instance.

The official repository also links to a separate Hoverfly Cloud offering. Evaluate that offering separately from the Apache-2.0 project.

Hoverfly files use its own simulation schema. For the Gostly evaluation, bring the reviewed HTTP exchange and your application assertion. This workflow is not a native Hoverfly-project import.

The Gostly workflow on this page uses the supported licensed stack, a Gostly account and a license key. Review the data you retain and the connections you configure before bringing the exchange into your test environment.

References

Read the official Hoverfly documentation

FAQ

Do I need an API specification to use Gostly?

No. You can capture a permitted HTTP exchange in LEARN, build the library and confirm the service is in MOCK before running your test.

Can I use Gostly with my existing test runner?

Yes. Your application or test runner calls the configured Gostly service and keeps its own assertions. Check both the response and the resulting application behavior.

What should I bring to the Gostly trial?

A reviewed nonproduction HTTP exchange and an application assertion. Use a Gostly account and license key with the supported stack, configure the service route, complete the library build and confirm effective MOCK. Review retained data and configured connections.

How does the Gostly trial work?

Gostly starts with a 14-day Pro trial, no credit card required. A subscription is required after the trial.

Resources

Explore Gostly in more detail

Start from a recorded HTTP exchange

Follow a worked example from capture to a reviewed library, then check the response with your own application assertion.

Explore record and replay

Choose the API condition to test

Explore controlled failures, slow responses and simulated time with the tests you already run.

Explore API simulation

Set up one Gostly service

Prepare the supported stack, configure a service route and check your application against it.

Read the setup guide

Optional · Full stack

Train a model to simulate any API or service.

The model learns from the HTTP exchanges between your application and the service, whoever runs it: a payment provider, a partner, another team. Choose the exchanges you have reviewed, train a small adapter on your own compute, and attach the version you choose. Every answer says whether it was stored, retrieved or generated.

  • Full stack
  • Your own compute
  • Reviewed examples

See how a model is trained

  1. 1Choose traffic (current)
  2. 2Train a version
  3. 3Attach adapter

Service + URI filter

ServiceDemo API

URI filter/gostly-demo/anything/*

ExchangesThe ones you reviewed

Try Gostly with the APIs your app calls

Capture an HTTP exchange, build your library and check the result with your application.