2 Requirements Engineering

Software Engineering · Unit 2

Requirements Engineering

Exam-focused notes for Requirements Engineering (Software Engineering, BIT302): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.

Requirements Engineering in short

Requirements engineering is the work of finding out what a system should do and recording it clearly. Mistakes found here are cheap to fix. The same mistakes found after delivery are very costly.

Requirements Engineering: notes

Requirements engineering process

A requirement is a statement of a service the system must provide or a limit on how it works. Requirements engineering (RE) is the process of finding, analysing, documenting and checking these requirements.

The main activities are:

  • Feasibility study: decide if the system is worth building. It checks cost, technology and business value, and gives a short report.
  • Requirements elicitation and analysis: discover requirements by talking to users and studying the environment. Then classify them and settle conflicts.
  • Requirements specification: write the requirements in a clear document. User requirements are for clients. System requirements are detailed and for developers.
  • Requirements validation: check that the requirements are realistic, consistent and complete. Methods include reviews, prototyping and test-case generation.
  • Requirements management: track changes during development, because requirements always change.

These activities are not strictly one after another. They repeat in a loop, and new findings often send the team back to an earlier activity.

What this unit covers

  • Requirements engineering process
  • Functional and non-functional requirements
  • Requirements elicitation techniques
  • Context models
  • Advantages and disadvantages of requirement models

Functional and non-functional requirements

2082 · 5 marks

Write short notes on: a) Non-functional requirement Write short notes on: b) Principles of agile [2.5+2.5]

Show solved answer

Short Notes

a) Non-Functional Requirements

Non-functional requirements (NFRs) define the quality attributes and constraints of a system rather than specific behaviors or functions. They describe how the system performs its functions, not what it does.

Key Characteristics:

  • Also called quality requirements or system quality attributes
  • They apply to the system as a whole, not to individual features
  • Failure to meet NFRs can make the entire system unacceptable

Common Types of Non-Functional Requirements:

TypeDescriptionExample
PerformanceSpeed and response timeSystem must respond within 2 seconds
ReliabilityAvailability and fault tolerance99.9% uptime
SecurityProtection from unauthorized accessData must be encrypted
ScalabilityAbility to handle growthSupport 10,000 concurrent users
MaintainabilityEase of modificationCode must follow coding standards
PortabilityAbility to run on different platformsMust run on Windows and Linux
UsabilityEase of useUser must complete task within 3 clicks

Importance:

  • They constrain the design and implementation choices
  • They are often more critical than functional requirements
  • They are typically measurable and testable

b) Principles of Agile

Agile is a software development philosophy based on iterative development, collaboration, and flexibility. The Agile Manifesto (2001) defines 12 guiding principles:

Core Values (Agile Manifesto):

  • Individuals and interactions over processes and tools
  • Working software over comprehensive documentation
  • Customer collaboration over contract negotiation
  • Responding to change over following a plan

The 12 Principles of Agile:

  1. Customer Satisfaction - Highest priority is to satisfy the customer through early and continuous delivery of valuable software.

  2. Welcome Change - Welcome changing requirements, even late in development.

  3. Frequent Delivery - Deliver working software frequently (weeks rather than months).

  4. Collaboration - Business people and developers must work together daily throughout the project.

  5. Motivated Individuals - Build projects around motivated individuals; give them the environment and trust they need.

  6. Face-to-Face Communication - The most efficient method of conveying information is face-to-face conversation.

  7. Working Software - Working software is the primary measure of progress.

  8. Sustainable Development - Agile processes promote sustainable development at a constant pace.

  9. Technical Excellence - Continuous attention to technical excellence and good design enhances agility.

  10. Simplicity - The art of maximizing the amount of work NOT done is essential.

  11. Self-Organizing Teams - The best architectures, requirements, and designs emerge from self-organizing teams.

  12. Regular Reflection - At regular intervals, the team reflects on how to become more effective and adjusts accordingly.

Key Benefit:

Agile allows teams to adapt quickly to changing requirements, deliver value incrementally, and maintain high quality through continuous feedback and improvement.

Open this answer on its own page →

0 · 5 marks

Differentiate between functional and non functional requirement with two examples in each. [5]

Functional requirements describe what a system should do -- the specific behaviors, functions, and features the system must perform. They define the core functionality that the system must provide to its users. Examples: 1. Login Feature: The system shall allow registered users to log in using a ...

Open this answer on its own page →

Requirements engineering process

2081 · 5 marks

Briefly explain requirement engineering process. [5]

Definition: Requirement Engineering (RE) is a systematic process of defining, documenting, and maintaining the requirements for a software system. It acts as a bridge between the customer's needs and the software development team. --- - Determines whether the proposed system is technically, finan...

