SlideShare a Scribd company logo
4
Most read
13
Most read
17
Most read
Static Testing
1 Fundamentals
2 Testing
in Lifecycle
4 Analysis
& Design
3 Static testing
5 Test
Management
6 Test Tools
ISTQB Foundation
Chapter - 3
TM
© 2023. All Rights Reserved
Static Testing
Content
3.1 Static Testing Basics
3.2 Feedback and Review Process
TM
© 2023. All Rights Reserved
Static Testing
Content
3.1.1. Work Products Examinable by
Static Testing
3.1.2. Value of Static Testing
3.1.3. Differences between Static Testing
and Dynamic Testing
TM
© 2023. All Rights Reserved
Static Testing
 In contrast to dynamic testing, in static testing the software under test does not need to be executed. Code, process
specification, system architecture specification or other work products are evaluated through manual examination (e.g.,
reviews) or with the help of a tool (e.g., static analysis).
 Test objectives include improving quality, detecting defects and assessing characteristics like readability, completeness,
correctness, testability and consistency. Static testing can be applied for both verification and validation.
 Testers, business representatives and developers work together during example mappings, collaborative user story
writing and backlog refinement sessions to ensure that user stories and related work products meet defined criteria,
e.g., the Definition of Ready.
 Review techniques can be applied to ensure user stories are complete and understandable and include testable
acceptance criteria. By asking the right questions, testers explore, challenge and help improve the proposed user
stories.
 Static analysis can identify problems prior to dynamic testing while often requiring less effort, since no test cases are
required, and tools are typically used. Static analysis is often incorporated into CI frameworks. While largely used to
detect specific code defects, static analysis is also used to evaluate maintainability and security. Spelling checkers and
readability tools are other examples of static analysis tools.
Static Testing Basics
TM
© 2023. All Rights Reserved
Static Testing
 Almost any work product can be examined using static testing. Examples include requirement specification documents,
source code, test plans, test cases, product backlog items, test charters, project documentation, contracts and models.
 Any work product that can be read and understood can be the subject of a review. However, for static analysis, work
products need a structure against which they can be checked (e.g., models, code or text with a formal syntax).
 Work products that are not appropriate for static testing include those that are difficult to interpret by human beings
and that should not be analyzed by tools (e.g., 3rd party executable code due to legal reasons).
Work Products Examinable by Static Testing
TM
© 2023. All Rights Reserved
Static Testing
 Static testing can detect defects in the earliest phases of the SDLC, fulfilling the principle of early testing. It can also
identify defects which cannot be detected by dynamic testing (e.g., unreachable code, design patterns not implemented
as desired, defects in non-executable work products).
 Static testing provides the ability to evaluate the quality of, and to build confidence in work products. By verifying the
documented requirements, the stakeholders can also make sure that these requirements describe their actual needs.
 Since static testing can be performed early in the SDLC, a shared understanding can be created among the involved
stakeholders.
 Communication will also be improved between the involved stakeholders. For this reason, it is recommended to involve
a wide variety of stakeholders in static testing.
 Even though reviews can be costly to implement, the overall project costs are usually much lower than when no reviews
are performed because less time and effort needs to be spent on fixing defects later in the project.
 Code defects can be detected using static analysis more efficiently than in dynamic testing, usually resulting in both
fewer code defects and a lower overall development effort.
Value of Static Testing
TM
© 2023. All Rights Reserved
Static Testing
Content
3.1.1. Work Products Examinable by
Static Testing
3.1.2. Value of Static Testing
3.1.3. Differences between Static Testing
and Dynamic Testing
TM
© 2023. All Rights Reserved
Static Testing
Static testing and dynamic testing practices complement each other. They have similar objectives, such as supporting the
detection of defects in work products, but there are also some differences, such as:
 Static and dynamic testing (with analysis of failures) can both lead to the detection of defects, however there are some
defect types that can only be found by either static or dynamic testing.
 Static testing finds defects directly, while dynamic testing causes failures from which the associated defects are
determined through subsequent analysis
 Static testing may more easily detect defects that lay on paths through the code that are rarely executed or hard to
reach using dynamic testing
 Static testing can be applied to non-executable work products, while dynamic testing can only be applied to executable
