Skip to main content
Testing Fundamentals
DEFINITION

What is Static Testing?

Static testing finds defects without executing the code, through reviews of work products (requirements, design, code) and automated static analysis, catching issues earlier and more cheaply than running the software. Linters, type checkers and security scanners are static tests, and so is a requirements review that finds an ambiguity before anyone builds it.

No account needed · Scored in under a minute against a senior rubric

IN DEPTH

What does Static Testing mean in practice?

Static testing splits into two families. Reviews are human examination of work products: informal reviews, walkthroughs, technical reviews, and formal inspections, applied to requirements, designs, test cases, and code. They catch ambiguous requirements and design flaws before a single line is written, which is the cheapest possible place to fix a defect. Static analysis is tool-driven: linters, type checkers, and SAST scan source code for bugs, style violations, security issues, and complexity without running it.

The contrast is with dynamic testing, which executes the software and observes behavior (unit, integration, system, performance tests). Static testing is a form of verification (are we building it right, against the spec) while much dynamic testing leans toward validation (are we building the right thing). They are complementary: static catches different defects, earlier; dynamic catches runtime and integration behavior static cannot see.

The interview value of static testing is the shift-left argument: a requirements review that removes an ambiguity prevents a whole chain of downstream bugs, far cheaper than catching them in QA or production.

WHY IT MATTERS

Why do interviewers ask about Static Testing?

Static testing shows you understand that testing starts before code runs. Interviewers value the shift-left mindset, reviews and static analysis catching defects early, and the clear static-versus-dynamic distinction.

EXAMPLE

What does Static Testing look like in a real project?

A requirements review (static testing) catches that "users can reset their password" never specifies what happens to active sessions. Clarifying it up front prevents a security defect that would otherwise have shipped and been caught, expensively, only after a dynamic test or a production incident.

TIP

How should you talk about Static Testing in an interview?

Define static testing as finding defects without running the code (reviews + static analysis) and contrast it with dynamic testing. Tie it to shift-left and to verification vs validation for a strong, structured answer.

FAQ

Common questions about Static Testing

What is the difference between static and dynamic testing?

Static testing finds defects without executing the code, through reviews and static analysis. Dynamic testing executes the software and observes its behavior (unit, integration, system, performance). They are complementary and catch different defect types.

Is code review a form of static testing?

Yes. Code review is a review-based static testing technique. So are walkthroughs, technical reviews, and formal inspections of requirements, designs, and test cases, alongside tool-based static analysis.

Related Resources

Dive deeper with these related interview prep pages.

FREE TOOLS  /  no signup

Free QA career tools, no account needed

Instant and private, everything runs in your browser. Try them before you sign up.

EXEC.NOW

Ready to Ace Your QA Interview?

Practice explaining static testing and other key concepts with our AI interviewer.

Join 500+ QA engineers already practicing with AssertHired.

Question 1 · Automation · Mid-levellive scoring

A test passes locally but fails in CI about one run in five. Walk me through what you check first, and why.

Scored on the same four dimensions as the real thing: Technical accuracy · Coverage · Clarity · Best practices.

Rather skip ahead? Create a free account

FREE.TO.START  ·  7.DAY.TRIAL ON PAID PLANS
Written by , Senior QA Automation Engineer, 50+ QA candidate interviews conductedLast updated July 2026