functional requirements – use cases

30
Functional Requirements – Use Functional Requirements – Use Cases Cases Steve Chenoweth & Chandan Rupakheti (Chapters 14 , 21 – Requirements Text) Quiz question 9 relates to this, when you’ve studied use c

Upload: cole-lynn

Post on 05-Jan-2016

85 views

Category:

Documents


1 download

DESCRIPTION

Functional Requirements – Use Cases. Steve Chenoweth & Chandan Rupakheti (Chapters 14 , 21 – Requirements Text).  Quiz question 9 relates to this, when you’ve studied use cases!. What is a Functional Requirement?. Functional requirements specify particular behaviors of a system. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Functional Requirements – Use Cases

Functional Requirements – Use CasesFunctional Requirements – Use Cases

Steve Chenoweth & Chandan Rupakheti

(Chapters 14 , 21 – Requirements Text)

Quiz question 9 relates to this, when you’ve studied use cases!

Page 2: Functional Requirements – Use Cases

What is a Functional Requirement?What is a Functional Requirement?

Functional requirements specify particular behaviors of a system.

E.g., Suppose your “system” acts on “food” –

“Cook food” is “functional.”

Vs How well it cooks, or how fast, or how easily is not.

Why?

Question 1

Page 3: Functional Requirements – Use Cases

What is a Use Case?What is a Use Case?

A sequence of actions a system performs that yield an observable result of value to a particular actor

Sequences of actions Performed by system of interest Observable result of value to a particular actor

Question 2

Page 4: Functional Requirements – Use Cases

Benefits – Requirements ManagementBenefits – Requirements Management

Easy to write and read Think from the perspective of an user Provides a clear idea of the “what” and the “how” User involvement Use cases tell a better requirement story

Typically developers are encouraged and required to write use cases. Why ?

Questions 3,4

Page 5: Functional Requirements – Use Cases

Benefits – Development Life Cycle

Use cases started for requirements become the vehicle for the following activities:

◦ Detailing them to show the corresponding design work

◦ Development of test plans for acceptance testing

◦ Creation of interaction design specifics, simply by adding detail to the use cases about “how” the actions will be done

◦ The basis for discovering a great OO design, based on the actors and their actions

RequirementsUse case

DesignUse case

Test Plan forUse Case

Page 6: Functional Requirements – Use Cases

Use Case TemplateUse Case Template

A. Name

B. Brief description

C. Actors

D. Basic flow

E. Alternate flows (sometimes called extensions)

F. Pre-conditions

G. Post-conditions

H. Other stakeholders

I. System/sub-system

J. Special requirements

Page 7: Functional Requirements – Use Cases

Use Case Model - Development StepsUse Case Model - Development Steps

1. Identify the actors

2. Identify the use cases

3. Identify actor/use case relationships

4. Outline use cases

5. Refine use cases

Page 8: Functional Requirements – Use Cases

1. Identify the Actors1. Identify the Actors

Who uses the system? Who gets/provides information from/to system? Who supports the system? What other systems interact with this system?

Page 9: Functional Requirements – Use Cases

2. Identify the Use Cases2. Identify the Use Cases

What are the intentions of each actor with respect to the system?◦ What are they going to use the system for?

◦ Does the actor provide some information?

◦ Does the actor need to be informed of something?

Page 10: Functional Requirements – Use Cases

2. Identify the Use Cases2. Identify the Use Cases

Give a descriptive name:◦ Start with an action verb

◦ Describes goal or intent Give a one-sentence description

Page 11: Functional Requirements – Use Cases

3. Identify Actor/Use Case Relationships3. Identify Actor/Use Case Relationships

Draw a diagram showing relationships between actors and use cases

Eat food

Buy foodParent Child

Page 12: Functional Requirements – Use Cases

4. Outline Use Cases4. Outline Use Cases

Describe sequence of events in basic flow (sunny day scenario)

Describe sequences of events in alternate flows (rainy day scenarios)

Page 13: Functional Requirements – Use Cases