work products
 Static testing can be used to measure quality characteristics that are not dependent on executing code (e.g.,
maintainability), while dynamic testing can be used to measure quality characteristics that are dependent on executing
code (e.g., performance efficiency)
Difference Between Static Testing & Dynamic Testing
TM
© 2023. All Rights Reserved
Static Testing
Typical defects that are easier and/or cheaper to find through static testing include:
 Defects in requirements (e.g., inconsistencies, ambiguities, contradictions, omissions, inaccuracies, duplications)
 Design defects (e.g., inefficient database structures, poor modularization)
 Certain types of coding defects (e.g., variables with undefined values, undeclared variables, unreachable or duplicated
code, excessive code complexity)
 Deviations from standards (e.g., lack of adherence to naming conventions in coding standards)
 Incorrect interface specifications (e.g., mismatched number, type or order of parameters)
 Specific types of security vulnerabilities (e.g., buffer overflows)
 Gaps or inaccuracies in test basis coverage (e.g., missing tests for an acceptance criterion)
Difference Between Static Testing & Dynamic Testing
TM
© 2023. All Rights Reserved
Static Testing
Content
3.1 Static Testing Basics
3.2 Feedback and Review Process
TM
© 2023. All Rights Reserved
Static Testing
Content
3.2.1. Benefits of Early and Frequent
Stakeholder Feedback
3.2.2. Review Process Activities
3.2.3. Roles and Responsibilities in Reviews
3.2.4. Review Types
3.2.5. Success Factors for Reviews
TM
© 2023. All Rights Reserved
Static Testing
 Early and frequent feedback allows for the early communication of potential quality problems. If there is little
stakeholder involvement during the SDLC, the product being developed might not meet the stakeholder’s original or
current vision.
 A failure to deliver what the stakeholder wants can result in costly rework, missed deadlines, blame games, and might
even lead to complete project failure.
 Frequent stakeholder feedback throughout the SDLC can prevent misunderstandings about requirements and ensure
that changes to requirements are understood and implemented earlier.
 This helps the development team to improve their understanding of what they are building. It allows them to focus on
those features that deliver the most value to the stakeholders and that have the most positive impact on identified risks.
Benefits of Early & Frequent Stakeholder Feedback
TM
© 2023. All Rights Reserved
Static Testing
The activities in the review process are:
 Planning. During the planning phase, the scope of the review, which comprises the purpose, the work product to be
reviewed, quality characteristics to be evaluated, areas to focus on, exit criteria, supporting information such as
standards, effort and the timeframes for the review, shall be defined.
 Review initiation. During review initiation, the goal is to make sure that everyone and everything involved is prepared
to start the review. This includes making sure that every participant has access to the work product under review,
understands their role and responsibilities and receives everything needed to perform the review.
 Individual review. Every reviewer performs an individual review to assess the quality of the work product under
review, and to identify anomalies, recommendations, and questions by applying one or more review techniques (e.g.,
checklist-based reviewing, scenario-based reviewing). The ISO/IEC 20246 standard provides more depth on different
review techniques. The reviewers log all their identified anomalies, recommendations, and questions.
 Communication and analysis. Since the anomalies identified during a review are not necessarily defects, all these
anomalies need to be analyzed and discussed. For every anomaly, the decision should be made on its status, ownership
and required actions. This is typically done in a review meeting, during which the participants also decide what the
quality level of reviewed work product is and what follow-up actions are required. A follow-up review may be required
to complete actions.
 Fixing and reporting. For every defect, a defect report should be created so that corrective actions can be followed-up.
Once the exit criteria are reached, the work product can be accepted. The review results are reported.
Review Process Activities
TM
© 2023. All Rights Reserved
Static Testing
Reviews involve various stakeholders, who may take on several roles. The principal roles and their responsibilities are:
 Manager – decides what is to be reviewed and provides resources, such as staff and time for the review
 Author – creates and fixes the work product under review
 Moderator (also known as the facilitator) – ensures the effective running of review meetings, including mediation,
time management, and a safe review environment in which everyone can speak freely
 Scribe (also known as recorder) – collates anomalies from reviewers and records review information, such as
decisions and new anomalies found during the review meeting
 Reviewer – performs reviews. A reviewer may be someone working on the project, a subject matter expert, or any
other stakeholder
 Review leader – takes overall responsibility for the review such as deciding who will be involved, and organizing when
and where the review will take place
Roles and Responsibilities in Review
TM
© 2023. All Rights Reserved
Static Testing
Content
3.2.1. Benefits of Early and Frequent
Stakeholder Feedback
3.2.2. Review Process Activities
3.2.3. Roles and Responsibilities in Reviews
3.2.4. Review Types
3.2.5. Success Factors for Reviews
TM
© 2023. All Rights Reserved
Static Testing
 There exist many review types ranging from informal reviews to formal reviews.
 The required level of formality depends on factors such as the SDLC being followed, the maturity of the development
