Requirements Engineering © NC State Software Engineering Faculty L01 - 1.

Slides:



Advertisements
Similar presentations
IT Requirements Capture Process. Motivation for this seminar Discovering system requirements is hard. Formally testing use case conformance is hard. We.
Advertisements

Requirements Engineering © NC State Software Engineering Faculty L
9/10/2004Use Case Workshop 1 CSC480 Software Engineering Workshop 1 Requirements Modeling.
Alternate Software Development Methodologies
Requirements Analysis CS 414 – Software Engineering I Donald J. Bagert Rose-Hulman Institute of Technology January 7, 2003.
CT1404 Lecture 2 Requirement Engineering and Use Cases 1.
Use-case Modeling.
Introduction to Software Engineering
Computer Engineering 203 R Smith Requirements Management 6/ Requirements IEEE Standard Glossary A condition or capability needed by a user to solve.
1 CS 425 Software Engineering Project Preparation Use Case Modeling [Based on Chapters 3 & 4, Arlow and Neustadt, “UML and the Unified Process,” Addison-Wesley,
Overview of Software Requirements
SE 555 – Software Requirements & Specifications Introduction
Adding the Detail Filling in Use Case Templates. Use Case Template The use case diagram is important for visualizing a system and as a communication tool.
Software Requirements and the Requirements Engineering Process Chapters 5 and 6.
USE Case Model.
The Software Development Life Cycle: An Overview
Use Cases Why use ‘em? How do they work? UC diagrams Using them later in the software development cycle.
Requirements Elicitation. Requirement: a feature or constraint that the system must satisfy Requirements Elicitation: specification of the system that.
RUP Requirements RUP Artifacts and Deliverables
® IBM Software Group © 2006 IBM Corporation Writing Good Use Cases Module 4: Detailing a Use Case.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 06. Requirements.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 6 Slide 1 Chapter 6 Requirements Engineering Process.
Topics Covered: Software requirement specification(SRS) Software requirement specification(SRS) Authors of SRS Authors of SRS Need of SRS Need of SRS.
المحاضرة الثالثة. Software Requirements Topics covered Functional and non-functional requirements User requirements System requirements Interface specification.
Requirements 101 CS3300 Fall 2015.
©Ian Sommerville 2000 Software Engineering, 6th edition. Chapter 6 Slide 1 Requirements Engineering Processes l Processes used to discover, analyse and.
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 7 Slide 1 Requirements Engineering Processes.
Requirements Engineering Requirements Elicitation Process Lecture-8.
10/12/ Recall The Team Skills 1. Analyzing the Problem (with 5 steps) 2. Understanding User and Stakeholder Needs 1. Interviews & questionnaires.
Chapter 6 Use Cases. Use Cases: –Text stories Some “actor” using system to achieve a goal –Used to discover and record requirements –Serve as input to.
What is a Business Analyst? A Business Analyst is someone who works as a liaison among stakeholders in order to elicit, analyze, communicate and validate.
Requirements Artifacts Precursor to A & D. Objectives: Requirements Overview  Understand the basic Requirements concepts and how they affect Analysis.
Requirements Analysis Visual Modeling] Lab 02 Visual Modeling (from Visual Modeling with Rational Rose and UML) A way of thinking about problems using.
Requirements Analysis via Use Cases SE-2030 Dr. Rob Hasker 1 Based on slides written by Dr. Mark L. Hornick Used with permission.
Approaching a Problem Where do we start? How do we proceed?
Lecture 7: Requirements Engineering
Requirements Capture. Four Steps of requirements capture List candidate requirements Understand system context Capture functional requirements Capture.
Requirements Reference: Chapters 5, 6, & 8. CMSC 345, Fall Objectives To introduce the concepts of user and system requirements To explain functional.
® IBM Software Group © 2006 IBM Corporation Writing Good Use Cases Module 1: Introduction to Use-Case Modeling.
A Use Case Primer 1. The Benefits of Use Cases  Compared to traditional methods, use cases are easy to write and to read.  Use cases force the developers.
Faculty of Applied Engineering and Urban Planning Software Engineering Department Software Engineering Lab Use Cases Faculty of Information system Technology.
Requirements Engineering Overview Senior Design Don Evans.
Use Cases Use Cases are employed to describe the functionality or behavior of a system. Each use case describes a different capability that the system.
Use Case Diagram The purpose is to communicate the system’s functionality and behaviour to the customer or end user. Mainly used for capturing user requirements.
1 Software Requirements l Specifying system functionality and constraints l Chapters 5 and 6 ++
Chapter 4 Software Requirements
Week 3: Requirement Analysis & specification
1 What is the Software Life Cycle? The stages of developing a software application Requirements Analysis High-level Design Plan Low-level Design Implementation.
1 The Requirements Problem Chapter 1. 2 Standish Group Research Research paper at:  php (1994)
Requirements Analysis
Requirements engineering The process of establishing the services that the customer requires from a system and the constraints under which it operates.
UML - Development Process 1 Software Development Process Using UML.
Search Engine Optimization © HiTech Institute. All rights reserved. Slide 1 Click to edit Master title style What is Business Analysis Body of Knowledge?
Refining the Use Cases 1. How Use Cases Evolve  Early efforts typically define most of the major use cases.  The refining stages complete the process.
Software Development Process CS 360 Lecture 3. Software Process The software process is a structured set of activities required to develop a software.
Requirement Elicitation Review – Class 8 Functional Requirements Nonfunctional Requirements Software Requirements document Requirements Validation and.
Requirements. Outline Definition Requirements Process Requirements Documentation Next Steps 1.
 The processes used for RE vary widely depending on the application domain, the people involved and the organisation developing the requirements.  However,
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 6 Slide 1 Software Requirements (utvalgte foiler fra Kap 6 og 7 i Sommerville)
 System Requirement Specification and System Planning.
