Choose where the mock runs.
Postman cloud: a hosted endpoint
Use saved collection examples or a deployed JavaScript mock when a hosted endpoint fits the test. Cloud mock documentation
Postman local: a local mock process
Run a JavaScript mock on your machine with the CLI; author or generate the handlers your test needs. Local execution documentation
Gostly self-hosted: a service in your stack
Import a prepared example or record an upstream, then test against your configured Gostly service. Seeding documentation
Return a ready order. Check what your client does next.
One shared task · synthetic data
Saved response in orders.postman.json
GET /orders/order_demo_001 → 200
{
"id": "order_demo_001",
"status": "ready",
"total": 42
}Use the same saved response across these workflows. Send the GET, check its status and parsed body, then assert the application behavior you need—for example, enabling fulfilment only for a ready order.
The collection contains one request and one response example. Its reserved .invalid hostname is a source placeholder. Your client calls the mock endpoint you configure.
Compare the work around that response.
| Your decision | Postman cloud mocks | Postman local mocks | Gostly self-hosted |
|---|---|---|---|
| Where the mock runs | A hosted Postman endpoint. Docs | A JavaScript mock process on the machine running the CLI, including a CI worker. Docs | Your self-hosted Gostly stack, with its operator dashboard and service library. |
| Response inputs | Saved collection examples, request history or a deployed JavaScript mock. Docs | Authored or generated JavaScript handlers can use examples, data, state and scenarios. Docs | Import saved examples, HAR or OpenAPI, or record exchanges through the proxy. Import guide |
| Prepare this GET | Use the saved response in an HTTP collection to create a collection-based mock. Docs | Use the v2.1 collection as input to CLI mock generation, then inspect the generated handler. Docs | Import the prepared collection into an example service routed by the /orders path. Review the stored mock and warnings. Worked setup |
| Call the mock | Send this path to the hosted mock URL. Choose its access settings and any needed body/header matching. Docs | Start the JavaScript mock and call its listening URL. Serving locally is separate from cloud deployment. Docs | Switch the example service to MOCK, then send the path to your proxy origin. The service route must select the imported library. |
| Tests and state | Keep assertions and workflow scripts in Collection Runner. Deployed code mocks also have session/shared-state options. Docs · Docs | JavaScript mocks support state and failure/delay scenarios; your test still checks the result. Docs | Use your own client and test runner. Importing a response does not migrate scripts, authentication helpers or an ordered collection workflow. |
| What you maintain | The selected examples or handlers, access configuration and the tests that use the endpoint. | The generated/authored handlers, local process configuration and the tests that call it. | The installed stack, service routing, prepared fixtures, runtime configuration and application assertions. |
Accept the result in your own test.
After your client makes the GET, this shared JavaScript assertion checks the response. Run it in your test environment and add the application assertion that matters to you.
Illustrative Node.js assertion · parsed response
import assert from "node:assert/strict";
// Send the GET through your chosen client and mock endpoint.
export async function expectReadyOrder(response) {
assert.equal(response.status, 200);
assert.deepEqual(await response.json(), {
id: "order_demo_001",
status: "ready",
total: 42
});
}- Confirm the client called the endpoint and service you intended, using that workflow's access configuration.
- Check the status and parsed fields, then check the resulting state or action in your application.
- For a replay test against an upstream you control, also deny live access or check that its request counter did not increase.
Keep mock execution and test execution distinct. A collection runner sends requests and runs tests; a local mock process serves the dependency. Collection CLI docs · Mock CLI docs
Choose a fit, or keep both.
Keep Postman when the workflow already fits
Keep the API client, collection assertions and scripted workflows your team uses. Collection Runner can target selected mocks; changing the dependency need not mean replacing the runner. Runner docs
Choose Gostly for a self-hosted proxy workflow
Use Gostly when you want to operate the stack and control a service library built from imports or upstream traffic. Keep your application and test harness responsible for acceptance.
Use Postman to call a Gostly service
Keep the client and runner, point the requests at your configured Gostly service, and import saved examples as starting fixtures. Scripts, authentication helpers and collection execution remain in your own tools.
Saved examples and recorded traffic are overlapping inputs. Postman's desktop proxy can capture real HTTP/HTTPS exchanges and save responses to a collection when response saving is selected; follow its platform-specific setup. Capture docs
Gostly can import saved examples or record upstream exchanges through its proxy. In either path, inspect the selected response and the transformations before accepting the fixture. A recording's origin alone does not validate your application's behavior.
Include data handling and ongoing operation.
Review the selected data path
Choose the Postman mock's access settings and review the local CLI workflow's reporting/history settings. Local serving alone does not describe every product connection. Access docs · CLI docs
Gostly's self-hosted deployment stores the replay library in its configured database and serving volume. License validation, telemetry settings, upstream routing and configured integrations have separate connection boundaries.
Review source files before import, including headers, authentication values, query values and request/response bodies. The security overview and security model describe the current capture, import and storage stages.
Postman mock server pricing and limits
Postman sets which plans include mock servers, and any limit on their use, in its own terms. Check Postman's pricing for its current plans and its resource usage page for the limits a plan carries.
Use current commercial terms
Compare those terms with Gostly pricing for the supported offer.
Gostly starts with a 14-day Pro trial, no credit card required. A subscription is required after the trial. Include the infrastructure and operation of your self-hosted stack in your decision.
If you want to work through the fit and installation with us, become a design partner.
Sources behind the Postman workflows
Postman statements use the official documentation linked here. Documentation checked 27 October 2026.
Official source documentation
- Postman JavaScript mocks Local and deployed code mocks, handlers, state and scenarios.
- Postman CLI mock commands Generate a mock, serve it locally and use it in CI.
- Deploy a Postman mock server Collection examples, request history, code mocks and access choices.
- Capture HTTP requests with Postman HTTP/HTTPS proxy capture and optional response saving.
- Run a collection with the Postman CLI Request and test execution, separately from serving a mock.
- Postman Collection Runner Collection assertions, workflow scripts and mock targeting.