5. Refine Use Cases5. Refine Use Cases

Describe sequences of events for flows Describe pre-conditions Describe post-conditions Fill in special requirements

Page 14: Functional Requirements – Use Cases

Pre and Post ConditionsPre and Post Conditions

What is a pre-condition? What is a post-condition?

Questions 5,6

Page 15: Functional Requirements – Use Cases

A. Name

B. Brief description

C. Actors

D. Basic flow

E. Alternate flows

F. Pre-conditions

G. Post-conditions

H. Other stakeholders

I. System/sub-system

J. Special requirements

Use Case TemplateUse Case Template

Page 16: Functional Requirements – Use Cases

Microwave ExampleMicrowave Example

User

Cook Food

Page 17: Functional Requirements – Use Cases

Cook Food Use Case – Slide 1 of 4Cook Food Use Case – Slide 1 of 4

A. Name: Cook Food

B. Brief description: User places food in microwave and cooks it for desired period of time at desired power level.

C. Actors: User

Page 18: Functional Requirements – Use Cases

Cook Food Use Case – Slide 2 of 4Cook Food Use Case – Slide 2 of 4

D. Basic flow:

1. User opens door and places food in unit

2. User enters time for cooking

3. User tells microwave to start

4. Unit cooks food

5. Unit indicates it is done

Page 19: Functional Requirements – Use Cases

Cook Food Use Case – Slide 3 of 4Cook Food Use Case – Slide 3 of 4

E. Alternate flows (“extensions”)

1. User cancels time before starting

2. User cancels cooking before finished

3. User selects reduced power level before pushing start button

4. Make sure you detail the alternate flows completely

Question 8

Page 20: Functional Requirements – Use Cases

Cook Food Use Case – Slide 4 of 4Cook Food Use Case – Slide 4 of 4

F. Pre-conditions◦ Unit is plugged in◦ Unit is in ready state

G. Post-conditions◦ Food is cooked or user cancelled operation

H. Special requirements◦ Unit should indicate remaining time to finish while

cooking◦ Default power setting should be "high"

Page 21: Functional Requirements – Use Cases

How do the use case and the storyboard fit?How do the use case and the storyboard fit?

Page 22: Functional Requirements – Use Cases

How do you know you have collected enough use How do you know you have collected enough use cases?cases?

Page 23: Functional Requirements – Use Cases

Extending Use CasesExtending Use Cases

Extend an existing use case instead of redefining it

Question 7

Page 24: Functional Requirements – Use Cases

Microwave ExtensionMicrowave Extension

User

Cook Food

Slice Food

<<extend>>

Page 25: Functional Requirements – Use Cases

Including Use CasesIncluding Use Cases

Frequent sequences of events may be defined as use cases

Including a use case is like calling a subroutine

Page 26: Functional Requirements – Use Cases

Microwave InclusionMicrowave Inclusion

User

Cook Food

Set Timer

<<include>>

Page 27: Functional Requirements – Use Cases

Cook Food InclusionCook Food Inclusion

D. Basic flow:

1. User opens door and places food in unit

2. User performs Set Timer use case

3. User pushes start button

4. Unit cooks food

5. Unit beeps

Page 28: Functional Requirements – Use Cases

RFC 2119

Will, Shall, Must Should May

Is there a difference?

Just Google for this, to see what it is!

Page 29: Functional Requirements – Use Cases

In Class Discussions – we’ll discuss these…In Class Discussions – we’ll discuss these…

Can all functional requirements be specified using use cases? Explain

How do you know how detailed to make a use case? How do you know when you’ve moved from

“requirements” to “design”? Why would you want “test plans” for your system to be

closely related to use cases? Why would you keep a separate version of

“requirements use cases” up to date, if possible?

Page 30: Functional Requirements – Use Cases

In-Class Activity we’ll do:In-Class Activity we’ll do:

Develop use cases for the following feature of the degree planner project

1. Advisors must be able to pull up a specific student’s plan for graduation and approve said plan.