Chapter 4 Revision
Chapter 4 Revision
Chapter 4 Revision
Chapter 4
Requirements engineering
• The process of establishing the services that the customer requires from a system and the
constraints under which it operates and is developed.
• The requirements themselves are the descriptions of the system services and constraints
that are generated during the requirements engineering process.
What is a requirement?
• It may range from a high-level abstract statement of a service or of a system constraint
to a detailed mathematical functional specification.
2. May be the basis for the contract itself – therefore must be defined in detail.
Types of requirements
User Requirements System Requirements
Statements in natural language plus diagrams A structured document setting out detailed
of the services the system provides and its descriptions of the system’s functions,
operational constraints. Written for services, and operational constraints. Defines
customers. what should be implemented so may be part
1. Client Managers. of a contract between client and contractor.
2. System End-Users. 1. System End-users.
3. Client Engineers. 2. Client Engineers.
4. Contractor Managers. 3. System Architect.
5. System Architecture. 4. Software developers.
Functional and non-functional requirements
1. Functional requirements
✓ Statements of services the system should provide, how the system should react to
inputs and how the system should behave situations.
2. Non-functional requirements
✓ Constraints on the services or functions offered by the system such as timing
constraints, constraints on the development process, standards, etc.
3. Domain requirements
✓ Constraints on the system from the domain of operation.
Functional requirements
• Describe functionality or system services.
• Depend on the type of software, expected users and the type of system where the
software is used.
• Functional user requirements may be high-level statements of what the system should
do.
Requirements imprecision
• Problems arise when requirements are not precisely stated.
2. Consistent
✓ There should be no conflicts or contradictions in the descriptions of the system
facilities.
Non-functional requirements
• These define system properties and constraints (e.g., reliability, response time and
storage requirements). Constraints are I/O device capability, system representations, etc.
✓ For example, to ensure that performance requirements are met, you may have to
organize the system to minimize communications between components.
2. Organizational requirements
• Requirements which are a consequence of organizational policies and procedures e.g.,
process standards used, implementation requirements, etc.
3. External requirements
• Requirements which arise from factors which are external to the system and its
development process e.g., interoperability requirements, legislative requirements, etc.
1. Goal
✓ A general intention of the user such as ease of use.
• Goals are helpful to developers as they convey the intentions of the system users.
Usability requirements
• The system should be easy to use by medical staff and should be organized in such a way
that user errors are minimized. (Goal)
• Medical staff shall be able to use all the system functions after four hours of training.
After this training, the average number of errors made by experienced users shall not
exceed two per hour of system use. (Testable non-functional requirement)
Domain requirements
• The system’s operational domain imposes requirements on the system.
✓ For example, a train control system must consider the braking characteristics in
different weather conditions.
2. Implicitness
✓ Domain specialists understand the area so well that they do not think of making the
domain requirements explicit.
The software requirements document
• The software requirements document is the official statement of what is required of the
system developers.
• Should include both a definition of user requirements and a specification of the system
requirements.
• It is NOT a design document. As far as possible, it should set of WHAT the system should
do rather than HOW it should do it.
• This is practical for business systems but problematic for systems that require a lot of
pre- delivery analysis (e.g., critical systems) or systems developed by several teams.
• Systems developed incrementally will, typically, have less detail in the requirements
document.
• Requirements documents standards have been designed e.g., IEEE standard. These are
mostly applicable to the requirements for large systems engineering projects.
Requirements specification
• The process of writing down the user and system requirements in a requirements
document.
• User requirements must be understandable by end-users and customers who do not
have a technical background.
• System requirements are more detailed requirements and may include more technical
information.
2. The system may inter-operate with other systems that generate design requirements.
• Used for writing requirements because it is expressive, intuitive, and universal. This
means that the requirements can be understood by users and customers.
Problems with natural language
1. Lack of clarity
✓ Precision is difficult without making the document difficult to read.
2. Requirements confusion
✓ Functional and non-functional requirements tend to be mixed-up.
3. Requirements amalgamation
✓ Several different requirements may be expressed together.
Structured specifications
• An approach to writing requirements where the freedom of the requirements writer is
limited, and requirements are written in a standard way.
• This works well for some types of requirements e.g., requirements for embedded control
system but is sometimes too rigid for writing business system requirements.
Form-based specifications
1. Definition of the function or entity.
4. Information about the information needed for the computation and other entities used.
• Involves technical staff working with customers to find out about the application
domain, the services that the system should provide and the system’s operational
constraints.
• The requirements change during the analysis process. New stakeholders may
emerge, and the business environment may change.
Requirements elicitation and analysis
• Software engineers work with a range of system stakeholders to find out about the
application domain, the services that the system should provide, the required system
performance, hardware constraints, other systems, etc.
• Stages include:
1. Requirements discovery,
2. Requirements classification and organization,
3. Requirements prioritization and negotiation,
4. Requirements specification.
Process activities
1. Requirements discovery
✓ Interacting with stakeholders to discover their requirements. Domain requirements
are also discovered at this stage.
4. Requirements specification
✓ Requirements are documented and input into the next round of the spiral.
5. The requirements change during the analysis process. New stakeholders may
emerge and the business environment change.
Requirements discovery
• The process of gathering information about the required and existing systems and
distilling the user and system requirements from this information.
Interviewing
• Formal or informal interviews with stakeholders are part of most RE processes.
• Types of interviews
1. Closed interviews based on pre-determined list of questions.
2. Open interviews where various issues are explored with stakeholders.
• Effective interviewing
✓ Be open-minded, avoid pre-conceived ideas about the requirements and are willing
to listen to stakeholders.
Interviews in practice
• Normally a mix of closed and open-ended interviewing.
• Interviews are good for getting an overall understanding of what stakeholders do and
how they might interact with the system.
• Interviews are not good for understanding domain requirements.
✓ Requirements engineers cannot understand specific domain terminology.
✓ Some domain knowledge is so familiar that people find it hard to articulate or think
that it isn't worth articulating.
Scenarios
• Scenarios are real-life examples of how a system can be used.
Use cases
• Use-cases are a scenario-based technique in the UML which identify the actors in an
interaction, and which describe the interaction itself.
• A set of use cases should describe all possible interactions with the system.
• Sequence diagrams may be used to add detail to use-cases by showing the sequence of
event processing in the system.
Ethnography
• A social scientist spends a considerable time observing and analyzing how people
work.
• Ethnographic studies have shown that work is usually richer and more complex than
suggested by simple system models.
Scope of ethnography
• Requirements that are derived from the way that people work rather than the way in
which process definitions suggest that they ought to work.
• Requirements that are derived from cooperation and awareness of other people’s
activities.
• Awareness of what other people is doing leads to changes in the ways in which we do
things.
• Ethnography is effective for understanding existing processes but cannot identify new
features that should be added to a system.
Focused ethnography
• Developed in a project studying the air traffic control process.
• The problem with ethnography is that it studies existing practices that may have some
historical basis that is no longer relevant.
Requirements validation
• Concerned with demonstrating that the requirements define the system that the
customer really wants.
• Requirements error costs are high, so validation is very important.
✓ Fixing a requirements error after delivery may cost up to 100 times the cost of fixing
an implementation error.
Requirements checking
1. Validity. Does the system provide the functions which best support the customer’s
needs?
2. Consistency. Are there any requirements conflicts?
3. Completeness. Are all functions required by the customer included?
4. Realism. Can the requirements be implemented given available budget and
technology?
5. Verifiability. Can the requirements be checked?
2. Prototyping
✓ Using an executable model of the system to check requirements.
3. Test-case generation
✓ Developing tests for requirements to check testability.
Review checks
1. Verifiability
✓ Is the requirement realistically testable?
2. Comprehensibility
✓ Is the requirement properly understood?
3. Traceability
✓ Is the origin of the requirement clearly stated?
4. Adaptability
✓ Can the requirement be changed without a large impact on other requirements?
Chapter Questions
1. https://quizlet.com/3231158/software-engineering-9th-ed-by-sommerville-chapter-
4-flash-cards/
2. https://quizlet.com/207492680/software-engineering-9th-ed-by-sommerville-
chapter-4-flash-cards/
3. https://quizlet.com/39441603/software-engineering-9th-ed-by-sommerville-
chapter-4-flash-cards/