Software Requirements and Requirement Engineering Comprehensive Study Guide

Fundamentals of Software Requirements

  • Definition of Requirement:

    • A condition, capability, or feature that a software system must provide to satisfy the needs of its users or customers.

    • Describes what the system should do (functional requirements) and the constraints under which it must operate (non-functional requirements).

  • Understanding Requirements:

    • The process of carefully identifying, analyzing, and defining needs before software development begins.

    • Ensures that the developed software solves the correct problem and fully meets customer expectations.

  • Importance in Software Engineering:

    • Critical activity because errors made during requirement definition are extremely expensive and difficult to correct later in the development lifecycle.

    • Enables development of software that directly satisfies customer needs.

    • Reduces misunderstandings and communication gaps between customers and developers.

    • Facilitates early detection of errors before implementation.

    • Significantly reduces development costs and overall project execution time.

    • Enhances overall software quality and operational reliability.

    • Increases end-user satisfaction.

Characteristics of a Good Requirement

  • 1. Correct:

    • Accurately represents the customer's actual needs.

    • Describes exactly what the customer expects from the software without distortion.

    • Example: "The system shall allow students to register for courses online." (Accurately reflects expected functionality).

  • 2. Unambiguous:

    • Possesses only one possible interpretation across all readers (stakeholders, developers, and testers).

    • Vague and subjective terms must be strictly avoided (e.g., fast, user-friendly, easy, efficient).

    • Poor Example: "The system should be fast."

    • Better Example: "The system shall display search results within 2 seconds2\, \text{seconds}." (Clear, exact, and measurable).

  • 3. Complete:

    • Contains all necessary information required for complete software implementation.

    • Must explicitly specify:

    • Inputs required by the function.

    • Outputs produced by the function.

    • Operational conditions.

    • System constraints.

    • Example: "The system shall allow registered users to reset their password using their registered email address." (Specifies explicitly who can perform the reset and the mechanism used).

  • 4. Consistent:

    • Free from conflicts with other requirements within the specification document.

    • Inconsistent requirements create logic contradictions and confuse developers during implementation.

    • Example of Inconsistency:

    • Requirement 1: "Only administrators can delete records."

    • Requirement 2: "Any user can delete records."

    • Analysis: Both statements contradict each other and cannot be valid simultaneously.

  • 5. Verifiable (Testable):

    • Can be objectively tested and verified to confirm correct implementation in the final software product.

    • Requirements structured with measurable parameters are significantly easier to verify.

    • Example: "The system shall support up to 500 concurrent users500\, \text{concurrent users}." (Directly verifiable through performance and stress testing).

  • 6. Feasible:

    • Can be successfully implemented within existing technical capabilities, budget constraints, delivery timelines, and available resources.

    • Impractical or cost-prohibitive capabilities must be avoided during requirements gathering.

    • Example: Attempting to implement advanced facial recognition capabilities in a small-scale student project may be non-feasible due to resource constraints.

  • 7. Necessary:

    • Directly aligns with and supports the primary objectives of the software system.

    • Unnecessary features increase software complexity, maintenance overhead, and development cost without yielding meaningful user value.

    • Example: An online banking application necessitates robust, secure authentication; adding an embedded gaming feature is unnecessary.

  • 8. Prioritized:

    • Formally categorized according to relative importance, acknowledging that all requested features cannot always be built simultaneously.

    • Enables developers to structure development schedules around core priorities.

    • Priority Classifications:

    • High Priority (Must Have): Essential, non-negotiable core functionality.

    • Medium Priority (Should Have): Important capabilities that enhance system value but are not immediately critical.

    • Low Priority (Nice to Have): Optional features for future enhancements.

  • 9. Traceable:

    • Can be systematically tracked across every phase of the Software Development Life Cycle (SDLC).

    • Execution mechanism: Each requirement is assigned a unique identification number (ID) allowing developers, architects, and quality assurance engineers to trace functionality from design diagrams to code modules and unit/system test cases.

  • 10. Modifiable:

    • Written in a structured, modular, and clear format allowing individual requirements to be updated or added easily without invalidating or corrupting the surrounding document.

    • Accommodates shifting customer demands throughout the project life cycle.

