Requirements Engineering. Establishing what the customer requires from a software system. Requirements Engineering. What is a Requirement?

Similar documents
Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 6 Slide 1

SE351a: Software Project & Process Management. 11 Oct., 2005 SE351a, ECE UWO, (c) Hamada Ghenniwa

Software Engineering. Lecture 10

Requirements. Requirements. Types of Requirement. What Is a Requirement?

Software specification and modelling. Requirements engineering

Requirements Engineering. Version October 2016

Software Requirements and the Requirements Engineering Process. Chapters 5 and 6

Requirements Engineering: Specification & Validation. Software Requirements and Design CITS 4401 Lecture 18

SEG3201 Basics of the Requirements Process

VO Software Engineering

Ch 4: Requirements Engineering. What are requirements?

Lecture 6: Requirements Engineering

Requirements Engineering

Software Requirements Specification. <Project> for. Version 1.0 approved. Prepared by <author(s)> <Organization> <Date created>

Chapter 4 Requirements Engineering

Software Requirements Specification. <Project> for. Version 1.0 approved. Prepared by <author> <organization> <date created>

Lesson 06. Requirement Engineering Processes

Requirements engineering

CIS 890: Safety Critical Systems

UNIT-II REQUIREMENTS ANALYSIS AND SPECIFICATION

Fundamentals: Software Engineering. Objectives. Last lectures. Unit 2: Light Introduction to Requirements Engineering

Requirements Engineering. Version November 2012

Lecture 8 Requirements Engineering

Software Prototyping Animating and demonstrating system requirements. Uses of System Prototypes. Prototyping Benefits

Requirement Analysis

Verification and Validation. Assuring that a software system meets a user s needs. Verification vs Validation. The V & V Process

Software Processes. Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 4 Slide 1

Scenario-Based Analysis. Scenario-Based Analysis (example) Form analysis

Software Engineering - I

Software Engineering

UNIT II SOFTWARE REQUIREMENTS 9

Introduction to Software Engineering

Requirements Validation and Negotiation

Lecture 9 Requirements Engineering II

Requirements Engineering

Legacy Systems. Older software systems that remain vital to an organisation. Legacy systems. Legacy system replacement

The Analysis and Proposed Modifications to ISO/IEC Software Engineering Software Quality Requirements and Evaluation Quality Requirements

Component-based software engineering. Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 19 Slide 1

Vragen. Use case analysis. Use-Cases: describing how the user will Use cases

Recommended Practice for Software Requirements Specifications (IEEE)

REQUIREMENTS. Michael Weintraub Spring, 2016

Lecture 7 (3-April-2013)

Delimited. Interfaced. Readable. Modifiable. Verifiable. Prioritized* Endorsed

Verification and Validation. Ian Sommerville 2004 Software Engineering, 7th edition. Chapter 22 Slide 1

Intro to Software Requirements

CMSC 435: Software Engineering Section 0201

Chapter 5. Software Tools

Lecture 5: Requirements Specifications

Introduction to Software Specifications and Data Flow Diagrams. Neelam Gupta The University of Arizona

Requirements Engineering. Objectives. System requirements. Types of requirements. FAQS about requirements. Requirements problems

Business Analysis for Practitioners - Requirements Elicitation and Analysis (Domain 3)

Requirements Engineering. Materials: Pressman (chapters 8,9, 10, 11) Sommerville (Chapters 4, 5)

The requirements engineering process

CS3500: Object-Oriented Design Fall 2013

Chapter 4 Objectives

Topic: Software Verification, Validation and Testing Software Engineering. Faculty of Computing Universiti Teknologi Malaysia

Defining OAIS requirements by Deconstructing the OAIS Reference Model Date last revised: August 28, 2005

Software Documentation

BCS Certificate in Requirements Engineering Extended Syllabus Version 2.5 May 2017

CPSC 444 Project Milestone III: Prototyping & Experiment Design Feb 6, 2018

Software testing. Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 23 Slide 1

Part 5. Verification and Validation

Chapter 4 Requirements Elicitation

Nick Rozanski Andy Longshaw Eoin Woods. Sold! How to Describe, Explain and Justify your Architecture

ΗΜΥ 317 Τεχνολογία Υπολογισμού

SOFTWARE ENGINEERING DECEMBER. Q2a. What are the key challenges being faced by software engineering?

