Chapter 7 Static White Box Testing
Chapter 7 Static White Box Testing
BTT 310:
SW TESTING &
INSPECTION
Chapter 07: Examining the code – Static White Box
Testing
Contents
Highlights from this chapter include
The benefits of static white-box testing
report is communicated.
Quality - A programmer's code that is being gone over in
follow rules,
write a report
walkthrough
Medium size group - programmer who wrote the code
formally presents it to a group of five or so other
programmers and testers.
Participants – The Reviewers, The Presenters
inspection
most formal type of reviews
the person who presents the code, the presenter or reader, isn't
the original programmer.
participants are called inspectors
tasked with reviewing the code from a different perspective,
such as a user, a tester, or a product support person.
inspection
Inspection Roles
Author: The person who created the work product being
inspected.
Moderator: This is the leader of the inspection. The
There are also problems where the code may operate properly
but may not be written to meet a specific standard or
guideline.
Guidelines are the suggested best practices, the
recommendations, the preferred way of doing things.
Standards have no exceptions, short of a structured waiver
process.
Coding standards & guidelines
Example 1: A sample
coding standard explains
how several language
control structures should
be used.
Coding standards & guidelines
condition handled?
Other checks
Will the software work with languages other than English?
Does it handle extended ASCII characters? Does it need to use
Unicode instead of ASCII?
If the software is intended to be portable to other compilers
and CPUs, have allowances been made for this? Portability, if
required, can be a huge issue if not planned and tested for.