PUZZLE #153

TestGen AI ยท Autonomous n8n QA Engineer

โ† Back to Catalog

n8n Pipeline Canvas (4 Nodes)

Click any node below to inspect parameters & execution logic
โšก
Step 1

Manual Trigger

When clicking 'Execute workflow'

Ready
{ }
Step 2

Code in JavaScript

Prepares raw codeToTest & language

Payload Ingested
๐Ÿค–
Step 3

Message a model

OpenAI gpt-4o-mini with QA Engineer prompt

JSON Output Formatted
๐Ÿ“Š
Step 4

Code in JavaScript1

Live Test Runner, Defect Finder & Telegram Report

Report Formatted

๐Ÿ’ป Code Under Test

javascript

๐Ÿ’ก QA Clue: The AI inspects the code, infers what it is supposed to do, designs test cases, and executes them to find defects where expected output โ‰  actual output.

๐ŸŽฏ Inferred Purpose & Assumptions

๐Ÿ“‹ Function Purpose

Calculate the final price after applying a percentage discount to the given price. If discountPercent is greater than 100, return 0.

โš ๏ธ Risky Assumptions Made by Code

๐Ÿ›‘ Missing Validation & Logic Flaws

๐Ÿงช QA Test Suite Execution Matrix

Live Evaluated in Browser Sandbox
7
Total Tests
6
Passed
1
Defects Found
86%
Pass Rate
โš–๏ธ QA Verdict: Critical Defect Found: Negative discounts increase prices.

๐Ÿ“ฑ Telegram Clean QA Report

QA
n8n TestGen Bot
bot ยท Telegram Markdown V2
just now