Types of Software Requirements

  • Classification Overview:

    • Software requirements are divided into two main categories: Functional Requirements and Non-Functional Requirements.

  • A. Functional Requirements:

    • Define what the software system should do.

    • Specify explicit services, functions, and operational capabilities the system must execute to satisfy business goals and user requests.

    • Directly define the system's operational behavior.

    • Example — Library Management System:

    • Search books

    • Issue books

    • Return books

    • Calculate fine

    • Generate reports

  • B. Non-Functional Requirements:

    • Define how well the system should perform its tasks.

    • Focus on overall quality attributes, performance benchmarks, and operational constraints rather than explicit system functions.

    • Common Types of Non-Functional Requirements:

    • 1. Performance:

      • Defines operational speed and processing throughput.

      • Examples: Search results must appear within 2 seconds2\, \text{seconds}; The system must support 500 users500\, \text{users} simultaneously.

    • 2. Reliability:

      • Measures consistency of performance without unexpected failures.

      • Examples: Continuous operation with minimal downtime; Data preservation guarantees preventing loss during power interruptions.

    • 3. Security:

      • Safeguards data integrity and restricts system features from unauthorized access.

      • Examples: Passwords must be encrypted; One-Time Password (OTP) verification required at login; Only administrators are permitted to delete records.

    • 4. Usability:

      • Measures ease of learning, operation, and user navigation.

      • Examples: Simple and user-friendly user interface; Intuitive navigation pathways optimized for first-time users.

    • 5. Availability:

      • Defines system accessibility operational windows.

      • Examples: Online banking application accessibility scheduled for 24×724 \times 7 availability; Website system uptime guaranteed at 99.9%99.9\% minimum.

    • 6. Maintainability:

      • Measures effort required to modify, bug-fix, update, or expand system functions.

      • Example: System designed such that new course modules can be added without altering or breaking existing core modules.

    • 7. Portability:

      • Defines cross-platform compatibility across operating environments and devices.

      • Examples: Desktop software executable on Windows, Linux, and macOS platforms; Mobile applications compatible with Android and iOS mobile operating systems.

Requirement Engineering Overview

  • Definition:

    • Requirement Engineering (RE) is the systematic and structured process of identifying, analyzing, documenting, validating, and managing the requirements of a software system.

  • Core Purpose and Benefits:

    • Provides a clear, unambiguous understanding of customer needs.

    • Bridges technical and non-technical communication gaps between customers and developers.

    • Minimizes programming and architectural errors during active development.

    • Saves development resources, time, and financial capital.

    • Enhances overall software execution quality and maintainability.

    • Guarantees delivery of software solutions that fulfill user needs.

Requirement Engineering Process

  • 1. Inception (Feasibility Study):

    • Stage position: Initial stage of the Requirement Engineering lifecycle.

    • Objective: Developers collaborate with project customers to comprehend problem context and establish core software objectives. Feasibility is evaluated.

    • Key Activities:

    • Identify system stakeholders.

    • Understand underlying business problems.

    • Formulate strategic project objectives.

    • Evaluate technical feasibility and economic/financial viability.

    • Phase Deliverables / Output:

    • Initial understanding of customer requirements.

    • Formulated project scope document.

    • Practical Example:

    • Scenario: A college requests an Online Attendance System.

    • Developer discussions: Identifying primary target users, determining core operational problems to solve, and assessing technical and financial viability.

  • 2. Requirement Elicitation:

    • Definition: The process of active collection and gathering of requirements directly from project stakeholders (also termed Requirement Gathering).

    • Key Activities:

    • Conduct one-on-one stakeholder interviews.

    • Organize joint application design and requirements meetings.

    • Distribute questionnaires and surveys.

    • Observe existing manual processes or legacy software systems.

    • Facilitate interactive brainstorming sessions.

    • Phase Deliverables / Output:

    • Comprehensive raw list of customer requirements.

    • Practical Example:

    • Scenario: Requirements collection for an Online Shopping System.

    • Customer-requested functional requirements: User registration module, Product search feature, Shopping cart system, Online payment gateway integration.

  • 3. Requirement Elaboration (Analysis):

    • Definition: Detailed analysis and structuring of raw collected requirements. Developers resolve ambiguities, eliminate logic errors, and model complete system behaviors.

    • Key Activities:

    • Analyze functional and non-functional requirement details.

    • Separate functional capabilities from non-functional quality attributes.

    • Construct formal use case scenarios.

    • Develop structural and behavioral system models.

    • Phase Deliverables / Output:

    • Refined, well-defined, and structured requirement descriptions.

    • Practical Example:

    • Initial vague request: "Users should receive notifications."

    • Elaboration outcome: Clarifies delivery methods (Email notifications, SMS notifications) and precise trigger points (sending notifications immediately following a successful payment transaction).

  • 4. Requirement Negotiation:

    • Definition: Structured discussion and agreement process designed to resolve conflicting priorities and resource requirements among diverse stakeholder groups.

    • Key Activities:

    • Resolve explicit requirements conflicts.

    • Rank and prioritize core requirements against development schedules.

    • Balance customer functional goals against project budget and timeline limits.

    • Phase Deliverables / Output:

    • Final agreed set of scoped system requirements.

    • Practical Example:

    • Initial customer request list: AI chatbot integration, Voice assistant functionality, Mobile application.

    • Negotiated outcome due to budgetary restrictions: prioritize Mobile application build for Version 1.0, reserving AI chatbot capabilities for Version 2.0 release.

  • 5. Requirement Specification:

    • Definition: The formal technical process of documenting all agreed requirements into a standardized, clear, and structured document.

    • Major Deliverable Document: Software Requirements Specification (SRS).

    • Key Activities:

    • Document all functional system requirements.

    • Document all non-functional requirements and quality standards.

    • Insert system architectural diagrams, operational constraints, and domain rules.

    • Document internal and external interface specifications.

    • Phase Deliverables / Output:

    • Completed Software Requirements Specification (SRS) document.

    • Practical Example — SRS Contents:

    • System authentication/Login module

    • Student registration framework

    • Attendance management module

    • Defined system security requirements

    • Benchmark performance requirements

  • 6. Requirement Validation:

    • Definition: Rigorous review process confirming that documented SRS requirements are correct, complete, consistent, feasible, and testable before coding commences.

    • Key Activities:

    • Formal requirement reviews and audits.

    • Customer verification and sign-off sessions.

    • Rigorous completeness cross-checks.

    • Consistency verification.

    • Technical and financial feasibility audits.

    • Phase Deliverables / Output:

    • Formally approved requirements specification document.

    • Practical Example:

    • Developers present complete SRS to customer with query: "Does this SRS correctly and completely describe your software requirements?" Affirmative response constitutes official validation.

  • 7. Requirements Management:

    • Definition: Continuous administrative process of controlling, tracking, and maintaining requirements changes throughout the active development lifecycle.

    • Key Activities:

    • Formally log change requests.

    • Perform impact analysis and update SRS document versions.

    • Maintain historical requirement versions (version control).

    • Trace change requests through design, code, and test artifacts.

    • Phase Deliverables / Output:

    • Continuously updated, versioned, and controlled SRS document.

    • Practical Example:

    • Mid-project request: Customer requests adding biometric fingerprint login. The change is evaluated, documented, versioned, and integrated without disrupting existing baseline features.

