How do quality assurance, testing and debugging differ?
Answer
Quality assurance improves the processes used to build a quality product and aims to prevent defects. Testing evaluates work products and software to reveal defects, failures and risk. Debugging begins after a failure or defect is observed: it locates the cause, changes the code and verifies the fix.
Strong answer includes
- prevention versus evaluation
- testing and debugging are separate activities
- connects the activities in a real workflow
Practical example
A QA lead sees the same class of null-reference bugs recurring in payment forms, so she adds an input-validation checklist item to code review — that is QA, preventing defects before they're written. A tester then runs boundary tests on the checkout amount field and finds it accepts negative values — that is testing, revealing a defect. A developer reproduces the failure, steps through the discount-calculation function in a debugger, finds the missing check, fixes it, and reruns the failing test to confirm — that is debugging.