Requirements Introduction Emerson Murphy-Hill. Scope of Software Project Failures WHY PROJECTS FAIL % 1. Incomplete Requirements Lack of user involvement12.4.
Bernd Bruegge and Allen Dutoit Requirements Process The requirements process consists of two activities: Requirements Elicitation: Definition of the system.
CMPE 280 Web UI Design and Development August 29 Class Meeting
Requirements Engineering
Requirements Engineering
Requirements: Creation
UNIT II.
Requirements Engineering
Use Case Modeling.
Use Case Modeling Part of the unified modeling language (U M L)
Presentation transcript:

Requirements Engineering © NC State Software Engineering Faculty L01 - 1

Scope of Software Project Failures WHY PROJECTS FAIL % 1. Incomplete Requirements Lack of user involvement Lack of resources Unrealistic Expectations Lack of executive support Changing requirements Lack of planning Didn’t need it any longer Lack of IT management Technology illiteracy 4.3 Jim Johnson, The Standish Group International Project Leadership Conference, May 1995, Chicago © NC State Software Engineering Faculty L01 - 2

Relative Cost to Fix an Error Boehm’s analysis of 63 s/w development projects (IBM, GTE, TRW, etc.) to Determine ranges in cost for errors created by false assumptions in req’ts phase But not detected till later phases © NC State Software Engineering Faculty L01 - 3

Requirements Software Requirement: condition or capability needed by a user to solve a problem or achieve an objective that must be met or possessed by a system or system component to satisfy a contract, standard, specification, or other formally imposed document –Description of what the customers wants –May be buried beneath layers of assumptions, misconceptions, and politics © NC State Software Engineering Faculty L01 - 4

Requirements Engineering Systematic way of developing requirements through an iterative process –Iteration may involve traditional requirements and use cases Results in a specification of the system that stakeholders understand –natural language –easy to understand pictures (UML Diagrams) A stakeholder is a key representative of the groups who have a vested interest in your system and direct or indirect influence on its requirements. –Who are the stakeholders for your project? Think beyond the project sponsors… –Identify stakeholders at sponsor meetings © NC State Software Engineering Faculty L01 - 5

Requirements Engineering (2) Analysis: studying user needs to generate system definition that users understand –Fact-finding –Communication –Fact-validation Modeling: translating requirements the user understands to a form that software engineers understand –Representation –Organization © NC State Software Engineering Faculty L01 - 6

Types of Requirements Functional requirements: requirements that specify a function that a system or system component must be able to perform –The watch shall display the time. Non-functional requirements: not specifically concerned with the functionality of a system but place restrictions on the product being developed –User visible aspects of the system not directly related to functional behavior –Usability; reliability; privacy; security; availability; performance –Best to translate non-functional to measurable. The response time must be less than 1 second Constraints (“Pseudo requirements”): not user-visible; imposed by the client that restricts the implementation of the system or the development process –The implementation language must be Java. –Unit tests must be written in JUnit. © NC State Software Engineering Faculty L01 - 7