Process Flow and Phase Summary

  • Sequential RE Workflow Diagram:

    • Customer Needs→1. Inception→2. Elicitation→3. Elaboration→4. Negotiation→5. Specification (SRS)→6. Validation→7. Requirements Management→Software Development\text{Customer Needs} \rightarrow \text{1. Inception} \rightarrow \text{2. Elicitation} \rightarrow \text{3. Elaboration} \rightarrow \text{4. Negotiation} \rightarrow \text{5. Specification (SRS)} \rightarrow \text{6. Validation} \rightarrow \text{7. Requirements Management} \rightarrow \text{Software Development}

  • Phase Summary Matrix:

    • Inception:

    • Purpose: Understand business problems and evaluate project feasibility.

    • Output: Project scope and primary objectives.

    • Elicitation:

    • Purpose: Gather raw requirement specifications directly from stakeholders.

    • Output: Unrefined list of requirements.

    • Elaboration:

    • Purpose: Analyze, clarify, and model collected requirement details.

    • Output: Detailed requirements and formal system models.

    • Negotiation:

    • Purpose: Resolve requirement conflicts and establish priority order.

    • Output: Final agreed set of scoped requirements.

    • Specification:

    • Purpose: Formally document agreed functional and non-functional requirements.

    • Output: Software Requirements Specification (SRS) document.

    • Validation:

    • Purpose: Verify that requirements are complete, correct, consistent, and testable.

    • Output: Approved requirements specification.

    • Requirements Management:

    • Purpose: Manage change requests and track versions throughout development.

    • Output: Version-controlled and updated SRS.

Key Examination Summary

  • Definition: Requirement Engineering (RE) is the systematic process of identifying, analyzing, documenting, validating, and managing software system requirements.

  • Core Stages:

    1. Inception (Feasibility Study)

    2. Requirement Elicitation (Gathering)

    3. Requirement Elaboration (Analysis)

    4. Requirement Negotiation

    5. Requirement Specification (SRS Creation)

    6. Requirement Validation

    7. Requirements Management

  • Primary Phase Deliverable: The Software Requirements Specification (SRS) is the definitive deliverable created during the specification phase.

  • Core Value: Proper requirement engineering significantly mitigates project failures, reduces software bug remediation costs, prevents scope bloat, and guarantees high software quality meeting customer expectations.