Semantics-Based Integration of Embedded Systems Models

The IDN Variant TLD Program: Updated Program Plan 23 August 2012

Software Engineering Unit 4- Requirement Analysis and Specification

Prototyping. Lecture # 21

ICS 52: Introduction to Software Engineering

DATA ITEM DESCRIPTION

Architectural Blueprint

System Name Software Architecture Description

Introduction to Architecture. Introduction to Architecture 1

Static and dynamic Testing

Certification Authorities Software Team (CAST) Position Paper CAST-25

CS 307: Software Engineering. Lecture 10: Software Design and Architecture

Software Specification and Architecture 2IW80

Modeling Issues Modeling Enterprises. Modeling

Incremental development A.Y. 2018/2019

SE351a: Software Project & Process Management. 13 Oct., 2005 SE351a, ECE UWO, (c) Hamada Ghenniwa

Requirements Analysis. SE 555 Software Requirements & Specification

Requirements Elicitation

Specifying and Prototyping

Mathematics and Computing: Level 2 M253 Team working in distributed environments

Software Lifecycle Context (Waterfall Model) Software Requirements. The Requirements Engineering Problem

Requirements Validation and Negotiation

Chapter 6 Architectural Design. Chapter 6 Architectural design

Requirements Analysis

BCS Certificate in Requirements Engineering Syllabus

System models Abstract descriptions of systems whose requirements are being analysed. System modelling. Structured methods

Rules of Writing Software Requirement Specifications

The Clinical Data Repository Provides CPR's Foundation

Software Quality. Chapter What is Quality?

IT Governance ISO/IEC 27001:2013 ISMS Implementation. Service description. Protect Comply Thrive

EXIN BCS SIAM Foundation. Sample Exam. Edition

Objectives. Architectural Design. Software architecture. Topics covered. Architectural design. Advantages of explicit architecture

ΗΜΥ 317 Τεχνολογία Υπολογισμού

REQUIREMENTS ENGINEERING LECTURE 2017/2018. Dr. Jörg Dörr. Conceptual Modelling. Fraunhofer IESE

Transcription:

Engineering Establishing what the customer requires from a software system Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 1 Engineering The process of establishing the: services that the customer requires from a system constraints under which the system operates constraints under which the system is developed. may be functional or nonfunctional Functional describe system services or features. Non-functional is a constraint on the system or on the development process. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 2 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. This is inevitable as may serve a dual function: May be the basis for a bid for a contract - therefore must be open to interpretation. May be the basis for the contract itself - therefore must be defined in detail. Both these statements may be called. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 3

Definition/Specification Definition A statement in natural language of the services the system provides and its operational constraints. Written for customers. Specification A structured document setting out detailed descriptions of the system services. Written as a contract between client and contractor. Written for contractors and developers. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 4 Readers definition Client managers System end-users Client engineers Contractor managers System architects specification System end-users Client engineers System architects Software developers Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 5 Reasons for Inconsistency Large software systems must improve the current situation. It is hard to anticipate the effects that the new system will have on the organization. Different users have different and priorities. System end-users and organizations who pay for the system have different. Prototyping is often required to clarify. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 6

Problems with Natural Language Natural language relies on the specification readers and writers using the same words for the same concept. A natural language specification is over-flexible and subject to different interpretations. are not partitioned by language structures. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 7 Natural Language Alternatives Structured natural language Graphical notations Mathematical specifications Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 8 The RE process Feasibility study Feasibility report analysis System models definition Definition of specification document Specification of Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 9

The Document The document is the official statement of what is required of the system developers. Should include both a definition and a specification of. It is NOT a design document. As far as possible, it should set out WHAT the system should do rather than HOW it should do it. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 10 Document Specify external system behavior. Specify implementation constraints. Easy to change. Serve as reference tool for maintenance. Record forethought about the life cycle of the system i.e., predict changes. Characterize responses to unexpected events. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 11 Document Structure Introduction ( Definition) Describe need for the system and how it fits with business objectives. Functional Describe the services to be provided in detail. Non-functional Define constraints on the system and the development process. System Evolution Define fundamental assumptions on which the system is based and anticipated changes. Glossary Define technical terms used. Index Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 12