process, the criticality and complexity of the work product being reviewed, legal or regulatory requirements, and the
need for an audit trail.
 The same work product can be reviewed with different review types, e.g., first an informal one and later a more formal
one.
 Selecting the right review type is key to achieving the required review objectives. The selection is not only based on the
objectives, but also on factors such as the project needs, available resources, work product type and risks, business
domain, and company culture.
Review Types
TM
© 2023. All Rights Reserved
Static Testing
Some commonly used review types are:
 Informal review. Informal reviews do not follow a defined process and do not require a formal documented output.
The main objective is detecting anomalies.
 Walkthrough. A walkthrough, which is led by the author, can serve many objectives, such as evaluating quality and
building confidence in the work product, educating reviewers, gaining consensus, generating new ideas, motivating and
enabling authors to improve and detecting anomalies. Reviewers might perform an individual review before the
walkthrough, but this is not required.
 Technical Review. A technical review is performed by technically qualified reviewers and led by a moderator. The
objectives of a technical review are to gain consensus and make decisions regarding a technical problem, but also to
detect anomalies, evaluate quality and build confidence in the work product, generate new ideas, and to motivate and
enable authors to improve.
 Inspection. As inspections are the most formal type of review, they follow the complete generic process. The main
objective is to find the maximum number of anomalies. Other objectives are to evaluate quality, build confidence in the
work product, and to motivate and enable authors to improve. Metrics are collected and used to improve the SDLC,
including the inspection process. In inspections, the author cannot act as the review leader or scribe.
Review Types
TM
© 2023. All Rights Reserved
Static Testing
Content
3.2.1. Benefits of Early and Frequent
Stakeholder Feedback
3.2.2. Review Process Activities
3.2.3. Roles and Responsibilities in Reviews
3.2.4. Review Types
3.2.5. Success Factors for Reviews
TM
© 2023. All Rights Reserved
Static Testing
There are several factors that determine the success of reviews, which include:
 Defining clear objectives and measurable exit criteria. Evaluation of participants should never be an objective
 Choosing the appropriate review type to achieve the given objectives, and to suit the type of work product, the review
participants, the project needs and context
 Conducting reviews on small chunks, so that reviewers do not lose concentration during an individual review and/or
the review meeting (when held)
 Providing feedback from reviews to stakeholders and authors so they can improve the product and their activities
 Providing adequate time to participants to prepare for the review
 Support from management for the review process
 Making reviews part of the organization’s culture, to promote learning and process improvement
 Providing adequate training for all participants so they know how to fulfil their role
 Facilitating meetings
Success Factors for Reviews
TM
© 2023. All Rights Reserved
Static Testing
1. Which of the following is NOT a benefit of static testing?
Answer Set
A. Having less expensive defect management due to the ease of detecting defects later in the SDLC
B. Fixing defects found during static testing is generally much less expensive than fixing defects found during dynamic
testing
C. Finding coding defects that might not have been found by only performing dynamic testing
D. Detecting gaps and inconsistencies in requirements
Sample Questions
TM
© 2023. All Rights Reserved
Static Testing
2. The reviews being used in your organization have the following attributes:
➢ There is the role of a scribe
➢ The main purpose is to evaluate quality
➢ The meeting is led by the author of the work product
➢ There is individual preparation
➢ A review report is produced
Which of the following review types is MOST likely being used?
Answer Set
A. Informal review
B. Walkthrough
C. Technical review
D. Inspection
Sample Questions
TM
© 2023. All Rights Reserved
Static Testing
3. Which of these statements is NOT a factor that contributes to successful reviews?
Answer Set
A. Participants should dedicate adequate time for the review
B. Splitting large work products into small parts to make the required effort less intense
C. Participants should avoid behaviors that might indicate boredom, exasperation, or hostility to other participants
D. Failures found should be acknowledged, appreciated, and handled objectively
Sample Questions

More Related Content

What's hot (20)

PPTX
Chapter 3 - Static Testing
Neeraj Kumar Singh
 
PPTX
Chapter 6 - Tool Support for Testing
Neeraj Kumar Singh
 
PPTX
Chapter 2 - Test Management
Neeraj Kumar Singh
 
PPTX
Chapter 6 - Test Tools and Automation
Neeraj Kumar Singh
 
PPTX
Chapter 5 - Test Management
Neeraj Kumar Singh
 
