PRODUCT · SIMULATIONS

Same file in. Same run out.

A simulation executes a saved workflow against a live environment. Jetic preflights the target, runs the ordered steps, checks every expectation, and stores a trace you can inspect step by step.

PreflightStatus checksSchema validationStored traces
jetic simulate workflow
$jetic simulate workflow --workflow .jetic/workflows/checkout.json
preflight http://localhost:3000 · reachable
✔ 1. register 201 98ms
✔ 2. login 200 61ms captured workflow:accessToken
– 3. verify 2fa skipped (requires2FA = false)
✔ 4. create order 201 143ms injected Authorization
✔ 5. fetch order 200 54ms
4 passed · 1 skipped · trace saved to .jetic/runs/
Preflight · execute · assert · record

THE RUNNER

A test run you can read afterward.

Every step records the request it sent, the response it received, the captures it made, and the time it took.

01Setup

Preflight

Probe the target before step one and fail fast when it is unreachable.

02Run

Ordered execution

Steps run in file order with memory available to every later step.

03Check

Status assertions

Each step checks its expected status; extra codes can be declared as passes.

04Check

Schema validation

Response fields are validated against the modeled contract.

05Memory

Captures

Values from requests and responses are stored for the rest of the journey.

06Evidence

Trace

The full run is stored under .jetic/runs for review and replay.

ENVIRONMENTS

Point the run at the right server.

Environments declare base URLs for local, staging, or production. Workflows stay the same; only the target changes. A preflight stops a run before it wastes time on an unreachable host.

  • Select an environment by name or override the base URL
  • Fail fast or warn when the target is unreachable
  • Keep secrets in environment references, not in files
  • Use a separate memory scope when runs must not interfere
environment
local http://localhost:3000
staging https://staging.acme.dev
production https://api.acme.com
$jetic simulate workflow --env staging
✔ preflight 200 · 41ms
✔ run started

RUN LIFECYCLE

From saved file to stored evidence.

01

Resolve

Cross-check the workflow against model.json before sending anything.

validation
02

Preflight

Probe the environment and stop early on an unreachable target.

preflight: abort
03

Execute

Run each step, resolve templates, and inject captured values.

jetic simulate workflow
04

Record

Store requests, responses, captures, timings, and errors.

.jetic/runs/<runId>/

EXPECTATIONS

What a passing step actually checks.

CheckDefault behaviorFailure handling
Expected status200 unless the step declares another code; any 2xx passes when a 2xx is expected.The step fails unless the code is listed in continueOnStatus.
Response schemaWhen a response schema exists, fields are validated against it.A mismatch fails the step.
Required capturesA capture path that is missing fails the step.Later steps cannot read the missing key.
Unresolved templateStrict mode fails before sending an empty value.Set strictTemplates false for legacy behavior.
Timeout30 seconds per request by default.The step fails with a timeout error in the trace.

NEXT

Keep the run moving.

SIMULATION FAQ

Frequently asked questions

Does a simulation need the server running?

Yes. Execution is against a live server. Scanning is static, but a simulation sends real HTTP requests to the selected environment.

Are runs isolated from each other?

Each run gets its own memory scope. Use clearMemory when a fresh state is required, and use non-production environments for destructive journeys.

Can I run a workflow asynchronously?

Yes. Start the run in the background and poll its run id while it progresses. The stored trace updates as steps complete.

Where can I find a past run?

Runs are stored under .jetic/runs. List them in the CLI or Studio, then open a run to see every request, response, and capture.

Run it. Read it. Replay it.

Turn a saved workflow into a recorded run with status checks, captured memory, and a trace you can share with your team.

Start simulating