WireMock and Gostly: compare the workflow

Start with the response your test needs. Compare WireMock mappings with a Gostly service library, then choose how you want to prepare, run and maintain the mock.

  • 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 WireMock 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

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.

Both workflows can start with an example or upstream traffic. Their setup and maintained artifacts differ.
Your taskWireMock OSSGostly self-hosted
Prepare this responseSupply the authored mapping shown here as WireMock JSON. Mappings can be supplied as files or through its administration API. DocsImport 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 mockRun OSS as a standalone process or container in development or CI, load the mapping and call its listening origin. DocsOperate 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 trafficRecord or snapshot traffic proxied to a reachable upstream to create mappings, then use them for playback. DocsConfigure 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 GETScenarios configure state requirements and transitions; response templates can use request attributes and helpers. Scenarios · TemplatesSpecify 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

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

Continue with a supported workflow

Import the ready-order example

Prepare the service, import the collection and inspect what carries over.

Follow the import guide

Capture, build and replay

Install Gostly, configure one upstream and check the transition from LEARN to MOCK.

Follow Quick Start

Review the data boundary

Understand capture, import, storage and configured external connections.

Read the security overview

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.