Testing an automation before it goes live
How often it would have started lately, the situations it can meet, a test run on one record, and a trial on your own records.
What it's for
Before you turn an automation on, see what it would do: how often it would have started recently, how it behaves at the edges of its conditions, and what it would do for one of your own records. None of this sends, changes or asks for anything.
- Open the automation from Automations.
- Click Test run.
Look back
For an automation started by a change, the ERP replays the changes to records in the last 30 days against When and If. Each change keeps the record's values from that moment, so the count is what would really have happened. Up to 25 records are listed: check that none of them should have been left out, and that none you expected is missing.
For a scheduled automation there is no history to replay. Look back shows the records that match its conditions today, which is what the next check would act on.
- A workflow runs once per record at a time, so a record that matched again while a run was still open would not have started twice.
- Changes made by other automations count too, because they start automations as well.
Situations to check
The ERP works out one situation for each way through the automation and shows what would happen in each:
| Situation | Why it is there |
|---|---|
| Just inside the conditions, such as a total of 10,000.01 when it needs more than 10,000 | Shows the main path from start to end. |
| Just outside each condition, such as a total of exactly 10,000 | Should say Does not start. If it doesn't, the condition is wider than you meant. |
| An approval is rejected | Shows what happens on a rejection. If nothing does, decide whether that is right. |
| Nobody decides in time | Shows the reminder path, for approvals with a deadline. |
| The other answer to each Check a condition | Shows the path the main situation doesn't take. |
Click a result to see each step with the day and time it would happen. The values start from your most recent record of that kind, so messages read as they would for real.
Try one of your records
- Under Try one of your records, type the record's number, for example a purchase order number.
- For a workflow with approvals, choose how each approval would go: approved or rejected, in time or late.
- Click Run the test. You see every step it would take, with the dates waits and reminders would land on.
Try it for real on your own records
A test run never sends or changes anything. When you want to see the real thing (the notice arriving, the field changing, the approval request opening) before everyone's records are involved, start a trial. It runs the saved steps for real for 7 days, but only on records you create after it starts.
- Save the automation, open its page and fix anything listed under Before it can be turned on.
- Under Try it on your own records, click Start a trial.
- Create a record that matches, for example a purchase order over the amount in its conditions. The run appears in the trial card within a minute.
- For a scheduled automation, click Check my records now instead of waiting for the schedule.
- When it does what you want, turn it on. That ends the trial; trial runs still waiting carry on to the end.
| During a trial | What happens |
|---|---|
| Notices and emails | Go to you, not to the people in the steps, so nobody else is bothered by your tests. |
| Changes to the record | Really happen, on your test record. |
| Approvals | A real approval request opens, using the approval process. The approvers in it are asked, so tell them it's a test, or use a process where you are the approver. |
| Sending to another system | Really happens. The request says "trial": true so the other system can tell. |
| Records other people create | Are left alone. If the automation is already on, its live version handles them as usual, and your records go to the trial only. |
If something looks wrong
| What you see | What to do |
|---|---|
| Look back lists a record that shouldn't match | Add or tighten a condition under If, save, and look again. |
| Look back says it would not have started, but you expected it to | Check the kind of record, what starts it (created or changed, and which fields) and the conditions. Compare with one of the records using Try one of your records. |
| A situation just outside a condition still starts it | The comparison is wider than meant, for example "at least" instead of "more than". Change it under If. |
| "No purchase order called … was found" | Type the number exactly as it shows on the record. |
| The trial didn't act on a record you made | Only records you created after the trial started count, and only ones that match When and If. Records you edit but didn't create are left alone. |