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.

All plans Open in TR-AI4 min read
  1. 1
    Add a test case
    Open the workflow, then Tests and simulation → Test case. Give it a name and the values the run starts with.
  2. 2
    Simulate what you need
    Give 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.
  3. 3
    Say what should happen
    How the run should end, the values it should end with, and steps that should or shouldn’t run. Save the case.
  4. 4
    Run the tests
    Run all tests shows each check with what actually happened. Nothing changes in any system.
  5. 5
    Replay real runs
    After 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.