Static Testing

ISTQB CTFL — Static Testing
ISTQB CTFL · FOUNDATION LEVEL

Static Testing

Complete Chapter 3 study notes covering static testing basics, static analysis, reviews, stakeholder feedback, the review process, review roles, review types, success factors, and the book’s additional review-techniques section.

Chapter 32 Core SectionsInteractive Explorer8 Knowledge Checks
SDLC
3.1

Static Testing Basics

Static testing evaluates a work product without executing the test item. It can be applied to executable and non-executable work products and supports quality improvement, defect detection, and evaluation of readability, completeness, correctness, testability, and consistency.

Static Analysis

Usually tool-supported analysis of formally structured work products. Examples include code measurement, control-flow analysis, data-flow analysis, type compatibility checks, and coding-standard checks.

Reviews

People examine a work product to identify defects, questions, improvements, and quality concerns. Reviews are the chapter’s main focus.

3.1.1 Work Products Examinable by Static Testing

Reviews can be applied to virtually any work product that participants can read and understand. Examples include specifications, epics and user stories, acceptance criteria, architecture designs, source code, testware, manuals, websites, contracts, plans, schedules, and budgets.

TechniqueSuitable work productsImportant condition
ReviewVirtually any understandable work productReviewers must be able to read and analyze it meaningfully
Static analysisCode, formal models, structured requirements, and analyzable textA formal or machine-checkable structure is normally required

3.1.2 Value of Static Testing

Static testing can expose problems early, before they propagate into later work products. It can detect design and architectural defects, unreachable or unused code, documentation defects, ambiguities, contradictions, omissions, redundancies, inconsistencies, and deviations from standards. Earlier detection can reduce later dynamic-testing, maintenance, and field-failure costs while improving communication and shared understanding.

Cost-of-quality example: the chapter’s simulation starts with 130 defects. Without static testing, total quality cost is $682,800 and 26 field defects remain. With static testing before dynamic testing, total quality cost is $625,900 and 13 field defects remain—a modeled saving of $56,900 (about 8.3%).

3.1.3 Differences Between Static Testing and Dynamic Testing

Static testingDynamic testing
Does not execute the test itemRequires execution of running software
Can find defects directly in a work productOften observes a failure first, then debugging locates the defect
Can examine non-executable work productsApplies to executable/running work products
Strong for consistency and internal qualityStrong for externally visible behavior
Useful for requirements/design defects, unreachable code, standards and traceability gapsUseful for runtime-dependent issues such as memory leaks and performance
Remember: static and dynamic testing are complementary. Both aim to evaluate quality and identify defects as early as possible, but they expose different kinds of problems.
3.2

Feedback and Review Process

3.2.1 Benefits of Early and Frequent Stakeholder Feedback

Early and frequent feedback helps teams detect quality issues quickly, reduce misunderstandings, respond to changing requirements, prioritize high-value functionality, and keep implementation aligned with stakeholder expectations. The chapter’s Figure 3.3 contrasts rare feedback, where implementation drifts far from the customer’s vision, with frequent feedback, where smaller corrections keep the two closely aligned.

3.2.2 Review Process Activities

1Planning
Define scope, purpose, work products, quality characteristics, effort, timing, review type, participants, roles, checklists, and—when formal—entry/exit criteria.
2Review initiation
Distribute the work product and supporting material, explain scope and roles, answer questions, and ensure participants are ready.
3Individual review
Reviewers examine the work product and record comments, questions, recommendations, concerns, and anomalies.
4Communication and analysis
Analyze reported anomalies, distinguish defects from false positives, assign actions, and evaluate the work product against exit criteria.
5Fixing and reporting
Defects are corrected, fixes are confirmed, measures may be collected, exit criteria checked, and a review report produced.

3.2.3 Roles and Responsibilities in Reviews

RolePrincipal responsibility
ManagerDecides/schedules the review, allocates staff, budget and time, monitors cost-effectiveness, and takes control decisions.
AuthorCreates the work product and removes defects where necessary.
Moderator / facilitatorEnsures smooth meetings, mediates disagreements, and supports a safe atmosphere of trust and respect.
Scribe / recorderRecords anomalies, new potential defects, and meeting decisions.
ReviewerExamines the work product and identifies potential defects from relevant viewpoints.
Review leaderHas overall responsibility for the review process and organizes participation, place, date, and meetings.