PPTX
Chapter 3 - Test Techniques
Neeraj Kumar Singh
 
PPTX
Chapter 4 - Quality Characteristics for Technical Testing
Neeraj Kumar Singh
 
PPTX
Chapter 1 - Testing Process
Neeraj Kumar Singh
 
PPTX
Chapter 1 - The Technical Test Analyst Tasks in Risk Based Testing
Neeraj Kumar Singh
 
PPTX
ISTQB foundation level - day 2
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
PPTX
Chapter 3 - Analytical Techniques
Neeraj Kumar Singh
 
PPTX
Chapter 2 - White Box Test Techniques
Neeraj Kumar Singh
 
PDF
manual-testing
Kanak Mane
 
PDF
Chapter 5 - Improving the Testing Process
Neeraj Kumar Singh
 
PDF
ISTQB Foundation Level Mock Exam 1
Neeraj Kumar Singh
 
PDF
INTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFL
Rahul R Pandya
 
PPS
ISTQB Foundation - Chapter 3
Chandukar
 
PPTX
Fundamentals of Testing
Code95
 
PPTX
ISTQB - What's testing
HoangThiHien1
 
PPTX
Chapter 4 - Testing Quality Characteristics
Neeraj Kumar Singh
 
Chapter 3 - Static Testing
Neeraj Kumar Singh
 
Chapter 6 - Tool Support for Testing
Neeraj Kumar Singh
 
Chapter 2 - Test Management
Neeraj Kumar Singh
 
Chapter 6 - Test Tools and Automation
Neeraj Kumar Singh
 
Chapter 5 - Test Management
Neeraj Kumar Singh
 
Chapter 3 - Test Techniques
Neeraj Kumar Singh
 
Chapter 4 - Quality Characteristics for Technical Testing
Neeraj Kumar Singh
 
Chapter 1 - Testing Process
Neeraj Kumar Singh
 
Chapter 1 - The Technical Test Analyst Tasks in Risk Based Testing
Neeraj Kumar Singh
 
ISTQB foundation level - day 2
Shuchi Singla AKT,SPC4,PMI-ACP,ITIL(F),CP-AAT
 
Chapter 3 - Analytical Techniques
Neeraj Kumar Singh
 
Chapter 2 - White Box Test Techniques
Neeraj Kumar Singh
 
manual-testing
Kanak Mane
 
Chapter 5 - Improving the Testing Process
Neeraj Kumar Singh
 
ISTQB Foundation Level Mock Exam 1
Neeraj Kumar Singh
 
INTRODUCTION TO ISTQB FOUNDATION LEVEL - CTFL
Rahul R Pandya
 
ISTQB Foundation - Chapter 3
Chandukar
 
Fundamentals of Testing
Code95
 
ISTQB - What's testing
HoangThiHien1
 
Chapter 4 - Testing Quality Characteristics
Neeraj Kumar Singh
 

Similar to Chapter 3 - Static Testing (Review) V4.0 (20)

PPTX
Static Testing
Dharita Chokshi
 
PPTX
Static Testing
Suraj Vishwakarma
 
PPTX
Static Verification Techniques S/W Q/A.pptx
ssuser618f69
 
PPTX
Chater 3 Static Technic (by Eva Normala)
EvaNormala
 
PPTX
SDET UNIT 2.pptx
Dr. Pallawi Bulakh
 
PPTX
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...
madhurpatidar2
 
PPTX
Static techniques
muhamad iqbal
 
PPTX
Marjuni.
marjuni .
 
PPTX
Static techniques
ANDRI HAIRIYADI, S.Kom.
 
POTX
Static Techniques
mentary fransiska
 
PPTX
Chapter 3 Static Techniques
Zetryan Satria
 
PPTX
Static techniques
chayo rona
 
PPTX
Static techniques
Achmad Harpin Asrori
 
PPTX
CTFL Module 03
Davis Thomas
 
PPTX
Chapter Three Static Techniques
elvira munanda
 
PPTX
Presentasi static techniques
Egi Ilham Elnusa
 
PPT
2.1_Static Testing_Devops_SDLC_guide_to_everything.ppt
tecaviw979
 
PPT
Introduction to Artificial Intelligence Definition of Artificial Intelligenc...
tecaviw979
 
PPTX
Concepts of unit testing_dynamic-testing.ppt.pptx
ssuser9d6aac
 
PDF
Forgotten? Ignored? Obsolete? Static testing techniques
Mikhail Pavlov
 
Static Testing
Dharita Chokshi
 