Open this answer on its own page →

0 · 10 marks

Explain requirement engineering process? What are the advantages and disadvantages model?[10]

Show solved answer

Requirements Engineering Process

Definition

Requirements Engineering (RE) is a systematic process of defining, documenting, and maintaining the requirements for a software system. It acts as a bridge between stakeholder needs and the final software product, ensuring that the development team builds the right system in the right way.


The Requirements Engineering Process

The RE process consists of the following key sequential activities:


a) Feasibility Study

  • The first step that determines whether the proposed system is technically, economically, and operationally viable
  • Answers the fundamental questions: "Can we build it? Should we build it?"
  • Produces a feasibility report that guides the decision to proceed or abandon the project
  • Considers:
    • Technical feasibility - available technology and skills
    • Economic feasibility - cost vs. benefit analysis
    • Operational feasibility - whether the system fits the organization

b) Requirements Elicitation and Analysis

  • The process of gathering requirements from stakeholders through various techniques:
    • Interviews
    • Observations
    • Questionnaires
    • Brainstorming sessions
    • Prototyping
  • After gathering, requirements are analyzed for:
    • Conflicts between stakeholder needs
    • Overlaps and redundancies
    • Ambiguities and inconsistencies
  • Produces a preliminary understanding of what the system must do

c) Requirements Specification

  • Involves documenting the gathered and analyzed requirements in a clear, structured format
  • Produces the Software Requirements Specification (SRS) document
  • Requirements can be expressed using:
    • Natural language
    • Structured language
    • Formal mathematical notation
  • The SRS serves as a contract between the client and the development team

d) Requirements Validation

  • Checking that the documented requirements are:
    • Complete - all necessary requirements are included
    • Consistent - no contradictions exist
    • Realistic - requirements are achievable within constraints
  • Techniques used:
    • Reviews and inspections
    • Prototyping
    • Test-case generation
    • Walkthroughs
  • Goal: Ensure the SRS accurately reflects stakeholder needs before development begins

e) Requirements Management

  • Handles changes to requirements throughout the entire project lifecycle
  • Involves:
    • Traceability - tracking each requirement through design, coding, and testing
    • Version control - maintaining history of requirement changes
    • Impact analysis - assessing the effect of any change on the overall system

Diagram of the RE Process

Feasibility Study
       |
       v
Requirements Elicitation and Analysis
       |
       v
Requirements Specification (SRS)
       |
       v
Requirements Validation
       |
       v
Requirements Management (ongoing)

Advantages of the Requirements Engineering Process

#Advantage
1Provides a systematic and structured approach to gathering requirements
2Reduces ambiguity and misunderstanding between developers and stakeholders
3Early detection of errors and conflicts saves significant cost and time later
4Produces a clear SRS document that acts as a formal contract between parties
5Improves communication among all project stakeholders
6Enables better project planning and estimation
7Supports traceability - each requirement can be tracked through all development phases
8Reduces the risk of project failure due to unclear or missing requirements

Disadvantages of the Requirements Engineering Process

#Disadvantage
1Can be time-consuming and expensive, especially for large-scale projects
2Requirements may change frequently, making documentation outdated quickly
3Over-documentation can lead to rigidity and slow down the development process
4Stakeholders may find it difficult to express their needs clearly at early stages
5Conflicts between stakeholders can be hard to identify and resolve
6Requires skilled analysts who understand both business and technical domains
7May give a false sense of completeness - some requirements are only discovered during actual development
8Formal processes may not suit agile or rapidly changing project environments

Conclusion

The Requirements Engineering process is an essential foundation for successful software development. Despite its disadvantages such as high cost and potential rigidity, its advantages of clarity, early error detection, and structured communication make it a critical phase in the Software Development Life Cycle (SDLC). A well-executed RE process significantly reduces the risk of building the wrong system and helps deliver software that truly meets stakeholder expectations.

Open this answer on its own page →

Requirements elicitation techniques

2080 · 5 marks

Explain different requirements elicitation techniques. [5]

Note: No specific reference notes were found for this topic. The following answer is based on standard Software Engineering curriculum as taught in BSc CSIT programs. --- Requirements elicitation is the process of gathering, discovering, and understanding the needs and expectations of stakeholder...

Open this answer on its own page →

2079 · 5 marks

Explain different techniques that can be used for requirement elicitation. [5]

Requirement elicitation is the process of gathering, discovering, and understanding the requirements of a system from stakeholders, users, and other sources. --- - One of the most widely used techniques. - The analyst directly interacts with stakeholders (clients, users, managers) through structu...

Open this answer on its own page →