Skip to content
MyAppBuilder
StableGuide

Test runs

A test run executes a workflow right now , from the builder, against your test data. It is the quickest way to check that each step does what you expect before the workflow fires for real in the published app.

Test runs

A test run executes a workflow right now, from the builder, against your test data. It is the quickest way to check that each step does what you expect before the workflow fires for real in the published app.

When to use

  • You just built or changed a workflow and want to see every step's output.
  • The trigger is An incoming webhook and you want to try a payload without signing a delivery (put it in Input), or On a schedule and you don't want to wait for the next occurrence — Test run starts it now ("Run now") against test data.
  • A run failed in production and you want to reproduce it safely with a test record.

How to run a test

  1. Open the workflow in Logic → Workflows.
  2. Click Test run (top right). The button is disabled while the workflow has no steps.
  3. If the trigger has an entity, choose a record under Test with a … record. The list shows up to 20 test records; the workflow sees it as the record that triggered it (or as Current record for manual workflows). You can also run without a record.
  4. Optionally paste Input (optional JSON), for example {"name": "Ada"}. Steps read it as Event data ({{event.name}}).
  5. Click Run test. The modal shows the Result: a status badge (succeeded / failed), the error if any, and the saved results as JSON.
  6. For the full step-by-step detail, open History (or the Recent runs panel under the step settings).
Note: A test run really executes every step on your test data — records are really created and changed there. Outgoing side effects are captured, not sent: emails go to the outbox only, Send webhook steps and API calls that write (POST, PUT, PATCH, DELETE) are recorded in Integrations › Recent activity as Captured (a captured Call API step has an empty result). API reads (GET) are performed. To send for real while testing, allow it per connection in the integration center.

What a test run uses

  • Data environment: test data only. Live data is never touched.
  • Permissions: the run acts as the app owner with full access.
  • Environment variables and secrets: the Development environment.
  • Trigger label in history: Test run.

Example

Example
Workflow:  "New booking → email"  (When a booking is created)
Test with: "Booking · Jamie Davis · rec_01h…"
Result:    succeeded
           { "sent": { "to": "jamie@example.com", "status": "sent" } }

Common mistakes

  • No records to pick. The list is empty until your entity has test data. Add a record in the Data section (or generate sample data) first.
  • Invalid input JSON. The input must be a JSON object ({ ... }), not a list or a bare value.
  • Expecting live secrets. Test runs use Development secrets. An API that only has its key set for Production will fail with "needs the secret … in development".
  • Unsaved edits. The builder saves pending changes before running, but give it a second after typing in a step before clicking Run test.

Advanced

Test runs call POST /api/projects/:projectId/workflows with { workflowId, recordId?, input? }. The server builds an owner-level runtime context on the test data environment and records the run with trigger type test.

Related

Was this helpful?