Static Testing
Suraj Vishwakarma
 
Static Verification Techniques S/W Q/A.pptx
ssuser618f69
 
Chater 3 Static Technic (by Eva Normala)
EvaNormala
 
SDET UNIT 2.pptx
Dr. Pallawi Bulakh
 
WINSEM2021-22_ITE2004_ETH_VL2021220500452_Reference_Material_I_28-02-2022_sta...
madhurpatidar2
 
Static techniques
muhamad iqbal
 
Marjuni.
marjuni .
 
Static techniques
ANDRI HAIRIYADI, S.Kom.
 
Static Techniques
mentary fransiska
 
Chapter 3 Static Techniques
Zetryan Satria
 
Static techniques
chayo rona
 
Static techniques
Achmad Harpin Asrori
 
CTFL Module 03
Davis Thomas
 
Chapter Three Static Techniques
elvira munanda
 
Presentasi static techniques
Egi Ilham Elnusa
 
2.1_Static Testing_Devops_SDLC_guide_to_everything.ppt
tecaviw979
 
Introduction to Artificial Intelligence Definition of Artificial Intelligenc...
tecaviw979
 
Concepts of unit testing_dynamic-testing.ppt.pptx
ssuser9d6aac
 
Forgotten? Ignored? Obsolete? Static testing techniques
Mikhail Pavlov
 
Ad

More from Neeraj Kumar Singh (20)

PDF
Chapter 5 - Automating the Test Execution
Neeraj Kumar Singh
 
PDF
Chapter 4 - Mobile Application Platforms, Tools and Environment
Neeraj Kumar Singh
 
PDF
Chapter 3 - Common Test Types and Test Process for Mobile Applications
Neeraj Kumar Singh
 
PDF
Chapter 2 - Mobile Application Test Types
Neeraj Kumar Singh
 
PDF
Chapter 1 - Mobile World - Business and Technology Drivers
Neeraj Kumar Singh
 
PDF
ISTQB Performance Tester Sample Questions
Neeraj Kumar Singh
 
PDF
ISTQB Performance Tester Sample Questions' Answers
Neeraj Kumar Singh
 
PDF
ISTQB Performance Tester Certification Syllabus and Study Material
Neeraj Kumar Singh
 
PDF
Chapter 5 - Tools
Neeraj Kumar Singh
 
PDF
Chapter 4 - Performance Testing Tasks
Neeraj Kumar Singh
 
PDF
Chapter 3 - Performance Testing in the Software Lifecycle
Neeraj Kumar Singh
 
PDF
Chapter 1 - Basic Concepts
Neeraj Kumar Singh
 
PDF
Chapter 2 - Performance Measurement Fundamentals
Neeraj Kumar Singh
 
PDF
Chapter 7 - People Skills and Team Composition
Neeraj Kumar Singh
 
PDF
Chapter 6 - Test Tools and Automation
Neeraj Kumar Singh
 
PDF
Chapter 4 - Defect Management
Neeraj Kumar Singh
 
PDF
Chapter 3 - Reviews
Neeraj Kumar Singh
 
PDF
Chapter 2 - Test Management
Neeraj Kumar Singh
 
PDF
Chapter 1 - Testing Process
Neeraj Kumar Singh
 
PDF
ISTQB Technical Test Analyst Answers to Sample Question Paper
Neeraj Kumar Singh
 
Chapter 5 - Automating the Test Execution
Neeraj Kumar Singh
 
Chapter 4 - Mobile Application Platforms, Tools and Environment
Neeraj Kumar Singh
 
Chapter 3 - Common Test Types and Test Process for Mobile Applications
Neeraj Kumar Singh
 
Chapter 2 - Mobile Application Test Types
Neeraj Kumar Singh
 
Chapter 1 - Mobile World - Business and Technology Drivers
Neeraj Kumar Singh
 
ISTQB Performance Tester Sample Questions
Neeraj Kumar Singh
 
ISTQB Performance Tester Sample Questions' Answers
Neeraj Kumar Singh
 
ISTQB Performance Tester Certification Syllabus and Study Material
Neeraj Kumar Singh
 
Chapter 5 - Tools
Neeraj Kumar Singh
 
Chapter 4 - Performance Testing Tasks
Neeraj Kumar Singh
 
Chapter 3 - Performance Testing in the Software Lifecycle
Neeraj Kumar Singh
 
Chapter 1 - Basic Concepts
Neeraj Kumar Singh
 
