Test Automation Engineer study guide
Static vs Dynamic Analysis in Automation
Static Analysis involves tools inspecting the source code of the automation scripts without executing them to find syntax errors, code smells, or security flaws (e.g., SonarQube, ESLint). Dynamic Analysis evaluates the automation code while it is running, checking for memory leaks, execution speed, and actual behavior.
Practical example
Automation code is production code. It must be held to the same standards as the SUT. Static Analysis catches bad practices early: e.g., hardcoded passwords in test scripts, or using implicit waits incorrectly. Dynamic Analysis ensures the framework itself is performant: e.g., proving the test runner isn't consuming 10GB of RAM causing the CI server to crash.
Exam scenario and common trap
Question: A team's test automation scripts frequently fail during execution because they reference variables that haven't been initialized. Which analysis type would have caught this earliest and cheapest? The Trap: "Dynamic analysis, because it checks memory states." The Correct Answer: Static analysis (linting). It catches uninitialized variables and syntax errors instantly in the IDE before the code is even committed.
Related syllabus material covers the broader concept; this page includes additional context. Reference sections: 7.1.4. See the official ISTQB syllabus for exam scope. Examples are independent; QA-ace is not affiliated with ISTQB.