Free

How to test automation on repeat runs

Test an automation with sample data: a normal run, repeated events and a partial failure. Check for duplicate actions and keep a result log.

Instructions

Step 1. Where to start

Choose a simple process: a sample record with ID demo-001 becomes one report row. Use fictional data and manual launch. Each step needs input, action, result, and a way to find the already created object.

In n8n manual start is available Manual Trigger. If n8n is not yet configured, first choose Cloud or a current self-hosting method. npm documentation warns that this method is deprecated starting with n8n 3.0; the command npx n8n on the page is not confirmation of the recommended path for your version.

Step 2. What to record before first launch

Choose one repeatable process, not the entire department's work at once. Before automation, measure several manual runs: execution time, errors, and result check time. After the pilot, compare the same metrics on similar input data. Consider setup, support, and manual checks, not just service cost.

Assign a person who accepts the result and can stop the process. Record where authorized data is stored, what counts as successful completion, and when the task should be handed over. First work on copies or fictitious data. Do not change the working system for a pilot if verification can be done separately.

Step 3. What checks to perform on training data.

  • Send the event once. Record the result ID and state of each step.
  • Repeat the same ID. Only one result should remain if process rule forbids duplicates.
  • Send another ID with similar content. This is a new event if ID defines uniqueness.
  • Remove the required field. Processing should stop with a clear reason.
  • Simulate failure before saving, then failure after saving but before response. In the second case, repeat should first find existing result.
  • If simultaneous requests are possible, send the same ID concurrently. Checking 'find then create' without a unique constraint can allow duplicates.

Process plan: Your first workflow automation. Monitoring and scheduling: Your first workflow automation. Inquiry checks: guide.

Local stubs test retry logic. After connecting the chosen service, repeat the same cases using its test data and check the actual records.

Step 4. How to accept result

For one ID there should be one expected record, and the log should explain repeats and stops. For unknown state, first check already performed actions. For external service, find out if it supports retry key or search by your ID.

After successful manual verification, you can separately configure the schedule. To cancel, stop the process and schedule, then disable unnecessary connections. Deleting the process does not undo its previous external actions.

What you will have

Normal runs, repeats and recovery after failure are tested; extra records or sends are identified and fixed.

Next: How to check permissions and AI agent access.

Prompt for Codex

Paste into your project chat:

Find the source data in the available project and conversation and fill in the bracketed fields yourself. Ask me about any unknown goals, preferences or sources; do not invent them.
Test [automation project] using sample data. Record the expected result and ID. Test the first run, the same ID again, a new similar ID, a missing required field and failures before and after saving. Test concurrent repeats if concurrent requests are possible. Compare actual records with the log, fix errors and repeat the checks.

What to try next

In this guide
Saved