Chapter 2 - Performance Measurement Fundamentals
Neeraj Kumar Singh
 
Chapter 7 - People Skills and Team Composition
Neeraj Kumar Singh
 
Chapter 6 - Test Tools and Automation
Neeraj Kumar Singh
 
Chapter 4 - Defect Management
Neeraj Kumar Singh
 
Chapter 3 - Reviews
Neeraj Kumar Singh
 
Chapter 2 - Test Management
Neeraj Kumar Singh
 
Chapter 1 - Testing Process
Neeraj Kumar Singh
 
ISTQB Technical Test Analyst Answers to Sample Question Paper
Neeraj Kumar Singh
 
Ad

Recently uploaded (20)

PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Learn Computer Forensics, Second Edition
AnuraShantha7
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Learn Computer Forensics, Second Edition
AnuraShantha7
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 

Chapter 3 - Static Testing (Review) V4.0

  • 1. Static Testing 1 Fundamentals 2 Testing in Lifecycle 4 Analysis & Design 3 Static testing 5 Test Management 6 Test Tools ISTQB Foundation Chapter - 3
  • 2. TM © 2023. All Rights Reserved Static Testing Content 3.1 Static Testing Basics 3.2 Feedback and Review Process
  • 3. TM © 2023. All Rights Reserved Static Testing Content 3.1.1. Work Products Examinable by Static Testing 3.1.2. Value of Static Testing 3.1.3. Differences between Static Testing and Dynamic Testing
  • 4. TM © 2023. All Rights Reserved Static Testing  In contrast to dynamic testing, in static testing the software under test does not need to be executed. Code, process specification, system architecture specification or other work products are evaluated through manual examination (e.g., reviews) or with the help of a tool (e.g., static analysis).  Test objectives include improving quality, detecting defects and assessing characteristics like readability, completeness, correctness, testability and consistency. Static testing can be applied for both verification and validation.  Testers, business representatives and developers work together during example mappings, collaborative user story writing and backlog refinement sessions to ensure that user stories and related work products meet defined criteria, e.g., the Definition of Ready.  Review techniques can be applied to ensure user stories are complete and understandable and include testable acceptance criteria. By asking the right questions, testers explore, challenge and help improve the proposed user stories.  Static analysis can identify problems prior to dynamic testing while often requiring less effort, since no test cases are required, and tools are typically used. Static analysis is often incorporated into CI frameworks. While largely used to detect specific code defects, static analysis is also used to evaluate maintainability and security. Spelling checkers and readability tools are other examples of static analysis tools. Static Testing Basics
  • 5. TM © 2023. All Rights Reserved Static Testing  Almost any work product can be examined using static testing. Examples include requirement specification documents, source code, test plans, test cases, product backlog items, test charters, project documentation, contracts and models.  Any work product that can be read and understood can be the subject of a review. However, for static analysis, work products need a structure against which they can be checked (e.g., models, code or text with a formal syntax).  Work products that are not appropriate for static testing include those that are difficult to interpret by human beings and that should not be analyzed by tools (e.g., 3rd party executable code due to legal reasons). Work Products Examinable by Static Testing
  • 6. TM © 2023. All Rights Reserved Static Testing  Static testing can detect defects in the earliest phases of the SDLC, fulfilling the principle of early testing. It can also identify defects which cannot be detected by dynamic testing (e.g., unreachable code, design patterns not implemented as desired, defects in non-executable work products).  Static testing provides the ability to evaluate the quality of, and to build confidence in work products. By verifying the documented requirements, the stakeholders can also make sure that these requirements describe their actual needs.  Since static testing can be performed early in the SDLC, a shared understanding can be created among the involved stakeholders.  Communication will also be improved between the involved stakeholders. For this reason, it is recommended to involve a wide variety of stakeholders in static testing.  Even though reviews can be costly to implement, the overall project costs are usually much lower than when no reviews are performed because less time and effort needs to be spent on fixing defects later in the project.  Code defects can be detected using static analysis more efficiently than in dynamic testing, usually resulting in both fewer code defects and a lower overall development effort. Value of Static Testing
  • 7. TM © 2023. All Rights Reserved Static Testing Content 3.1.1. Work Products Examinable by Static Testing 3.1.2. Value of Static Testing 3.1.3. Differences between Static Testing and Dynamic Testing
  • 8. TM © 2023. All Rights Reserved Static Testing Static testing and dynamic testing practices complement each other. They have similar objectives, such as supporting the detection of defects in work products, but there are also some differences, such as:  Static and dynamic testing (with analysis of failures) can both lead to the detection of defects, however there are some defect types that can only be found by either static or dynamic testing.  Static testing finds defects directly, while dynamic testing causes failures from which the associated defects are determined through subsequent analysis  Static testing may more easily detect defects that lay on paths through the code that are rarely executed or hard to reach using dynamic testing  Static testing can be applied to non-executable work products, while dynamic testing can only be applied to executable work products  Static testing can be used to measure quality characteristics that are not dependent on executing code (e.g., maintainability), while dynamic testing can be used to measure quality characteristics that are dependent on executing code (e.g., performance efficiency) Difference Between Static Testing & Dynamic Testing
  • 9. TM © 2023. All Rights Reserved Static Testing Typical defects that are easier and/or cheaper to find through static testing include:  Defects in requirements (e.g., inconsistencies, ambiguities, contradictions, omissions, inaccuracies, duplications)  Design defects (e.g., inefficient database structures, poor modularization)  Certain types of coding defects (e.g., variables with undefined values, undeclared variables, unreachable or duplicated code, excessive code complexity)  Deviations from standards (e.g., lack of adherence to naming conventions in coding standards)  Incorrect interface specifications (e.g., mismatched number, type or order of parameters)  Specific types of security vulnerabilities (e.g., buffer overflows)  Gaps or inaccuracies in test basis coverage (e.g., missing tests for an acceptance criterion) Difference Between Static Testing & Dynamic Testing
  • 10. TM © 2023. All Rights Reserved Static Testing Content 3.1 Static Testing Basics 3.2 Feedback and Review Process
  • 11. TM © 2023. All Rights Reserved Static Testing Content 3.2.1. Benefits of Early and Frequent Stakeholder Feedback 3.2.2. Review Process Activities 3.2.3. Roles and Responsibilities in Reviews 3.2.4. Review Types 3.2.5. Success Factors for Reviews
  • 12. TM © 2023. All Rights Reserved Static Testing  Early and frequent feedback allows for the early communication of potential quality problems. If there is little stakeholder involvement during the SDLC, the product being developed might not meet the stakeholder’s original or current vision.  A failure to deliver what the stakeholder wants can result in costly rework, missed deadlines, blame games, and might even lead to complete project failure.  Frequent stakeholder feedback throughout the SDLC can prevent misunderstandings about requirements and ensure that changes to requirements are understood and implemented earlier.  This helps the development team to improve their understanding of what they are building. It allows them to focus on those features that deliver the most value to the stakeholders and that have the most positive impact on identified risks. Benefits of Early & Frequent Stakeholder Feedback
  • 13. TM © 2023. All Rights Reserved Static Testing The activities in the review process are:  Planning. During the planning phase, the scope of the review, which comprises the purpose, the work product to be reviewed, quality characteristics to be evaluated, areas to focus on, exit criteria, supporting information such as standards, effort and the timeframes for the review, shall be defined.  Review initiation. During review initiation, the goal is to make sure that everyone and everything involved is prepared to start the review. This includes making sure that every participant has access to the work product under review, understands their role and responsibilities and receives everything needed to perform the review.  Individual review. Every reviewer performs an individual review to assess the quality of the work product under review, and to identify anomalies, recommendations, and questions by applying one or more review techniques (e.g., checklist-based reviewing, scenario-based reviewing). The ISO/IEC 20246 standard provides more depth on different review techniques. The reviewers log all their identified anomalies, recommendations, and questions.  Communication and analysis. Since the anomalies identified during a review are not necessarily defects, all these anomalies need to be analyzed and discussed. For every anomaly, the decision should be made on its status, ownership and required actions. This is typically done in a review meeting, during which the participants also decide what the quality level of reviewed work product is and what follow-up actions are required. A follow-up review may be required to complete actions.  Fixing and reporting. For every defect, a defect report should be created so that corrective actions can be followed-up. Once the exit criteria are reached, the work product can be accepted. The review results are reported. Review Process Activities
  • 14. TM © 2023. All Rights Reserved Static Testing Reviews involve various stakeholders, who may take on several roles. The principal roles and their responsibilities are:  Manager – decides what is to be reviewed and provides resources, such as staff and time for the review  Author – creates and fixes the work product under review  Moderator (also known as the facilitator) – ensures the effective running of review meetings, including mediation, time management, and a safe review environment in which everyone can speak freely  Scribe (also known as recorder) – collates anomalies from reviewers and records review information, such as decisions and new anomalies found during the review meeting  Reviewer – performs reviews. A reviewer may be someone working on the project, a subject matter expert, or any other stakeholder  Review leader – takes overall responsibility for the review such as deciding who will be involved, and organizing when and where the review will take place Roles and Responsibilities in Review
  • 15. TM © 2023. All Rights Reserved Static Testing Content 3.2.1. Benefits of Early and Frequent Stakeholder Feedback 3.2.2. Review Process Activities 3.2.3. Roles and Responsibilities in Reviews 3.2.4. Review Types 3.2.5. Success Factors for Reviews
  • 16. TM © 2023. All Rights Reserved Static Testing  There exist many review types ranging from informal reviews to formal reviews.  The required level of formality depends on factors such as the SDLC being followed, the maturity of the development process, the criticality and complexity of the work product being reviewed, legal or regulatory requirements, and the need for an audit trail.  The same work product can be reviewed with different review types, e.g., first an informal one and later a more formal one.  Selecting the right review type is key to achieving the required review objectives. The selection is not only based on the objectives, but also on factors such as the project needs, available resources, work product type and risks, business domain, and company culture. Review Types
  • 17. TM © 2023. All Rights Reserved Static Testing Some commonly used review types are:  Informal review. Informal reviews do not follow a defined process and do not require a formal documented output. The main objective is detecting anomalies.  Walkthrough. A walkthrough, which is led by the author, can serve many objectives, such as evaluating quality and building confidence in the work product, educating reviewers, gaining consensus, generating new ideas, motivating and enabling authors to improve and detecting anomalies. Reviewers might perform an individual review before the walkthrough, but this is not required.  Technical Review. A technical review is performed by technically qualified reviewers and led by a moderator. The objectives of a technical review are to gain consensus and make decisions regarding a technical problem, but also to detect anomalies, evaluate quality and build confidence in the work product, generate new ideas, and to motivate and enable authors to improve.  Inspection. As inspections are the most formal type of review, they follow the complete generic process. The main objective is to find the maximum number of anomalies. Other objectives are to evaluate quality, build confidence in the work product, and to motivate and enable authors to improve. Metrics are collected and used to improve the SDLC, including the inspection process. In inspections, the author cannot act as the review leader or scribe. Review Types
  • 18. TM © 2023. All Rights Reserved Static Testing Content 3.2.1. Benefits of Early and Frequent Stakeholder Feedback 3.2.2. Review Process Activities 3.2.3. Roles and Responsibilities in Reviews 3.2.4. Review Types 3.2.5. Success Factors for Reviews
  • 19. TM © 2023. All Rights Reserved Static Testing There are several factors that determine the success of reviews, which include:  Defining clear objectives and measurable exit criteria. Evaluation of participants should never be an objective  Choosing the appropriate review type to achieve the given objectives, and to suit the type of work product, the review participants, the project needs and context  Conducting reviews on small chunks, so that reviewers do not lose concentration during an individual review and/or the review meeting (when held)  Providing feedback from reviews to stakeholders and authors so they can improve the product and their activities  Providing adequate time to participants to prepare for the review  Support from management for the review process  Making reviews part of the organization’s culture, to promote learning and process improvement  Providing adequate training for all participants so they know how to fulfil their role  Facilitating meetings Success Factors for Reviews
  • 20. TM © 2023. All Rights Reserved Static Testing 1. Which of the following is NOT a benefit of static testing? Answer Set A. Having less expensive defect management due to the ease of detecting defects later in the SDLC B. Fixing defects found during static testing is generally much less expensive than fixing defects found during dynamic testing C. Finding coding defects that might not have been found by only performing dynamic testing D. Detecting gaps and inconsistencies in requirements Sample Questions
  • 21. TM © 2023. All Rights Reserved Static Testing 2. The reviews being used in your organization have the following attributes: ➢ There is the role of a scribe ➢ The main purpose is to evaluate quality ➢ The meeting is led by the author of the work product ➢ There is individual preparation ➢ A review report is produced Which of the following review types is MOST likely being used? Answer Set A. Informal review B. Walkthrough C. Technical review D. Inspection Sample Questions
  • 22. TM © 2023. All Rights Reserved Static Testing 3. Which of these statements is NOT a factor that contributes to successful reviews? Answer Set A. Participants should dedicate adequate time for the review B. Splitting large work products into small parts to make the required effort less intense C. Participants should avoid behaviors that might indicate boredom, exasperation, or hostility to other participants D. Failures found should be acknowledged, appreciated, and handled objectively Sample Questions