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
- Webhook - Test Run Request
- Code - Load Config & Validate
- IF - Request Valid?
- Code - Build Invalid Response
- Wait - Pre Execution
- HTTP - Execute Target Workflow
- Wait - Pre Result Fetch
- HTTP - Fetch Execution Results
- Wait - Pre Assertion
- HTTP - AI Assertion (Optional)
- HTTP - Store Results & Baseline
- Code - Generate Advanced Report
- Respond to Webhook
- Respond - Invalid Request
Similar automations
Code, Git & Developer ToolsRun Visual Regression Tests with Apify and Gemini24 stepsCode, Git & Developer ToolsGenerate Unit Tests for GitHub Pull Requests with OpenAI20 stepsEmail AutomationTurn pool water tests into customer reports with Sheets, Gmail, Discord, and GPT-4o-mini34 stepsBuilding Blocks & UtilitiesPractice n8n Expressions with Progressive Data Access Tests33 steps