Choose the artifact your tests will own.
WireMock OSS: choose mappings your tests can own
Author JSON mappings or create them by recording proxied traffic. Keep WireMock when those mappings and its configured scenarios or templates fit your tests.
Mappings · Recording · Scenarios · Templates
Gostly self-hosted: manage a service library in your stack
Choose Gostly when you want its operator dashboard, service routing and library workflow. Start from saved examples or capture upstream traffic, then inspect what serves in MOCK.
Import an example · Capture and replay
WireMock UI or a dashboard: how each is operated
In WireMock OSS, mappings are supplied as files or through its administration API. Mappings
Gostly is operated from a dashboard in your own stack: a web UI for services, the saved response library, modes and fault settings. That dashboard manages Gostly's library. It is not a GUI for a WireMock server you already run.
Return a ready order.
This authored, synthetic example defines the expected response for one GET. Your test can then check whether the client enables fulfilment for a ready order.
Saved response · orders.postman.json
GET /orders/order_demo_001 → 200
{
"id": "order_demo_001",
"status": "ready",
"total": 42
}For Gostly, import the collection into the example service. The reserved .invalid hostname is a placeholder; your client calls the configured mock origin.
Download the synthetic collection
Authored WireMock mapping · same response
{
"request": {
"method": "GET",
"url": "/orders/order_demo_001"
},
"response": {
"status": 200,
"headers": {
"Content-Type": "application/json"
},
"jsonBody": {
"id": "order_demo_001",
"status": "ready",
"total": 42
}
}
}WireMock uses its own mapping JSON, shown here. The Postman collection download is an input for Gostly, not a WireMock mapping file. Mapping format
Compare the work around that response.
| Your task | WireMock OSS | Gostly self-hosted |
|---|---|---|
| Prepare this response | Supply the authored mapping shown here as WireMock JSON. Mappings can be supplied as files or through its administration API. Docs | Import the saved response from the Postman collection into a service routed by /orders. Review the stored mock and warnings. Worked import setup |
| Run and call the mock | Run OSS as a standalone process or container in development or CI, load the mapping and call its listening origin. Docs | Operate the self-hosted stack, confirm the selected service is in MOCK, and call the proxy origin with the path that selects that service. Quick Start |
| Use upstream traffic | Record or snapshot traffic proxied to a reachable upstream to create mappings, then use them for playback. Docs | Configure the service in LEARN, capture a representative exchange, then choose Build & switch to MOCK. Inspect the processed library before accepting replay. Capture and build |
| Go beyond one fixed GET | Scenarios configure state requirements and transitions; response templates can use request attributes and helpers. Scenarios · Templates | Specify each required response and state transition for your test. Importing this one response does not recreate scripts, authentication helpers or an ordered collection workflow. |
Check the response and what your client does.
Pass the origin of either configured mock to this illustrative Node.js assertion. Keep the application assertion in your own test suite.
Reader-owned assertion · synthetic fixture
import assert from "node:assert/strict";
export async function checkReadyOrder(mockOrigin) {
const response = await fetch(new URL("/orders/order_demo_001", mockOrigin), {
method: "GET"
});
assert.equal(response.status, 200);
assert.deepEqual(await response.json(), {
"id": "order_demo_001",
"status": "ready",
"total": 42
});
}- Confirm the request reached the intended mock process or Gostly service, with the access and routing configuration your test needs.
- Check the status and parsed body, then assert the application behavior: for example, fulfilment is available for this ready order.
- For an upstream you control, deny live access or check that its request counter did not increase during replay.
- When adding another state or response case, define its expected result and reset conditions, then check that case separately.
Include setup and operation in the choice.
Start with the current Gostly path
Use Docker Compose, a Gostly account and your license key. The setup script starts Lite by default; Full adds AI services and resource requirements. Importing this saved example and the basic capture/replay workflow do not require Full.
For an upstream capture, configure the service route, select LEARN and confirm readiness. Capture one interaction, choose Build & switch to MOCK, then repeat the request and check its result. Follow Quick Start
Review the library you will maintain
Review headers, URLs and bodies before importing or capturing data. Gostly's license validation, telemetry settings, upstream routing and configured integrations have separate connection boundaries. Security overview
Gostly starts with a 14-day Pro trial. A subscription is required after the trial. Include the infrastructure and ongoing operation of your stack, and review the current offer.
WireMock source documentation
WireMock statements use the official documentation linked here. Documentation checked 27 October 2026.
Official source documentation
- WireMock stubbing JSON mappings, response configuration and mapping import.
- WireMock record and playback Create mappings from proxied traffic or a recording snapshot.
- WireMock stateful behaviour Named scenario states, transitions and reset operations.
- WireMock response templating Configured dynamic responses using request attributes and helpers.
- WireMock service virtualization OSS standalone and container deployment in development and CI.