3.2.4 Review Types

TypeFormalityKey characteristics
Informal reviewInformalNo defined process; formal documentation not required; often buddy checks or pair reviews.
WalkthroughInformal → formalUsually led by the author; individual preparation optional; can use scenarios, dry runs, or simulations.
Technical reviewInformal → formalTechnically qualified reviewers; seeks consensus and technical decisions; individual preparation mandatory; meeting optional and facilitated if held.
InspectionFormalDefined rules, roles, checklists, entry/exit criteria, mandatory preparation, documented results, and measurements used for process improvement.

A work product may undergo more than one review type. Any type can be implemented as a peer review. The appropriate level of formality depends on context such as SDLC, process maturity, criticality, complexity, regulatory requirements, audit needs, risks, resources, domain, and culture.

3.2.5 Success Factors for Reviews

Clear purpose

Define measurable objectives and exit criteria; choose a review type and techniques appropriate to the goal and work product.

Prepared participants

Schedule reviews early, give reviewers sufficient preparation time, and provide training where needed.

Right perspectives

Include people whose skills and viewpoints support the review objectives, including testers when their perspective adds value.

Healthy culture

Use small review units, objective defect handling, good moderation, mutual trust, and results that are not used to evaluate participants.

3.2.6 (*) Review Techniques

Book note: this subsection is retained as useful additional material but is explicitly marked as not examinable for the Foundation Level v4.0 syllabus.
TechniqueHow it works
Ad hoc reviewUnstructured review with little guidance; effectiveness depends strongly on reviewer skill.
Checklist-based reviewReviewers systematically check selected defect/risk items; checklists should stay focused and current.
Scenarios and dry runsReviewers step through scenarios or manually simulate behavior to check whether functionality and exceptions are represented correctly.
Role-based reviewReviewers examine the product from particular stakeholder/user roles or personas.
Perspective-based readingDifferent reviewers adopt different stakeholder perspectives and try to use the work product to produce something relevant, such as draft acceptance tests.

Role-based vs perspective-based: role-based review changes the types of users while the task remains broadly the same; perspective-based reading changes stakeholder perspectives or the kinds of tasks performed.

G

Interactive Explorer

H

Key Takeaways

Static ≠ execution

Static testing evaluates work products without running the test item.

Find defects early

Reviews and static analysis can expose defects before they propagate and become more expensive.

Know the five review activities

Planning → initiation → individual review → communication/analysis → fixing/reporting.

Know the four review types

Informal review, walkthrough, technical review, and inspection differ mainly in purpose, preparation, roles, documentation, and formality.

I

Knowledge Check

Test your understanding with all 8 Chapter 3 sample questions from the attached chapter. Choose one answer for each question.

Score: 0 / 8

Question 3.1

Your organization has just prepared an official document describing how reviews should be performed in the organization.

Can this document be reviewed?

Question 3.2

While analyzing the code, the tester noticed that the cyclomatic complexity of one of the code components was very high. The tester passed this information to the developers, who refactored the code, making it more readable and testable. This scenario shows the benefit of using:

Question 3.3

What is the difference between static and dynamic techniques, due to the purpose of these techniques?

Question 3.4

Consider the following statements about early feedback.

i. Early feedback gives developers more time to produce new features of the system, as they spend less time on modifying the features planned in a given iteration.
ii. Early feedback allows agile teams to deliver the features with the greatest business value first, as the customer’s attention remains focused on the features most important from the customer’s point of view.
iii. Early feedback reduces the overall cost of testing because it reduces the amount of time testers need to test the system.
iv. Early feedback increases the likelihood that the system produced will be close to customers’ expectations, since they have the opportunity to make changes during each iteration.

Which of these statements are true?

Question 3.5

Which of the following is part of the review initiation phase?

Question 3.6

Which role is responsible for the smooth running of the review meeting?

Question 3.7

Over the past few days, the team has been trying to find the cause of a strange system failure. Since they could not figure out the cause, the team decided to “simulate the computer” by manually executing the code line by line to understand what exactly the program was doing and thus discover the cause of the software’s strange behavior.

What type of review will be most appropriate for this activity?

Question 3.8

Inspection will be better carried out if:

ISTQB CTFL • Static Testing • Interactive Self-Study Guide