I had a 3-hour-meeting today just discussing how the requirements should look like. In this meeting, some real requirements we wrote were presented and I was not able to get the precise intention honestly. Requirements have significant meaning in avionics standards (DO178B/C, DO297, DO254, ARP4754A, etc), which are extremely important life cycle data, used throughout all phases of system engineering(development, designing, coding, validating and verification). Description of requirements should be:
Usable during the Operation and Maintenance Phase
A Requirements Document is unambiguous if and only if every requirement stated therein has only one interpretation.
As a minimum, this requires that each characteristic of the final product be described using a single unique term.
In cases where a term used in a particular context could have multiple meanings, the term must be included in a glossary where its meaning is made more specific.
A Requirements Document is complete if it possesses the following qualities:
Inclusion of all significant requirements, whether relating to functionality, performance, design constraints, attributes or external inter-faces.
Definition of the responses of the system to all realizable classes of inputs in all realizable classes of situations. Note that it is important to specify the responses to valid and invalid input values.
Conformity to any standard that applies to it. If a particular section of the standard is not applicable, the Requirements Document should include the section number and an explanation of why it is not applicable.
Full labeling and referencing of all figures, tables, and diagrams in the Requirements Document and definition of all terms and units of measure.
A Requirements Document is verifiable if and only if every requirement stated therein is verifiable. A requirement is verifiable if and only if there exists some finite cost-effective process with which a person or machine can check that the system product meets the requirement.
Examples of non-verifiable requirements include statements such as:
The product shall work well, or The product shall have a good human interface. These requirements cannot be verified because it is impossible to define the terms good or well.
The program shall never enter an infinite loop. This requirement is non-verifiable because the testing of this quality is theoretically impossible.
The output of the program shall usually be given within 10 s. This requirement is non-verifiable because the term usually cannot be measured.
An example of a verifiable statement is:
- The output of the program shall be given within 20 s of event X, 60% of the time; and shall be given within 30 s of event X, 100% of the time. This statement can be verified because it uses concrete terms and measurable quantities.
If a method cannot be devised to determine whether the system meets a particular requirement, then that requirement should be removed or revised.
If a requirement is not expressible in verifiable terms at the time the Requirements Document is prepared, then a point in the development cycle (review, test plan issue, etc) should be identified at which the requirement must be put into a verifiable form
A Requirements Document is consistent if and only if no set of individual requirements described in it conflict.
There are three types of likely conflicts in a Requirements Document:
Two or more requirements might describe the same real world object but use different terms for that object. For example, a program’s request for a user input might be called a prompt in one requirement and a cue in another.
The specified characteristics of real world objects might conflict. For example:
- The format of an output report might be described in one requirement as tabular but in another as textual.
- One requirement might state that all lights shall be green while another states that all lights shall be blue.
There might be a logical or temporal conflict between two specified actions. For example:
- One requirement might specify that the system will add two inputs and another specify that the system will multiply them.
- One requirement might state that A must always follow B, while another requires that A and B occur simultaneously.
A Requirements Document is modifiable if its structure and style are such that any necessary changes to the requirements can be made easily, completely, and consistently. Modifiability generally requires A Requirements Document to:
Have a coherent and easy-to-use organization, with a table of contents, an index, and explicit cross-referencing.
Not be redundant; that is, the same requirement should not appear in more than one place in the Requirements Document.
Redundancy itself is not an error, but it can easily lead to errors.
Redundancy can occasionally help to make a Requirements Document more readable, but a problem can arise when the redundant document is updated. Assume, for instance, that a certain requirement is stated in two places. At some later time, it is determined that the requirement should be altered, but the change is made in only one of the two locations-. The Requirements Document then becomes inconsistent.
Whenever redundancy is necessary, the Requirements Document should include explicit cross-references to make it modifiable.
A Requirements Document is traceable if the origin of each of its requirements is clear and if it facilitates the referencing of each requirement in future development or enhancement documentation.
Two types of traceability are recommended:
Backward traceability (that is, to previous stages of development) depends upon each requirement explicitly referencing its source in previous documents.
Forward traceability (that is, to all documents spawned by the Requirements Document) depends upon each requirement in the Requirements Document having a unique name or reference number.
When a requirement in the Requirements Document represents an apportionment or a derivative of another re-quirement, both forward and backward trace-ability should be provided.
Usable During the Operation and Maintenance Phase
The Requirements Document must address the needs of the operation and maintenance phase, including the eventual replacement of the system
In order to develop and use tool for checking and solving requirment issues, it is necessary to setup a general template for writing requirement. Requirement Standard(or RS) shall contain this template and other rules. Develop team are required to keep it in mind and create practical Process and checklist to fulfill it. A good template called Easy Approach to Requirements Syntax (EARS) comes into my mind. It simplies all the requirements syntax into 5 basic patterns and their combinations.
|Ubiquitous||The <system name> shall <system response>|
|Event-Driven||WHEN <trigger> <optional precondition> the <system name> shall <system response>|
|Unwanted Behavior||IF <unwanted condition or event>, THEN the <system name> shall <system response>|
|State-Driven||WHILE <system state>, the <system name> shall <system response>|
|Optional Feature||WHERE <feature is included>, the <system name> shall <system response>|
|Complex||(combinations of the above patterns)|