Testing a workflow before it goes live
Testing a workflow before it goes live
Save test cases with expected results, simulate results and failures, and replay real runs on a changed workflow.
- 1Add a test caseOpen the workflow, then Tests and simulation → Test case. Give it a name and the values the run starts with.
- 2Simulate what you needGive a step a simulated result — what a connector returns, or the AI’s answer as {"result": "billing", "confidence": 0.9}. To test failure handling, inject one: step=error, timeout, fail or reject.
- 3Say what should happenHow the run should end, the values it should end with, and steps that should or shouldn’t run. Save the case.
- 4Run the testsRun all tests shows each check with what actually happened. Nothing changes in any system.
- 5Replay real runsAfter a change, Replay recent runs re-runs the last real runs on the new version — with what really happened — and shows which would now go differently.
Tips & tricks
- Once a workflow has test cases, a changed version is switched on only when they all pass.
- A simulated AI answer doesn’t call the AI, but still has to pass the step’s checks.
- Waits are skipped in simulations.