Requirements Elicitation Need to understand why not just what –The “why” is the business case and provides context Techniques –Interviews –Observation –Examining Documents and Artifacts –Join Application Design Sessions (JAD) –Groupware –Questionnaires –Prototypes –Focus Groups –On-Site Customer © NC State Software Engineering Faculty L01 - 8

Requirements Validation Critical step in the development process, –Usually after requirements engineering or requirements analysis. Also at delivery Requirements validation criteria: –Correctness: The requirements represent the client’s view. –Completeness: All possible scenarios through the system are described, including exceptional behavior by the user or the system –Consistency: There are no functional or nonfunctional requirements that contradict each other –Clarity: There are no ambiguities in the requirements. –Concise Don’t “boil the ocean” or extend beyond what is in current release © NC State Software Engineering Faculty L01 - 9

Requirements Validation Criteria (continued) Feasible: –Requirements can be implemented and delivered Traceability: –Each system function can be traced to a corresponding set of functional requirements Understandable Non-prescriptive –everything about what the customer wants and nothing about how the programmer(s) will do it. Consistent language –Shall, should, may –“the physician” vs. “the doctor” Testable © NC State Software Engineering Faculty L

Requirements Validation Criteria (continued) Shall (== is required to): used to indicate mandatory requirements strictly to be followed in order to conform to the standard and from which no deviation is permitted: must or will is obsolete Should (== is recommended that): used to indicate –among several possibilities one is recommended as particularly suitable, without mentioning or excluding others –or that a certain course of action is preferred but not necessarily required; –or that (in the negative form) a certain course of action is deprecated but not prohibited May (== is permitted to): used to indicate a course of action permissible within the limits of the standard Can (== is able to): used for statements of possibility and capability, whether material, physical, or causal See Section © NC State Software Engineering Faculty L

Types of Requirements Statements Traditional –“The system shall” Use case based (e.g., iTrust) User story – married with acceptance test to supply the detail –Agile requirements © NC State Software Engineering Faculty L

Traditional Requirements FR2.4 Go to Jail When the player lands on the Go to Jail cell, the player shall be sent to the Jail cell. The player shall not receive $200 if she or he passes the Go cell on the way to the Jell cell. FR2.5 Buy Property When the player lands on a tradable cell, including properties, railroads, and utilities, she or he shall have a chance to buy that cell given that the cell is available. If the player clicks on the Buy button, the cell shall be sold to the player. See FR3 for the price rules on the properties, railroads, and utilities. © NC State Software Engineering Faculty L

Traditional Requirements NR1.1 User Response The system shall respond to any user input within 0.01 seconds. Constraints –All code development shall be done with the Java programming language –All testing shall be done using JUnit and FIT © NC State Software Engineering Faculty L

Use Case-Based Requirement Elicitation Use cases describe functional aspects of the system UML focuses on scenario-based requirements elicitation Scenario: –sequence of actions that illustrates behavior. –A scenario may be used to illustrate an interaction or the execution of a use case instance © NC State Software Engineering Faculty L

External System Behavior: Use Case Model Complete course of events in the system, from the user’s perspective Use Cases Model: Illustrates –(use cases) the system’s intended functions –(actors) surroundings – external to the system –(use case diagrams) relationships between use cases and actors The collection of all use cases is everything that can be done to/with the system © NC State Software Engineering Faculty L

Actors Are NOT part of the system – they represent anyone or anything that must interact with the system –Only input information to the system –Only receive information from the system –Both input to and receive information from the system Represented in UML as a stickman, even when they are not “people”, such as a billing system © NC State Software Engineering Faculty L

Use Case A sequence of transactions performed by a system that yields a measurable result of values for a particular actor A use case typically represents a major piece of functionality that is complete from beginning to end. A use case must deliver something of value to an actor. Use cases that an actor “wants” begin with verbs. © NC State Software Engineering Faculty L

Template for Flow of Events X Flow of Events for the Use Case X.1 Preconditions What needs to happen (in another use case) before this use case can start? X.2 Main Flow X.3 Subflows Break “normal” flow into pieces “called” by Main Flow or another subflow X.4 Alternative Flows Things that happen outside of the “normal” flow “called” by Main Flow or a subflow  Covers multiple related scenarios!!! © NC State Software Engineering Faculty L

