Skip to content
NEWMarketplace and the trig8n Agent: sell what you build, and get plans and changes that are tested before you see them. See what is new

Library / Code, Git & Developer Tools

Code, Git & Developer Tools

Run synthetic regression tests for webhook and HTTP API workflows

When an API call/webhook arrives, it automates developer work.

What it does

## Advanced Automated Workflow Testing Framework Enterprise-grade testing harness for n8n workflows. ### Capabilities - Accepts test-run requests via webhook - Validates payload & builds a full test plan - Supports multi-case suites with synthetic inputs - Executes target workflow (or simulates) - Collects outputs with timing - Performs structural assertions + optional AI regression analysis - Compares against stored baselines - Detects flakiness and can retry - Produces rich structured reports - Optional baseline update & notifications ### Request body example json { "testRunId": "TR-2026-001", "targetWorkflowId": "abc123", "targetWorkflowName": "Payment Processor", "environment": "staging", "updateBaseline": false, "maxRetries": 1, "testSuite": [ { "name": "happy_path", "input": { "amount": 100, "currency": "USD" }, "expected": { "status": "success" } } ] } ### Setup 1. Update URLs & credentials in Code - Load Config & Validate 2. Point your CI / test runner to the webhook path workflow-test 3. (Optional) Add Postgres or external store for baselines 4. Adjust wait times to match real workflow duration

The steps

  1. Webhook - Test Run Request
  2. Code - Load Config & Validate
  3. IF - Request Valid?
  4. Code - Build Invalid Response
  5. Wait - Pre Execution
  6. HTTP - Execute Target Workflow
  7. Wait - Pre Result Fetch
  8. HTTP - Fetch Execution Results
  9. Wait - Pre Assertion
  10. HTTP - AI Assertion (Optional)
  11. HTTP - Store Results & Baseline
  12. Code - Generate Advanced Report
  13. Respond to Webhook
  14. Respond - Invalid Request

Similar automations