n8n Pipeline Canvas (4 Nodes)
Manual Trigger
When clicking 'Execute workflow'
Code in JavaScript
Prepares raw codeToTest & language
Message a model
OpenAI gpt-4o-mini with QA Engineer prompt
Code in JavaScript1
Live Test Runner, Defect Finder & Telegram Report
๐ป Code Under Test
๐ก 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.