Definition Should specify external behavior of the system. The should not be defined using a computational model. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 13 Writing Natural language is typically used when writing definitions. This is universally understandable but three types of problem can arise: Lack of clarity. Precision is difficult without making the document difficult to read confusion. Functional and non-functional tend to be mixed-up amalgamation. Several different may be expressed together Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 14 Definition and Specification definition Customer-oriented descriptions of the system s functions and constraints on its operation. specification Precise and detailed descriptions of the system s functionality and constraints. Intended to communicate what is required to system developers and serve as the basis of a contract for the system development. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 15

Functional using Structured Language A limited form of natural language may be used to express. This removes some of the problems resulting from ambiguity and flexibility and imposes a degree of uniformity on a specification. Often best supported using a forms-based approach. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 16 Examples of Functional The user shall be able to search either all of the initial set of databases or select a subset from it. The system shall provide appropriate viewers for the user to read documents in the document store. Every order shall be allocated a unique identifier (ORDER_ID) which the user shall be able to copy to the account s permanent storage area. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 17 Form-based Functional Specifications Definition of the function or entity. Description of inputs and where they come from. Description of outputs and where they go to. Indication of other entities required. Pre and post conditions (if appropriate). Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 18

Example of a Form-based Functional Specification ECLIPSE/Workstation/Tools/DE/FS/3.5.1 Function Add node Description Adds a node to an existing design. The user selects the type of node, and its position. When added to the design, the node becomes the current selection. The user chooses the node position by moving the cursor to the area where the node is added. Inputs Node type, Node position, Design identifier. Source Node type and Node position are input by the user, Design identifier from the database. Outputs Design identifier. Destination The design database. The design is committed to the database on completion of the operation. Requires Design graph rooted at input design identifier. Pre-condition The design is open and displayed on the user's screen. Post-condition The design is unchanged apart from the addition of a node of the specified type at the given position. Side-effects None Definition: ECLIPSE/Workstation/Tools/DE/RD/3.5.1 Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 19 Rationale It is important to provide rationale with. This helps the developer understand the application domain and why the requirement is stated in its current form. Particularly important when have to be changed. The availability of rationale reduces the chances that change will have unexpected effects. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 20 Non-functional Define system properties and constraints e.g., reliability, response time and storage. Constraints are I/O device capability, system representations, etc. Process may also be specified mandating a particular CASE system, programming language or development method. Non-functional may be more critical than functional. If these are not met, the system is useless. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 21

Non-functional Requirement Types Non-functional Product Organizational External Efficiency Reliability Portability Interoperability Ethical Usability Delivery Implementation Standards Legislative Performance Space Privacy Safety Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 22 Non-functional examples Product requirement 4.C.8 It shall be possible for all necessary communication between the APSE and the user to be expressed in the standard Ada character set Organisational requirement 9.3.2 The system development process and deliverable documents shall conform to the process and deliverables defined in XYZCo-SP- STAN-95 External requirement 7.6.5 The system shall not disclose any personal information about customers apart from their name and reference number to the operators of the system Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 23 User Should describe functional and non-functional so that they are understandable by system users who don t have detailed technical knowledge User are defined using natural language, tables and diagrams Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 24

System-level Some place constraints on the system as a whole rather than specific system functions. Example The time required for training a system operator to be proficient in the use of the system must not exceed 2 working days. These may be emergent which cannot be derived from any single sub-set of the system Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 25 Editor Grid Requirement 2.6 Grid facilities To assist in the positioning of entities on a diagram, the user may turn on a grid in either centimeters or inches, via an option on the control panel. Initially, the grid is off. The grid may be turned on and off at any time during an editing session and can be toggled between inches and centimeters at any time. A grid option will be provided on the reduce-to-fit view but the number of grid lines shown will be reduced to avoid filling the smaller diagram with grid lines. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 26 Defining Editor requirement mixes up functional and nonfunctional and is incomplete. Easy to criticize but hard to write good definitions. Use of a standard format with pre-defined fields to be filled means that information is less likely to be missed out. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 27

