Requirements are not simply written down. They have to be found, studied, checked and kept up to date through the life of the project. This work is called requirements engineering.
Overview of the Process
The main activities are feasibility study, elicitation and analysis, specification, validation and management. They are repeated in a loop in practice, because understanding grows as work proceeds. The feasibility study checks whether the system is useful to the business, whether it can be built with the available technology and budget, and whether it can be done in time.
Definition: Requirements engineering. The process of finding out, analysing, documenting, checking and managing the requirements of a system.
Elicitation and Analysis
Elicitation is the discovery of requirements from stakeholders. The techniques include interviews, which may be open or closed, questionnaires, observation of how users work, workshops and brainstorming, prototyping, and scenarios and use cases that tell how the system will be used. The difficulties are that stakeholders may not know what they want, express it in their own terms, hold conflicting views, and change their minds. Analysis classifies and organises the requirements, resolves conflicts, and ranks them by priority.
Requirements Validation
Validation checks that the requirements describe the system that the customer really wants. The checks are for validity, consistency, completeness, realism and verifiability. The techniques are requirements reviews, in which a team reads the document systematically, prototyping to let users try the system, and test-case generation, since a requirement that cannot be tested is probably unclear. An error found at this stage costs far less to fix than one found after delivery.
Requirements Management
Requirements management controls changes to requirements, because they change throughout the project as the business and the understanding change. Each requirement is given an identity and linked to the design and test cases so that the effect of a change can be traced. A formal process for change is used, in which the change is analysed for cost, accepted or rejected, and then recorded.
Table 2.3: Activities of requirements engineering
| Activity | Question answered | Output |
|---|---|---|
| Feasibility study | Is it worth building? | Feasibility report |
| Elicitation and analysis | What do stakeholders need? | System models |
| Specification | How is it written down? | SRS |
| Validation | Is it what the customer wants? | Checked SRS |
| Management | How are changes handled? | Change records |
Example 2.3: Choosing an elicitation technique
Problem: The staff of a hospital cannot clearly explain how they register patients, because the work has many unwritten steps. Which technique should be used?
Solution:
- Interviews alone may miss the unwritten steps.
- Observing staff at work shows the real process.
Result: Observation, together with follow-up interviews, is most suitable.
Common mistakes
- Assuming that stakeholders can state all requirements at the start.
- Skipping validation, so errors are found only after delivery.
- Accepting changes without checking their cost and effect on other requirements.
Key takeaways
- The main activities are feasibility study, elicitation, specification, validation and management.
- Interviews, observation, workshops and prototypes are elicitation techniques.
- Validation checks validity, consistency, completeness, realism and verifiability.
- Requirements change, so they must be managed.
Practice questions
- What is elicitation?
- Why is validation done?
- Why must requirements be managed?
Answers to the practice questions
- The discovery of requirements from stakeholders.
- To check that the requirements describe the system the customer really wants.
- Because they keep changing, and each change must be controlled and traced.
Sources
- Official BCA syllabus Software Engineering, course code 26BCA403DS03, Unit II
