Foundation Level study guide
Static vs Dynamic Testing
Static Testing evaluates the quality of software work products (requirements, design documents, source code) without executing the software. Dynamic Testing evaluates the software's behavior by actively executing the compiled code in a runtime environment.
Practical example
Static Testing: Reviews, Walkthroughs, Inspections, and Static Code Analysis (linters). It finds the root cause (Defects) directly. Dynamic Testing: Black-box, White-box, and Experience-based testing. It finds the symptom (Failures), requiring developers to trace back to the defect. Static testing can reveal issues early, although the cost and benefits depend on context.
Exam scenario and common trap
Question: Which of the following defects is Static Testing highly unlikely to find? The Trap: "Unreachable code (Dead code) or syntax errors." The Correct Answer: Runtime measurements of memory use or performance require execution. Static analysis can nevertheless flag some potential memory and performance problems without running the system.
Related syllabus sections cover this topic. Reference sections: 3.1.3. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.