Chapter Three
Chapter Three
• Activities that check the correctness of a development phase are called verification
activities
• Validation activities focus on the final product, which is
extensively tested from the customer point of view.
validation is performed toward the end of system Verification activities review interim work
development to determine if the entire system products, such as requirements specification,
meets the customer’s needs and expectations. design, code, and user manual, during a project
life cycle to ensure their quality. The quality
attributes sought by verification activities
are consistency, completeness, and correctness at
each major stage of system development.
Validation is performed on the entire system by Verification activities are performed on interim
actually running the system in its real products by applying mostly static analysis
environment and using a variety of tests. techniques, such as inspection, walkthrough, and
reviews, and using standards and checklists.
Verification can also include dynamic analysis,
such as actual program execution.
Verification activities
• Walkthrough
• Walkthrough is a method of conducting informal group/individual review. In a
walkthrough, author describes and explain work product in a informal meeting to his
peers or supervisor to get feedback.
• Here, validity of the proposed solution for work product is checked.
• Inspection
• An inspection is defined as formal, rigorous, in depth group review designed to
identify problems as close to their point of origin as possible.
• Inspections improve reliability, availability, and maintainability of software product.
• Anything readable that is produced during the software development can be
inspected.
• Inspection activity follows a specified process and participants play
well-defined roles.
• (If the proportion of minor defects to major defects is too large a moderator may request
that the reviewer repeat the review, focusing on major defects, prior to commencing the
logging meeting)
• The size of the artifact (pages, LOC, ...)
• The rate of review - the size of the reviewed artifact divided by time
(normally expressed in hours)
• E.g., 15 pages /hour
• The defect detection rate - the number of major defects found per review
hour.
• Total Number of Defects Found
• Total number of defects found is the sum of the total
number of defect found by each reviewer, minus the
number of common defects found.
• For instance, with 2 reviewers, the metric is computed by
• Total Defects Found = A + B – C
• Where A and B are the number found by reviewer A and B
respectively and C is the number found by both A and B.
• Defect density
• It is the ratio of the number of defects found to the size of
the artifact. It is given by
• Defect Density = Total Defects Found / Size
• Where the size of the artifact is measured in number of pages, loc, or
other size measure.
• Estimated Total Number of Defects
• The estimated total number of defects is the sum of the total
number of defects found and the estimated total number of
defects remaining.
• Using the population sampling approach to estimate the number
of defects remaining leads to the following steps:
• Let the number of defects found by one reviewer be the tagged population (A)
• Count the number of defects found by the second reviewer that were also found by the
first (C the common defects).
• Calculate the proportion of common defects in the second reviewers defects (T=C/B).
• User expectations
• Users may have low expectations of certain kinds of software.
• Marketing environment
• Getting a product to market early may be more important than finding defects in the
program.
Testing and debugging
• Requirements traceability
• Users are most interested in the system meeting its requirements and testing should
be planned so that all requirements are individually tested.
• Tested items
• The products of the software process that are to be tested should be specified.
• Testing schedule
• An overall testing schedule and resource allocation for this schedule is, obviously,
linked to the more general project development schedule.
• Constraints
• Constraints affecting the testing process such as staff shortages should be
anticipated in this section