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.
| Task | Hoverfly | Gostly |
|---|---|---|
| Prepare an HTTP case | Capture 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 request | Edit 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 response | Edit 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 sequence | Use 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 delay | Select 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 case | Export/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.
- Send the recorded request. Inspect the selected response and the resulting application behavior.
- Change one request field. Check the intended variant and a wrong request that must not match.
- Send an unmatched request. Define the expected miss behavior first; inspect what actually happens without assuming a fallback or an upstream call.
- 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
- Capture modeProxy recording and the webserver-mode boundary.
- Simulate modeServing captured or authored simulation data.
- Simulation JSONExporting, editing, importing and sharing Hoverfly-schema files.
- Request and response pairsEditable field matchers and stored responses.
- Matching strategiesStrongest successful match and first-match selection.
- Troubleshooting a missNearest-candidate diagnostics when a request does not match.
- Response templatingPer-response enablement, request values and state.
- StateState conditions and transitions.
- Response sequencesAdvancing through responses and retaining the final response.
- DelaysURL-pattern and optional method selection.
- MiddlewareLocal-executable and HTTP interfaces, with behavior determined by mode.
- Synthesize modeCreating a response through supplied middleware.
- Modify modeForwarding edited traffic without saving the exchange.
- InstallationNative binaries, Docker and the separate hoverctl tool.
- Official Hoverfly repositoryProject context and the separate Hoverfly Cloud offering.
- Project licenseApache License 2.0 for the open-source project.
- Project release historyPublished project releases.