SOLUTIONS · SIMULATION

Simulate the behavior. Not just the request.

A simulation in Jetic is a stateful journey against a live environment. It reproduces the way a client actually uses the API: log in, create, read, retry, and fail in the right places.

StatefulLive targetConditionsTraces
jetic simulate workflow
$jetic_simulate_workflow --workflow checkout
preflight http://localhost:3000 · reachable
step 1 login 200 61ms
step 2 create order 201 143ms
step 3 fetch order 200 54ms
✔ 3 passed · 1 token captured · trace saved
Run id 2026-10-22T09-14-02

WHAT MAKES IT A SIMULATION

The run remembers.

Each step can read what the previous step produced. That is what turns a list of requests into a simulation of use.

01Write

Capture

Store a response field in workflow memory under a name you choose.

02Read

Inject

Use that value in a later path, body, query, or header.

03Logic

Conditions

Branch or stop based on what a step captured.

04Resilience

Retries

Repeat a flaky step with a delay before failing the run.

05Edges

Expected failures

Treat a known error status as a passing outcome.

06Guard

Preflight

Fail fast when the target is unreachable, before step one.

REAL VS FAKE

No generated stub in the middle.

Jetic simulates the client, not the server. The requests go to your environment, so the behavior you observe is the behavior the API actually has.

  • Real middleware, guards, and validation
  • Real tokens from the real login endpoint
  • Real database state for created resources
  • Real error codes for negative paths
client-side simulation
1. POST /api/auth/login
capture accessToken
2. POST /api/orders
inject Authorization
capture orderId
3. GET /api/orders/:orderId
✔ behavior observed end to end

MODES

Pick the right kind of fake.

Simulation is overloaded in API tooling. These are different jobs.

ModeWhat it doesJetic
MockingReturns a canned response instead of calling a serviceNot the goal
Contract testingChecks a provider and consumer agreePartly, via schemas
Client simulationCalls the real API in a realistic orderYes
Load simulationGenerates concurrent trafficNo
State simulationCarries values across callsYes, with capture and inject

BUILD A SIMULATION

Start with one real journey.

01

Pick

Choose the flow a user actually performs.

3–5 endpoints
02

Author

Generate bodies and auth from the model in Studio.

jetic dev
03

Add state

Capture ids and tokens, inject them downstream.

capture / inject
04

Run

Execute, inspect the trace, and refine.

jetic simulate workflow

KEEP GOING

Simulation is a foundation.

SIMULATION FAQ

Frequently asked questions

Does a simulation create real data?

Yes. It calls the target environment, so writes are real for that environment. Use a disposable local or staging target.

Can I clean up afterwards?

Add delete steps to the workflow, or reset the target environment as part of your setup.

What happens if a capture is missing?

Strict templates fail the step before sending when a referenced value has no value.

Can simulations run in parallel?

Runs are workflows with shared state. They are intended to run as ordered sequences; CI parallelism should be handled per job.

Simulate the client. Observe the server.

Build one stateful journey, run it against a disposable environment, and keep the trace.

Try a simulation