Clear Intersection Example User wants to drive through an intersection. The user can only clear through the intersection if the traffic light is green and there are no cars in the intersection. Otherwise, the car needs to join a queue. © NC State Software Engineering Faculty L

1. Flow of Events for the Clear Intersection Use Case 1.1 Preconditions Traffic light has been initialized 1.2 Main Flow This use case begins when a car enters the intersection. The car checks its status [S1]. The use case ends when the car clears the intersection [S4]. 1.3 Subflows S1 Check Status: Check status [S2, S3]. If the light is green, and the queue is empty, the car clears the intersection [S4]. Otherwise, it joins a queue [S5]. S2 Check Light: Send information on whether the light is red, yellow, or green. S3 Check Queue: Send information on whether the queue is empty or not S4 Go: The car clears the intersection and the use case ends. S5 Join a Queue: Car is added to queue © NC State Software Engineering Faculty L

Scenario: Car approaches intersection with green light and no queue © NC State Software Engineering Faculty L Preconditions Traffic light has been initialized 1.2 Main Flow This use case begins when a car enters the intersection. The car checks its status [S1]. The use case ends when the car clears the intersection [S4]. 1.3 Subflows S1 Check Status: Check status [S2, S3]. If the light is green, and the queue is empty, the car clears the intersection [S4]. Otherwise, it joins a queue [S5]. S2 Check Light: Send information on whether the light is red, yellow, or green. S3 Check Queue: Send information on whether the queue is empty or not S4 Go: The car clears the intersection and the use case ends. S5 Join a Queue: Car is added to queue

Scenario: Car approaches intersection with red light and no queue © NC State Software Engineering Faculty L Preconditions Traffic light has been initialized 1.2 Main Flow This use case begins when a car enters the intersection. The car checks its status [S1]. The use case ends when the car clears the intersection [S4]. 1.3 Subflows S1 Check Status: Check status [S2, S3]. If the light is green, and the queue is empty, the car clears the intersection [S4]. Otherwise, it joins a queue [S5]. S2 Check Light: Send information on whether the light is red, yellow, or green. S3 Check Queue: Send information on whether the queue is empty or not S4 Go: The car clears the intersection and the use case ends. S5 Join a Queue: Car is added to queue

1. Flow of Events for the Clear Intersection Use Case © NC State Software Engineering Faculty L Preconditions Traffic light has been initialized 1.2 Main Flow This use case begins when a car enters the intersection. The car checks its status [S1]. The use case ends when the car clears the intersection [S4]. 1.3 Subflows S1 Check Status: Check status [S2, S3, E1, E2]. If the light is green, and the queue is empty, the car clears the intersection [S4]. Otherwise, it joins a queue [S5]. S2 Check Light: Send information on whether the light is red, yellow, or green. S3 Check Queue: Send information on whether the queue is empty or not S4 Go: The car clears the intersection and the use case ends. S5 Join a Queue: Car is added to queue 1.4 Alternative Flows E1 Light Out: The light is not red, yellow, or green. Wait for clear intersection and gun it. E2 Accident: An accident is blocking the intersection. Rubber neck and slowly drive around it.

Flow of Events vs Scenario Flow of events enumerates all subflows and exception flows. Scenario is one path through your flow of events When you’re testing, make sure you cover a reasonable (80%??) set of scenarios. © NC State Software Engineering Faculty L

Stereotypes Use Case X (Login to System) includes Use Case Y (Update User Activity Log): –X has a multi-step subtask Y. In the course of doing X or a subtask of X, Y will always be completed. Use Case X (Obtain Student info Updates) extends Use Case Y (Login to System): –Y performs a sub-task and X is a similar but more specialized way of accomplishing that subtask. X only happens in an exception situation. Y can complete without X ever happening. © NC State Software Engineering Faculty L

Requirements in Senior Design Requirements must be written in a traditional format – “The system shall….” –Requirements must be numbered –Related requirements should be grouped under subheadings –Each functional traditional requirement should have an associated acceptance test! © NC State Software Engineering Faculty L

Requirements in Senior Design Use cases are an excellent tool to identify related scenarios and can drive creation of traditional requirements –Sponsors like to discuss scenarios –Iterate between use cases and traditional requirements –If you write use cases, include them in your progress report © NC State Software Engineering Faculty L