Lecture 8 (Chapter 5) - Requirement Validation
Lecture 8 (Chapter 5) - Requirement Validation
Requirement Validation
By Yengusie D.
Contents
Introduction
Analysis & negotiation Vs Validation
Inputs and Outputs of Requirement
Validation
Validation framework – Activities
Review
Reading Techniques
Translating requirements to alternative forms
User manual
Visualizations, e.g. diagrams
Lightweight formal models
Prototypes
Introduction
Introduction
The goal of requirement validation is to
check the requirements to certify that the
requirements document is an acceptable
description of the system to be implemented
It involves checking a requirements
document
if it correctly describes the intended system
capabilities and characteristics that will satisfy the
various stakeholders' needs.
for completeness and consistency,
for conformance to standards,
for requirements conflicts,
for technical errors,
Analysis & negotiation Vs Validation
Requirement validation is different from the
requirements analysis and negotiation (How?)
Analysis and Negotiations
focus on ensuring that the requirements are
correctly understood and reflect the needs of the
stakeholders
Concerned with the “raw” requirements gathered
from the stakeholders.
o Rather than the details of correct articulation of
the requirements.
Analysis & Negotiation focus on “have we got the
right requirements?”
Validation
focuses on the documented requirements and how
they are represented.
Concerned with checking the document that has
Analysis & negotiation Vs Validation…
Some stakeholder problems are inevitably
discovered during requirements validation &
these must be corrected before the
requirement document is approved & used as
basis for development.
Problems that could be discovered during
validation are
Documentation problems
Flaws in requirement elicitation, analysis &
modeling
……………………….………
Requirement validation is a difficult process.
There is no way to demonstrate that a requirement
specification is correct with respect to some other
system representation
Inputs & Outputs of Requirement
Validation
List of problems to be
resolved
Some “typical” problems:
Requirements - conformance to
standards
document - ambiguous wording
Organizational
- error in the actual
Standard model
Input
Organizational Outpu
- undetected conflicts
Knowledge
s ts
List of agreed actions
Requirements
Validation
Inputs and Outputs of Requirement
Validation…
Requirements document
Should be a complete version of the document, not
an unfinished draft.
Formatted and organized according to organizational
standards
Organizational knowledge
Knowledge, often implicit, of the organization which
may be used to judge the realism of the
requirements
Organizational standards
Local standards e.g. for the organization of the
requirements document
Problem list
List of discovered problems in the requirements
document
How long does validation take?
Validation is a prolonged processes it involves
people reading and thinking about a lengthy
document.
Meeting may have to be arranged and
experiments carried out with prototype
So it may take several weeks or sometimes
months for complex systems.
This is particularly likely if stakeholders from
different organizations are involved
There is always a natural tendency to rush
the validation process so that system
development can be started with out further
How long does validation
take?...
Validation isn't a single discrete phase that
you perform after gathering and
documenting all the requirements.
Some validation activities, such as
incremental reviews of the growing SRS, are
threaded throughout the iterative elicitation,
analysis, and specification processes.
Other activities, such as formal SRS
inspection, provide a final quality gate prior
to base lining the SRS.
Include requirements validation activities as
discrete tasks in your project plan.
Validation framework - Activities
Review - relies on human intelligence in hope
that people might find some problems with
requirements.
if the requirements document or some part of it is in
a sufficiently formal language, some properties can
be automatically checked by software.
Translation - translate requirements to an
alternative form. This has a double advantage:
The translation process may fail (rewriting turns out
to be partially impossible),thereby pointing to some
ambiguity, completeness, consistency, etc. defects.
Also, if two or more persons accomplish rewriting
independently and the results are significantly
different, this also points to problems (mainly
ambiguity) in the document.
Requirements reviews
A group of people (excluding those who are
involved in requirement document
preparation) read and analyze the
requirements, look for problems, meet and
discuss the problems and agree on actions to
address these problems
A widely used requirements validation
technique
lots of evidence of effectiveness of the
technique
Can be expensive
Careful planning and preparation
Pre-review checking
Reviews are expensive because they involve a
number of people spending time reading and
checking the requirements document
expense can be reduced by using pre-review
checking
one person checks the document and looks for
straightforward problems such as missing
requirements, lack of conformance to standards,
typographical errors, etc.
Requirements reviews process
..
Requirements reviews process…
Plan the Review (with a moderator) - s election of
review team members, time and place
Gain agreement on problem definition and problem
severity code
Determine the condition or criteria for “acceptance”
or “rejection/re-review” of the document
Distribution of Requirements Document and any
other information
Review Preparation - Review team members read
the document for problems
Record down questions and suspected problem
areas
Hold the Review “meeting” - Discuss the discovered
problems
Agree on the severity of the problems and action
plan to resolve the problems
Moderator (review chair) - follows up to ensure
Requirements reviews process…
Actions which might be decided for each
problem are as follows
Requirements clarification - The requirement may
be badly expressed or may have accidentally
omitted information which has been collected during
requirements elicitation.
Missing information - Some information is missing
from the requirements document. It is the
responsibility of the requirements engineers who are
revising the document to discover this information
from system stakeholders.
Requirements conflict - There is a significant conflict
between requirements. The stakeholders involved
must negotiate to resolve the conflict.
Unrealistic requirement - The requirement does not
appear to be implementable with the technology
Types of Review
There are different types of reviews with varying degree of
formality
Reading and signing off:
reading the document and signing of to endorse it
Walkthroughs
Informal, often high-level overview.
Can be led by author/expert to educate others on his/her
work.
Formal inspections
Very structured and detailed review, defined roles for
participants and preparation is needed
Focused inspections
reviewers have roles and each looks only for specific types of
errors.
Active reviews
reviewer is asked to use the specification
the author poses questions for the reviewer to answer that
can be answered only by reading the document.
Reading Techniques
In both formal and informal reviews, an important
factor is the level of guidance the reviewers
receive for accomplishing their task, or reading
technique.
Reading techniques:
Ad-hoc
Not only a list of review
Checklist-based
questions but also a collection of
Defect-based
procedures to follow is provided,
Perspective-based which describe the steps to be
Scenario-based accomplished in order to answer
Pattern-based the questions.
Ad-hoc reading – no guidance is provided,
reviewers use only their own knowledge and
experience to identify defects.
Checklist-based Reading
Techniques
a list of questions is provided specifying what
properties of the document must be checked and
what specific problems should be searched for.
Essential tool for an effective review process – list
common problem area and guide reviewers
Usually the only alternative that is discussed in
requirements engineering books.
Every relevant requirements quality criterion is
rewritten in the form of a question, or refined into
two or more questions.
A checklist works just as a reminder for reviewers of
those quality criteria.
Each organization should establish their own check
list
Checklist-based Reading
Techniques…
Checklist-based Reading
Techniques…
(Wiegers, 2003)
Checklist-based Reading
Techniques…
(Wiegers, 2003)
Defect-based Reading
Techniques
Each procedure is aiming for detecting a
particular type of defects different procedures are
usually assigned to different reviewers.
Examples of defects that could be detected includes
data type consistencies, incorrect functionalities,
ambiguities or missing functionality.
Defect-based reading is a technique which is less
overlapping, more systematic and more distinct
than ad-hoc & check list based reading techniques.
Some empirical evidence exists that this may
outperform checklist-based and ad-hoc approaches.
“The defect detection rate of individuals and teams
using defect based reading is superior to that obtained
with ad-hoc or checklist methods.”
Defect-based Reading
Techniques…