Editor Grid Requirement 2.6 Grid facilities 2.6.1 The editor shall provide a grid facility where a matrix of horizontal and vertical lines provide a background to the editor window. This grid shall be a passive grid where the alignment of entities is the user's responsibility. Rationale: A grid helps the user to create a tidy diagram with well-spaced entities. Although an active grid, where entities 'snap-to' grid lines can be useful, the positioning is imprecise. The user is the best person to decide where entities should be positioned. 2.6.2 When used in reduce-to-fit mode (see 2.1), the number of units separating grid lines must be increased. Rationale: If line spacing is not increased, the background will be very cluttered with grid lines. Specification: ECLIPSE/WS/Tools/DE/FS Section 5.6 Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 28 Node Creation Requirement 3.5.1 Adding nodes to a design 3.5.1.1 The editor shall provide a facility where users can add nodes of a specified type to a design. Nodes are selected (see 3.4) when they are added to the design. 3.5.1.2 The sequence of actions to add a node should be as follows: 1. The user should select the type of node to be added. 2. The user moves the cursor to the approximate node position in the diagram and indicates that the node symbol should be added at that point. 3. The symbol may then be dragged to its final position. Rationale: The user is the best person to decide where to position a node on the diagram. This approach gives the user direct control over node type selection and positioning. Specification: ECLIPSE/WS/Tools/DE/FS. Section 3.5.1 Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 29 Traceability traceability means that related are linked in some way and that are (perhaps) linked to their source. Traceability is a property of a specification which reflects the ease of finding related. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 30

Traceability Techniques Assign a unique number to all. Cross-reference related using this unique number. Use HTML hyperlinks to implement traceability. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 31 Verifiability should be written so that they can be verified objectively. The problem with this requirement is its use of vague terms such as errors shall be minimized The system should be easy to use by experienced controllers and should be organized in such a way that user errors are minimized. The error rate should be been quantified. Experienced controllers should be able to use all the system functions after a total of two hours training. After this training, the average number of errors made by experienced users should not exceed two per day. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 32 Measures Property Speed Size Ease of use Reliability Robustness Portability Measure Processed transactions/second User/Event response time Screen refresh time K Bytes Number of RAM chips Training time Number of help frames Mean time to failure Probability of unavailability Rate of failure occurrence Availability Time to restart after failure Percentage of events causing failure Probability of data corruption on failure Percentage of target dependent statements Number of target systems Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 33

Validation Concerned with demonstrating that the define the system that the customer really wants. error costs are high so validation is very important. Fixing a error after delivery may cost up to 100 times the cost of fixing an implementation error. Prototyping is an important technique of validation. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 34 Checking Validity: Does the system provide the functions which best support the customer s needs? Consistency: Are there any conflicts? Completeness: Are all functions required by the customer included? Realism: Can the be implemented given available budget and technology? Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 35 Reviews Regular reviews should be held while the definition is being formulated. Both client and contractor staff should be involved in reviews. Reviews may be formal (with completed documents) or informal. Good communications between developers, customers and users can resolve problems at an early stage. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 36

Review Checks Verifiability: Is the requirement realistically testable? Comprehensibility: Is the requirement properly understood? Traceability: Is the origin of the requirement clearly stated? Adaptability: Can the requirement be changed without a large impact on other? Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 37 Evolution always evolve as a better understanding of user needs is developed and as the organization s objectives change. It is essential to plan for change in the as the system is being developed and used. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 38 Evolution Initial understanding of problem Changed understanding of problem Initial Changed Time Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 39

Classes Enduring : Stable derived from the core activity of the customer organization. E.g., a hospital will always have doctors, nurses, etc. Volatile : which change during development or when the system is in use. E.g., in a hospital, derived from health-care policy. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 40 Changing a Document The document should be organized so that changes can be made without extensive rewriting. External references should be minimized and the document sections should be as modular as possible. Changes are easiest when the document is electronic. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 41 Controlled Evolution change document V1 change document V1 document V2 System implementation V1 System implementation V2 System implementation V1 System implementation V2 and system inconsistent and system consistent Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 42

abstraction (Davis) If a company wishes to let a contract for a large software development project, it must define its needs in a sufficiently abstract way that a solution is not pre-defined. The must be written so that several contractors can bid for the contract, offering, perhaps, different ways of meeting the client organisation s needs. Once a contract has been awarded, the contractor must write a system definition for the client in more detail so that the client understands and can validate what the software will do. Both o f these documents may be called the document for the system. Ian Sommerville 1995/2000 (Modified by Spiros Mancoridis 1999) Software Engineering, 6th edition. Chapters 5 and 6 Slide 43