Professional Documents
Culture Documents
1 2
what is it?
3 4
1
Requirements engineering Crucial Steps of RE
5 6
7 8
2
Types of requirement User and system requirements
² User requirements
§ Statements in natural language plus diagrams of the services the
system provides and its operational constraints. Written for
customers.
² System requirements
§ A structured document setting out detailed descriptions of the
system’s functions, services and operational constraints. Defines
what should be implemented so may be part of a contract
between client and contractor.
9 10
11 12
3
Functional and non-functional requirements Functional requirements
13 14
² A user shall be able to search the appointments lists for ² Problems arise when requirements are not precisely
all clinics. stated.
² The system shall generate each day, for each clinic, a ² Ambiguous requirements may be interpreted in different
list of patients who are expected to attend appointments ways by developers and users.
that day.
² Consider the term ‘search’ in a requirement
² Each staff member using the system shall be uniquely § User intention – search for a patient name across all
identified by his or her 8-digit employee number. appointments in all clinics;
§ Developer interpretation – search for a patient name in an
individual clinic. User chooses clinic then search.
15 16
4
Requirements completeness and consistency Non-functional requirements
² In principle, requirements should be both complete and ² These define system properties and constraints e.g.
consistent. reliability, response time and storage requirements.
Constraints are I/O device capability, system
² Complete representations, etc.
§ They should include descriptions of all facilities required. ² Process requirements may also be specified mandating
² Consistent a particular IDE, programming language or development
§ There should be no conflicts or contradictions in the descriptions
method.
of the system facilities. ² Non-functional requirements may be more critical than
² In practice, it is impossible to produce a complete and functional requirements. If these are not met, the system
consistent requirements document. may be useless.
17 18
19 20
5
Examples of nonfunctional requirements in the
Non-functional classifications
MHC-PMS
² Product requirements
Product requirement
§ Requirements which specify that the delivered product must The MHC-PMS shall be available to all clinics during normal working
behave in a particular way e.g. execution speed, reliability, etc. hours (Mon–Fri, 0830–17.30). Downtime within normal working hours
shall not exceed five seconds in any one day.
² Organisational requirements
§ Requirements which are a consequence of organisational Organizational requirement
policies and procedures e.g. process standards used, Users of the MHC-PMS system shall authenticate themselves using
implementation requirements, etc. their health authority identity card.
21 22
² Non-functional requirements may be very difficult to state ² The system should be easy to use by medical staff and
precisely and imprecise requirements may be difficult to should be organized in such a way that user errors are
verify. minimized. (Goal)
² Goal ² Medical staff shall be able to use all the system functions
§ A general intention of the user such as ease of use. after four hours of training. After this training, the
average number of errors made by experienced users
² Verifiable non-functional requirement
shall not exceed two per hour of system use. (Testable
§ A statement using some measure that can be objectively tested.
non-functional requirement)
² Goals are helpful to developers as they convey the
intentions of the system users.
23 24
6
Metrics for specifying nonfunctional
Domain requirements
requirements
25 26
27 28
7
Key points
29 30
² The software requirements document is the official ² Many agile methods argue that producing a
statement of what is required of the system developers. requirements document is a waste of time as
requirements change so quickly.
² Should include both a definition of user requirements
and a specification of the system requirements. ² The document is therefore always out of date.
² It is NOT a design document. As far as possible, it ² Methods such as XP use incremental requirements
should set of WHAT the system should do rather than engineering and express requirements as ‘user stories’.
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.
31 32
8
Users of a requirements document Requirements document variability
33 34
Chapter Description
Chapter Description System This should describe the functional and nonfunctional requirements in more detail.
Preface This should define the expected readership of the document and describe requirements If necessary, further detail may also be added to the nonfunctional requirements.
its version history, including a rationale for the creation of a new version specification Interfaces to other systems may be defined.
and a summary of the changes made in each version. System models This might include graphical system models showing the relationships between
Introduction This should describe the need for the system. It should briefly describe the the system components and the system and its environment. Examples of
system’s functions and explain how it will work with other systems. It possible models are object models, data-flow models, or semantic data models.
should also describe how the system fits into the overall business or
strategic objectives of the organization commissioning the software. System evolution This should describe the fundamental assumptions on which the system is based,
and any anticipated changes due to hardware evolution, changing user needs,
Glossary This should define the technical terms used in the document. You should and so on. This section is useful for system designers as it may help them avoid
not make assumptions about the experience or expertise of the reader. design decisions that would constrain likely future changes to the system.
User requirements Here, you describe the services provided for the user. The nonfunctional
definition system requirements should also be described in this section. This Appendices These should provide detailed, specific information that is related to the
application being developed; for example, hardware and database descriptions.
description may use natural language, diagrams, or other notations that are
understandable to customers. Product and process standards that must be Hardware requirements define the minimal and optimal configurations for the
followed should be specified. system. Database requirements define the logical organization of the data used
by the system and the relationships between data.
System architecture This chapter should present a high-level overview of the anticipated system
architecture, showing the distribution of functions across system modules. Index Several indexes to the document may be included. As well as a normal alphabetic
Architectural components that are reused should be highlighted. index, there may be an index of diagrams, an index of functions, and so on.
35 36
9
Ways of writing a system requirements
Requirements specification
specification
² The process of writing don the user and system Notation Description
Natural language The requirements are written using numbered sentences in natural language.
requirements in a requirements document. Each sentence should express one requirement.
² User requirements have to be understandable by end- Structured natural The requirements are written in natural language on a standard form or
language template. Each field provides information about an aspect of the
users and customers who do not have a technical requirement.
background. Design description This approach uses a language like a programming language, but with more
languages abstract features to specify the requirements by defining an operational
² System requirements are more detailed requirements model of the system. This approach is now rarely used although it can be
useful for interface specifications.
and may include more technical information. Graphical notations Graphical models, supplemented by text annotations, are used to define the
functional requirements for the system; UML use case and sequence
² The requirements may be part of a contract for the diagrams are commonly used.
system development Mathematical These notations are based on mathematical concepts such as finite-state
specifications machines or sets. Although these unambiguous specifications can reduce
§ It is therefore important that these are as complete as possible. the ambiguity in a requirements document, most customers don’t understand
a formal specification. They cannot check that it represents what they want
and are reluctant to accept it as a system contract
37 38
² In principle, requirements should state what the system ² Requirements are written as natural language sentences
should do and the design should describe how it does supplemented by diagrams and tables.
this.
² Used for writing requirements because it is expressive,
² In practice, requirements and design are inseparable
intuitive and universal. This means that the requirements
§ A system architecture may be designed to structure the can be understood by users and customers.
requirements;
§ The system may inter-operate with other systems that generate
design requirements;
§ The use of a specific architecture to satisfy non-functional
requirements may be a domain requirement.
§ This may be the consequence of a regulatory requirement.
39 40
10
Guidelines for writing requirements Problems with natural language
² Invent a standard format and use it for all requirements. ² Lack of clarity
² Use language in a consistent way. Use shall for § Precision is difficult without making the document difficult to
read.
mandatory requirements, should for desirable
requirements. ² Requirements confusion
§ Functional and non-functional requirements tend to be mixed-up.
² Use text highlighting to identify key parts of the
requirement. ² Requirements amalgamation
² Avoid the use of computer jargon. § Several different requirements may be expressed together.
41 42
43 44
11
A structured specification of a requirement for
Form-based specifications
an insulin pump
45 46
47 48
12
Tabular specification of computation for an
Requirements engineering processes
insulin pump
49 50
51 52
13
Problems of requirements analysis Requirements elicitation and analysis
² Stakeholders don’t know what they really want. ² Software engineers work with a range of system
² Stakeholders express requirements in their own terms. stakeholders to find out about the application domain,
the services that the system should provide, the required
² Different stakeholders may have conflicting system performance, hardware constraints, other
requirements. systems, etc.
² Organisational and political factors may influence the ² Stages include:
system requirements. § Requirements discovery,
² The requirements change during the analysis process. § Requirements classification and organization,
New stakeholders may emerge and the business § Requirements prioritization and negotiation,
environment may change. § Requirements specification.
53 54
² Requirements discovery
§ Interacting with stakeholders to discover their requirements.
Domain requirements are also discovered at this stage.
² Requirements classification and organisation
§ Groups related requirements and organises them into coherent
clusters.
² Prioritisation and negotiation
§ Prioritising requirements and resolving requirements conflicts.
² Requirements specification
§ Requirements are documented and input into the next round of
the spiral.
55 56
14
Problems of requirements elicitation Key points
² Stakeholders don’t know what they really want. ² The software requirements document is an agreed
² Stakeholders express requirements in their own terms. statement of the system requirements. It should be
organized so that both system customers and software
² Different stakeholders may have conflicting developers can use it.
requirements.
² The requirements engineering process is an iterative
² Organisational and political factors may influence the process including requirements elicitation, specification
system requirements. and validation.
² The requirements change during the analysis process. ² Requirements elicitation and analysis is an iterative
New stakeholders may emerge and the business process that can be represented as a spiral of activities –
environment change. requirements discovery, requirements classification and
organization, requirements negotiation and requirements
documentation.
Chapter 4 Requirements engineering 58
57 58
Requirements discovery
59 60
15
Stakeholders in the MHC-PMS Stakeholders in the MHC-PMS
² Patients whose information is recorded in the system. ² A medical ethics manager who must ensure that the
² Doctors who are responsible for assessing and treating system meets current ethical guidelines for patient care.
patients. ² Health care managers who obtain management
² Nurses who coordinate the consultations with doctors information from the system.
and administer some treatments. ² Medical records staff who are responsible for ensuring
² Medical receptionists who manage patients’ that system information can be maintained and
appointments. preserved, and that record keeping procedures have
been properly implemented.
² IT staff who are responsible for installing and maintaining
the system.
61 62
² Formal or informal interviews with stakeholders are part ² Normally a mix of closed and open-ended interviewing.
of most RE processes. ² Interviews are good for getting an overall understanding
² Types of interview of what stakeholders do and how they might interact with
the system.
§ Closed interviews based on pre-determined list of questions
§ Open interviews where various issues are explored with ² Interviews are not good for understanding domain
stakeholders. requirements
§ Requirements engineers cannot understand specific domain
² Effective interviewing terminology;
§ Be open-minded, avoid pre-conceived ideas about the § Some domain knowledge is so familiar that people find it hard to
requirements and are willing to listen to stakeholders. articulate or think that it isn’t worth articulating.
§ Prompt the interviewee to get discussions going using a
springboard question, a requirements proposal, or by working
together on a prototype system.
Chapter 4 Requirements engineering 63
63 64
16
Scenario for collecting medical history in MHC-
Scenarios
PMS
65 66
67 68
17
Use cases for the MHC-PMS Ethnography
69 70
² Requirements that are derived from the way that people ² Developed in a project studying the air traffic control
actually work rather than the way I which process process
definitions suggest that they ought to work. ² Combines ethnography with prototyping
² Requirements that are derived from cooperation and ² Prototype development results in unanswered questions
awareness of other people’s activities. which focus the ethnographic analysis.
§ Awareness of what other people are doing leads to changes in ² The problem with ethnography is that it studies existing
the ways in which we do things. practices which may have some historical basis which is
² Ethnography is effective for understanding existing no longer relevant.
processes but cannot identify new features that should
be added to a system.
71 72
18
Ethnography and prototyping for requirements
Requirements validation
analysis
73 74
² Validity. Does the system provide the functions which ² Requirements reviews
best support the customer’s needs? § Systematic manual analysis of the requirements.
75 76
19
Requirements reviews Review checks
77 78
² Requirements management is the process of managing ² The business and technical environment of the system
changing requirements during the requirements always changes after installation.
engineering process and system development. § New hardware may be introduced, it may be necessary to
interface the system with other systems, business priorities may
² New requirements emerge as a system is being change (with consequent changes in the system support
developed and after it has gone into use. required), and new legislation and regulations may be introduced
that the system must necessarily abide by.
² You need to keep track of individual requirements and
maintain links between dependent requirements so that ² The people who pay for a system and the users of that
you can assess the impact of requirements changes. system are rarely the same people.
You need to establish a formal process for making § System customers impose requirements because of
change proposals and linking these to system organizational and budgetary constraints. These may conflict
requirements. with end-user requirements and, after delivery, new features may
have to be added for user support if the system is to meet its
goals.
Chapter 4 Requirements engineering 79 Chapter 4 Requirements engineering 80
79 80
20
Changing requirements Requirements evolution
81 82
² Establishes the level of requirements management detail ² Deciding if a requirements change should be accepted
that is required. § Problem analysis and change specification
² Requirements management decisions: • During this stage, the problem or the change proposal is analyzed
to check that it is valid. This analysis is fed back to the change
§ Requirements identification Each requirement must be uniquely requestor who may respond with a more specific requirements
identified so that it can be cross-referenced with other requirements. change proposal, or decide to withdraw the request.
§ A change management process This is the set of activities that § Change analysis and costing
assess the impact and cost of changes. • The effect of the proposed change is assessed using traceability
§ Traceability policies These policies define the relationships between information and general knowledge of the system requirements.
each requirement and between the requirements and the system Once this analysis is completed, a decision is made whether or not
design that should be recorded. to proceed with the requirements change.
§ Tool support Tools that may be used range from specialist § Change implementation
requirements management systems to spreadsheets and simple • The requirements document and, where necessary, the system
database systems. design and implementation, are modified. Ideally, the document
should be organized so that changes can be easily implemented.
Chapter 4 Requirements engineering 83 Chapter 4 Requirements engineering 84
83 84
21
Requirements change management Key points
85 86
22