blob: 8930001fa7e6ce73e7252751fe7fb090fe5443a7 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<org.eclipse.epf.uma:ContentDescription xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:org.eclipse.epf.uma="http://www.eclipse.org/epf/uma/1.0.3/uma.ecore" rmc:version="7.1.0" epf:version="1.0.0" xmi:id="-Q72-dNdHnZ93aRXAB_d34A" name="requirement_pitfalls_1,_1AOsMO0JEdqHTdbLTmC5IQ" guid="-Q72-dNdHnZ93aRXAB_d34A" authors="Chris Sibbald" changeDate="2006-09-27T10:14:43.487-0700" version="0.2">
<mainDescription>&lt;p&gt;
Explanations and examples follow for each of the following common pitfalls to avoid, in defining and writing
requirements (for more information, see &lt;a class=&quot;&quot; href=&quot;./../../../openup_basic/guidances/supportingmaterials/references,_9ToeIB83Edqsvps02rpOOg.html&quot; guid=&quot;_9ToeIB83Edqsvps02rpOOg&quot;&gt;[TEL06]&lt;/a&gt;):
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Avoid ambiguity.
&lt;/li&gt;
&lt;li&gt;
Don't make multiple requirements.
&lt;/li&gt;
&lt;li&gt;
Never use let-out or escape words.
&lt;/li&gt;
&lt;li&gt;
Don't ramble.
&lt;/li&gt;
&lt;li&gt;
Resist designing the system.
&lt;/li&gt;
&lt;li&gt;
Avoid mixing different kinds of requirements.
&lt;/li&gt;
&lt;li&gt;
Do not speculate.
&lt;/li&gt;
&lt;li&gt;
Do not use vague, undefined terms.
&lt;/li&gt;
&lt;li&gt;
Do not express possibilities.
&lt;/li&gt;
&lt;li&gt;
Avoid wishful thinking.
&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;
Avoid ambiguity
&lt;/h4&gt;
&lt;p&gt;
Avoidance of ambiguity is one of the subtlest and most difficult issues in writing requirements. Try to write as
clearly and explicitly as possible. Be specific. Remember, though, that if you carry this too far, the text becomes
dull and unreadable, which makes it difficult for other people to review. Although this guideline emphasizes
structured, written expression of requirements, informal text, diagrams, conversations, and phone calls are excellent
ways of removing ambiguity.
&lt;/p&gt;
&lt;p&gt;
Some constructions (such as the use of or and unless in requirements) allow different groups of readers to understand
different things from the same wording. Developers could use this technique deliberately, so as to postpone, until too
late, any possibility of the customer's asking for what was truly wanted. This is dangerous and could easily backfire.
&lt;/p&gt;
&lt;p&gt;
The only approach that works is for developers to make requirements as clear as possible, and for all stakeholders to
co-operate. In the long run, project success is in everybody's interest.
&lt;/p&gt;
&lt;p&gt;
Dangerous ambiguities can be caused by the word &lt;strong&gt;or&lt;/strong&gt; and also by many more-subtle errors.
&lt;/p&gt;
&lt;h5&gt;
Example
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;The same subsystem shall also be able to generate a visible or audible caution/warning signal for the attention of
the co-pilot or navigator.&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Which subsystem? Is the signal to be visible, audible, or both? Is it both caution and warning, just caution, or just
warning? Is it for both the co-pilot and the navigator, or just one of them? If just one of them, which one and under
what conditions?
&lt;/p&gt;
&lt;h4&gt;
Don't make multiple requirements
&lt;/h4&gt;
&lt;p&gt;
Requirements which contain conjunctions (words that join independent clauses together) are dangerous. Problems arise
when readers try to figure out which part applies, especially if the different clauses seem to conflict, or if the
individual parts apply separately. Multiple requirements also make verification more complex.
&lt;/p&gt;
&lt;p&gt;
Dangerous conjunctions include: and, or, but
&lt;/p&gt;
&lt;h5&gt;
Example
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;The battery low warning lamp shall light up when the voltage drops below 3.6 Volts, and the current workspace or
input data shall be saved.&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Should the battery low warning lamp light up when the voltage drops and the workspace is saved? Should the battery low
warning lamp light up and the workspace be saved when the voltage drops?
&lt;/p&gt;
&lt;h4&gt;
Never use let-out or escape words
&lt;/h4&gt;
&lt;p&gt;
Requirements that include options or exceptions are dangerous. They seem to ask for something definite, but at the last
moment they back down and allow for other options. Problems arise when the requirements are to be tested, and someone
has to decide what (if anything) could prove the requirement was met.
&lt;/p&gt;
&lt;p&gt;
Dangerous words that imply exceptions include: if, when, but, except, unless, although.
&lt;/p&gt;
&lt;h5&gt;
Examples
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;The forward passenger doors shall open automatically when the aircraft has halted, except when the rear ramp is
deployed.&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;The fire alarm shall always be sounded when smoke is detected, unless the alarm is being tested or the engineer has
suppressed the alarm.&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
The latter sentence is a truly dangerous requirement!
&lt;/p&gt;
&lt;h4&gt;
Don't ramble
&lt;/h4&gt;
&lt;p&gt;
Long rambling sentences, especially when combined with arcane language, references to unreachable documents, and other
defects of writing, quickly lead to confusion and error.
&lt;/p&gt;
&lt;h5&gt;
Example
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;Provided that the designated input signals from the specified devices are received in the correct order where the
system is able to differentiate the designators, the output signal shall comply with the required framework of section
3.1.5 to indicate the desired input state.&lt;/em&gt;
&lt;/p&gt;
&lt;h4&gt;
Resist designing the system
&lt;/h4&gt;
&lt;p&gt;
Requirements should specify the design envelope without unnecessary constraints on a specific design. If we supply too
much detail we start to design the system. Going too far is tempting for designers, especially when they come to their
favorite bits.
&lt;/p&gt;
&lt;p&gt;
Danger signs include names of components, materials, software objects/procedures, and database fields.
&lt;/p&gt;
&lt;h5&gt;
Example
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;The antenna shall be capable of receiving FM signals, using a copper core with nylon covering and a waterproof
hardened rubber shield.&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Specifying design rather than actual need increases the cost of systems by placing needless constraints on development
and manufacture. Often knowing why is much better than knowing what.
&lt;/p&gt;
&lt;h4&gt;
Avoid mixing different kinds of requirements
&lt;/h4&gt;
&lt;p&gt;
The user requirements form a complete model of what users want. They need to be organized coherently to show gaps and
overlaps. The same applies to system requirements, which form a complete functional model of the proposed system. A
quick road to confusion is to mix up requirements for users, systems, and how the system should be designed, tested, or
installed.
&lt;/p&gt;
&lt;p&gt;
Danger signs are any references to system, design, testing, or installation.
&lt;/p&gt;
&lt;h5&gt;
Example
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;The user shall be able to view the currently selected channel number which shall be displayed in 14pt Swiss type on
an LCD panel tested to Federal Regulation Standard 567-89 and mounted with shockproof rubber washers.&lt;/em&gt;
&lt;/p&gt;
&lt;h4&gt;
Do not speculate
&lt;/h4&gt;
&lt;p&gt;
Requirements are part of a contract between customer and developer. There is no room for wish lists, meaning general
terms about things that somebody probably wants.
&lt;/p&gt;
&lt;p&gt;
Danger signs include vagueness about which type of user is speaking, and generalization such as: usually, generally,
often, normally, typically
&lt;/p&gt;
&lt;h5&gt;
Example
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;Users normally require early indication of intrusion into the system.&lt;/em&gt;
&lt;/p&gt;
&lt;h4&gt;
Do not use vague, undefined terms
&lt;/h4&gt;
&lt;p&gt;
Many words used informally to indicate system quality are too vague for use in requirements. Vague terms include, among
others: user-friendly, versatile, flexible, approximately, as possible
&lt;/p&gt;
&lt;p&gt;
Requirements using these terms are unverifiable because there is no definite test to show whether the system has the
indicated property.
&lt;/p&gt;
&lt;h5&gt;
Examples
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;The print dialog shall be versatile and user-friendly.&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;The OK status indicator lamp shall be illuminated as soon as possible after the system self-check is
completed.&lt;/em&gt;
&lt;/p&gt;
&lt;h4&gt;
Do not express possibilities
&lt;/h4&gt;
&lt;p&gt;
Suggestions that are not explicitly stated as requirements are invariably ignored by developers.
&lt;/p&gt;
&lt;p&gt;
&quot;Possible options&quot; are indicated with terms such as: may, might, should, ought, could, perhaps, probably
&lt;/p&gt;
&lt;h5&gt;
Example
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;The reception subsystem probably ought to be powerful enough to receive a signal inside a steel-framed
building.&lt;/em&gt;
&lt;/p&gt;
&lt;h4&gt;
Avoid wishful thinking
&lt;/h4&gt;
&lt;p&gt;
Engineering is a real-world activity. No system or component is perfect. Wishful thinking means asking for the
impossible.
&lt;/p&gt;
&lt;p&gt;
Wishful-thinking terms include: reliable, safe, handle all unexpected failures, please all users, run on all platforms,
never fail, upgradeable to all future situations
&lt;/p&gt;
&lt;h5&gt;
Examples
&lt;/h5&gt;
&lt;p&gt;
&lt;em&gt;The gearbox shall be 100% safe in normal operation.&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;The network shall handle all unexpected errors without crashing.&lt;/em&gt;
&lt;/p&gt;</mainDescription>
</org.eclipse.epf.uma:ContentDescription>