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.
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 answerHide 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:
| Type | Description | Example |
|---|---|---|
| Performance | Speed and response time | System must respond within 2 seconds |
| Reliability | Availability and fault tolerance | 99.9% uptime |
| Security | Protection from unauthorized access | Data must be encrypted |
| Scalability | Ability to handle growth | Support 10,000 concurrent users |
| Maintainability | Ease of modification | Code must follow coding standards |
| Portability | Ability to run on different platforms | Must run on Windows and Linux |
| Usability | Ease of use | User 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:
-
Customer Satisfaction - Highest priority is to satisfy the customer through early and continuous delivery of valuable software.
-
Welcome Change - Welcome changing requirements, even late in development.
-
Frequent Delivery - Deliver working software frequently (weeks rather than months).
-
Collaboration - Business people and developers must work together daily throughout the project.
-
Motivated Individuals - Build projects around motivated individuals; give them the environment and trust they need.
-
Face-to-Face Communication - The most efficient method of conveying information is face-to-face conversation.
-
Working Software - Working software is the primary measure of progress.
-
Sustainable Development - Agile processes promote sustainable development at a constant pace.
-
Technical Excellence - Continuous attention to technical excellence and good design enhances agility.
-
Simplicity - The art of maximizing the amount of work NOT done is essential.
-
Self-Organizing Teams - The best architectures, requirements, and designs emerge from self-organizing teams.
-
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.
0 · 5 marks
Differentiate between functional and non functional requirement with two examples in each. [5]
Requirements engineering process
2081 · 5 marks
Briefly explain requirement engineering process. [5]
0 · 10 marks
Explain requirement engineering process? What are the advantages and disadvantages model?[10]
Show solved answerHide 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 |
|---|---|
| 1 | Provides a systematic and structured approach to gathering requirements |
| 2 | Reduces ambiguity and misunderstanding between developers and stakeholders |
| 3 | Early detection of errors and conflicts saves significant cost and time later |
| 4 | Produces a clear SRS document that acts as a formal contract between parties |
| 5 | Improves communication among all project stakeholders |
| 6 | Enables better project planning and estimation |
| 7 | Supports traceability - each requirement can be tracked through all development phases |
| 8 | Reduces the risk of project failure due to unclear or missing requirements |
Disadvantages of the Requirements Engineering Process
| # | Disadvantage |
|---|---|
| 1 | Can be time-consuming and expensive, especially for large-scale projects |
| 2 | Requirements may change frequently, making documentation outdated quickly |
| 3 | Over-documentation can lead to rigidity and slow down the development process |
| 4 | Stakeholders may find it difficult to express their needs clearly at early stages |
| 5 | Conflicts between stakeholders can be hard to identify and resolve |
| 6 | Requires skilled analysts who understand both business and technical domains |
| 7 | May give a false sense of completeness - some requirements are only discovered during actual development |
| 8 | Formal 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.
Requirements elicitation techniques
2080 · 5 marks
Explain different requirements elicitation techniques. [5]
2079 · 5 marks
Explain different techniques that can be used for requirement elicitation. [5]
Make Unit 2 stick
Practice BIT302 with flashcards & quizzes