SlideShare a Scribd company logo
Software Engineering
                                 Prof.Dr.ir. F. Gielen



Functional Requirements
Use cases & System Scenarios




  Vakgroep Informatietechnologie – IBCN
Use Cases & Scenarios
 Use  cases, sometimes called user scenarios,
  are narratives or flow diagrams that describe
  how users will interact with a system.
 Some people also refer to them as task
  analysis or user flows. Regardless of what
  you call them, the idea is the same:
       Illustrate to people scenarios or specific tasks
        which users will perform on the system.
       Illustrate how the system interacts with other
        systems.


Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 2
Use Case Diagram
 Use  case diagrams are created to visualize
  the relationships between actors and use
  cases
 Use cases are a visualization of the functional
  requirements of a system




Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 3
Example : Use Case Diagram




Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 4
Actors & user profiles (persona’s)
 An actor is someone or something that must
 interact with the system under development




 Before starting any project it is imperative to
 understand the target audiences. User profiles
 (also referred to as user personas) are an excellent
 way to document and illustrate realistic sample
 users.

    Vakgroep Informatietechnologie – Onderzoeksgroep IBCN     p. 5
Use Cases
A   use case is a pattern of behavior the
   system exhibits
         Each use case is a sequence of related
          transactions performed by an actor and the
          system in a dialogue
 Actors           are examined to determine their
   needs
         Passenger – Search for Flights, Make
          Reservation, Pay for Flight




Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 6
Documenting Use Cases
A   use case specification document is
   created for each use case
         Written from an actor point of view
 Details what the system must provide to
  the actor when the use case is executed
 Typical contents
       How the use case starts and ends
       Normal flow of events

       Alternate flow of events

       Exceptional flow of events



Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 7
Template for Use Cases
 Textual  description in prose
 Priority|Complexity (High, Medium or Low)
 Related informal requirements
 Actors
 Events (triggering, during execution, ...)
 Preconditions
 Main success scenario (MSS - Diagram)
 Extensions on the MSS
 Postconditions after success and failure
 Related use cases

Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 8
System Sequence diagram




                           Black Box Sequence Diagram
Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 9
Write an effective Use Case : eBay
STEP 1. Define your use case actors
-> An actor can be a person or a system




   Vakgroep Informatietechnologie – Onderzoeksgroep IBCN     p. 10
Write an effective Use Case: eBay
STEP 2. Define your use case Actor Goals & Needs
-> What are the goals & needs of each actor
-> Create initial list of high level use cases
-> Effective use cases should have understandable actors and goals




   Vakgroep Informatietechnologie – Onderzoeksgroep IBCN        p. 11
Write an effective Use Case: eBay
STEP 3. Identify reuse opportunity for use cases
-> Identify the duplicated behavior
-> Create a generic actor or a generic use case
    -> This will make the system more understandable and flexible




   Vakgroep Informatietechnologie – Onderzoeksgroep IBCN            p. 12
Write an effective Use Case: eBay
STEP 4. Create a use case index
-> Every use case has attributes to himself and to the project
-> Project level:
          - Technical complexity: High Medium or Low
          - Business priority
-> Make a selection of scenarios for elaboration (in scope) based on
the combined weight of complexity & priority.
-> It will serve as a master inventory to help write effective use cases
   for the requirements phase of the project




    Vakgroep Informatietechnologie – Onderzoeksgroep IBCN            p. 13
Write an effective Use Case: eBay
STEP 5. Identify the key components of your use case
->The actual use case is a textual & graphical representation
illustrating a sequence of events. There are several components of a
use case which we will review
-> In this table, you get a basic understanding of what is in the use
    case and review each element as you progress through your use
    cases
                Use Case Element      Description
                Use Case Number       ID to represent your use case
                Use Case Name         The name of your use case, keep it short and sweet
                Use Case Description Elaborate more on the name, in paragraph form.
                Primary Actor         Who is the main actor that this use case represents
                Precondition          What preconditions must be met before this use case can start
                Trigger               What event triggers this use case
                                      The basic flow should be the events of the use case when everything
                                      is perfect; there are no errors, no exceptions. This is the "happy day
                Basic Flow
                                      scenario". The exceptions will be handled in the "Alternate Flows"
                                      section.
                Alternate Flows       The most significant alternatives and exceptions

   Vakgroep Informatietechnologie – Onderzoeksgroep IBCN                                               p. 14
Write an effective Use Case: eBay
STEP 6. Name and briefly describe your use case
->start creating your use case
->use plain English and keep it simple!


Use Case Number:           1
Use Case Name:             Buyer Places a Bid

                           An EBAY buyer has identified an item they wish to buy,
Description:               so they will place a bid for an item with the intent of
                           winning the auction and paying for the item.




     Vakgroep Informatietechnologie – Onderzoeksgroep IBCN                     p. 15
Write an effective Use Case
STEP 7. Create the use case basic flow
->this represents the most important course of events
-> No errors or exceptions
 use UML Sequence diagrams
     SYSTEM LEVEL &
         BLACK BOX




STEP 8. Create the use case alternate flow
->An exception or error flow to any line item in your basic flow
-> An additional flow, a flow that COULD happen
   (example: While a costumer places an order, their credit card failed)

    Vakgroep Informatietechnologie – Onderzoeksgroep IBCN                  p. 16
Write an effective Use Case

STEP 9. Consolidate and create the use case diagram




   Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 17
Scenario document – use case part
 Use case diagram: UML
 Use case index: TEXT
 Use case description for the top 3
  scenario’s: TEXT + UML
       sunny day
       rainy day




Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 18
Visio: Use Cases – Modeling tool

For modeling the Use Cases, we use the program
“Visio”
Athena: -> Office -> Extra -> Visio 2010

 If you want the right “Shapes”:
         Download the stencil from www.softwarestencils.com/uml
         Open stencil in Visio
         Use the right shapes




   Vakgroep Informatietechnologie – Onderzoeksgroep IBCN          p. 19
Agile Resources


 UML    & Agile:
     www.agilemodeling.com/essays/umlDiagrams.htm
 Use   Cases
   www.agilemodeling.com/artifacts/useCaseDiagram.htm
   Use case template: Minerva

 Sequence            Diagrams:
     www.agilemodeling.com/artifacts/sequenceDiagram.htm




   Vakgroep Informatietechnologie – Onderzoeksgroep IBCN   p. 20

More Related Content

Similar to Ws002 use cases

3Requirements.ppt
3Requirements.ppt3Requirements.ppt
3Requirements.ppt
KUMKUMOKUSSIA
 
RTDesignWithUMLUseCase.ppt
RTDesignWithUMLUseCase.pptRTDesignWithUMLUseCase.ppt
RTDesignWithUMLUseCase.ppt
Shashikanth
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagramsjsm1979
 
Immutable Data and TypeScript in an Ember.js Application
Immutable Data and TypeScript in an Ember.js ApplicationImmutable Data and TypeScript in an Ember.js Application
Immutable Data and TypeScript in an Ember.js Application
Bill Heaton
 
ch04lect1.ppt
ch04lect1.pptch04lect1.ppt
ch04lect1.ppt
vrushalikadam23
 
SADCW_7e_Chapter03.pptx
SADCW_7e_Chapter03.pptxSADCW_7e_Chapter03.pptx
SADCW_7e_Chapter03.pptx
SiphiweMakaNtandOlwe
 
Oopp Lab Work
Oopp Lab WorkOopp Lab Work
Oopp Lab Work
Heather Dionne
 
How to Complete a Use Case Templlate with MS Word
How to Complete a Use Case Templlate with MS WordHow to Complete a Use Case Templlate with MS Word
How to Complete a Use Case Templlate with MS Word
Leslie Munday
 
Software requirementspecification
Software requirementspecificationSoftware requirementspecification
Software requirementspecification
oshin-japanese
 
Моделирование бизнес-процессов на UML
Моделирование бизнес-процессов на UMLМоделирование бизнес-процессов на UML
Моделирование бизнес-процессов на UML
Olya Kollen, PhD
 
From Use case to User Story
From Use case to User StoryFrom Use case to User Story
From Use case to User Story
Kunta Hutabarat
 
Nt1320 Unit 6
Nt1320 Unit 6Nt1320 Unit 6
Nt1320 Unit 6
Ashley Jean
 
scenario testing in software testing
 scenario testing in software testing scenario testing in software testing
scenario testing in software testing
durgaaarthi
 
Aspect-Oriented Instrumentation for Capturing Task- Based Event Traces
Aspect-Oriented Instrumentation for Capturing Task- Based Event TracesAspect-Oriented Instrumentation for Capturing Task- Based Event Traces
Aspect-Oriented Instrumentation for Capturing Task- Based Event Traces
IDES Editor
 
OOAD U1.pptx
OOAD U1.pptxOOAD U1.pptx
OOAD U1.pptx
anguraju1
 
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelCHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
mohamed khalaf alla mohamedain
 

Similar to Ws002 use cases (20)

3Requirements.ppt
3Requirements.ppt3Requirements.ppt
3Requirements.ppt
 
RTDesignWithUMLUseCase.ppt
RTDesignWithUMLUseCase.pptRTDesignWithUMLUseCase.ppt
RTDesignWithUMLUseCase.ppt
 
Intro to UML - Use Case diagrams
Intro to UML - Use Case diagramsIntro to UML - Use Case diagrams
Intro to UML - Use Case diagrams
 
Immutable Data and TypeScript in an Ember.js Application
Immutable Data and TypeScript in an Ember.js ApplicationImmutable Data and TypeScript in an Ember.js Application
Immutable Data and TypeScript in an Ember.js Application
 
ch04lect1.ppt
ch04lect1.pptch04lect1.ppt
ch04lect1.ppt
 
B Fn As
B Fn AsB Fn As
B Fn As
 
SADCW_7e_Chapter03.pptx
SADCW_7e_Chapter03.pptxSADCW_7e_Chapter03.pptx
SADCW_7e_Chapter03.pptx
 
Oopp Lab Work
Oopp Lab WorkOopp Lab Work
Oopp Lab Work
 
Ooad quest and ans
Ooad quest and ansOoad quest and ans
Ooad quest and ans
 
How to Complete a Use Case Templlate with MS Word
How to Complete a Use Case Templlate with MS WordHow to Complete a Use Case Templlate with MS Word
How to Complete a Use Case Templlate with MS Word
 
Software requirementspecification
Software requirementspecificationSoftware requirementspecification
Software requirementspecification
 
Моделирование бизнес-процессов на UML
Моделирование бизнес-процессов на UMLМоделирование бизнес-процессов на UML
Моделирование бизнес-процессов на UML
 
From Use case to User Story
From Use case to User StoryFrom Use case to User Story
From Use case to User Story
 
Nt1320 Unit 6
Nt1320 Unit 6Nt1320 Unit 6
Nt1320 Unit 6
 
scenario testing in software testing
 scenario testing in software testing scenario testing in software testing
scenario testing in software testing
 
Aspect-Oriented Instrumentation for Capturing Task- Based Event Traces
Aspect-Oriented Instrumentation for Capturing Task- Based Event TracesAspect-Oriented Instrumentation for Capturing Task- Based Event Traces
Aspect-Oriented Instrumentation for Capturing Task- Based Event Traces
 
Use Cases
Use CasesUse Cases
Use Cases
 
Use Cases
Use CasesUse Cases
Use Cases
 
OOAD U1.pptx
OOAD U1.pptxOOAD U1.pptx
OOAD U1.pptx
 
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddelCHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
CHAPTER 6 REQUIREMENTS MODELING: SCENARIO based Model , Class based moddel
 

More from Frank Gielen

I mindsx4howest v2
I mindsx4howest v2I mindsx4howest v2
I mindsx4howest v2
Frank Gielen
 
I mindsx learning analytics v2
I mindsx learning analytics v2I mindsx learning analytics v2
I mindsx learning analytics v2
Frank Gielen
 
You have been MOOCed
You have been MOOCedYou have been MOOCed
You have been MOOCed
Frank Gielen
 
Beyond MOOCs ctd. (2015)
Beyond MOOCs ctd. (2015)Beyond MOOCs ctd. (2015)
Beyond MOOCs ctd. (2015)
Frank Gielen
 
Beyond MOOCs (2014)
Beyond MOOCs (2014)Beyond MOOCs (2014)
Beyond MOOCs (2014)
Frank Gielen
 
The Research Canvas
The Research CanvasThe Research Canvas
The Research Canvas
Frank Gielen
 
Defining the opportunity 2013
Defining the opportunity 2013Defining the opportunity 2013
Defining the opportunity 2013
Frank Gielen
 
KPMG Legal and Tax September 2013
KPMG Legal and Tax September 2013KPMG Legal and Tax September 2013
KPMG Legal and Tax September 2013Frank Gielen
 
Dare 2 Start - Course outline
Dare 2 Start - Course outlineDare 2 Start - Course outline
Dare 2 Start - Course outline
Frank Gielen
 
Delaware presentation nov2012
Delaware presentation nov2012Delaware presentation nov2012
Delaware presentation nov2012Frank Gielen
 
Sa 008 patterns
Sa 008 patternsSa 008 patterns
Sa 008 patterns
Frank Gielen
 
Sa 008 architecture_views
Sa 008 architecture_viewsSa 008 architecture_views
Sa 008 architecture_viewsFrank Gielen
 
Sa 007 availability
Sa 007 availabilitySa 007 availability
Sa 007 availabilityFrank Gielen
 
Pr 005 qa_workshop
Pr 005 qa_workshopPr 005 qa_workshop
Pr 005 qa_workshop
Frank Gielen
 
Sa 006 modifiability
Sa 006 modifiabilitySa 006 modifiability
Sa 006 modifiability
Frank Gielen
 
The Phonegap Architecture
The Phonegap ArchitectureThe Phonegap Architecture
The Phonegap Architecture
Frank Gielen
 
VC Do's and Don'ts - Jurgen Ingels
VC Do's and Don'ts  - Jurgen Ingels VC Do's and Don'ts  - Jurgen Ingels
VC Do's and Don'ts - Jurgen Ingels Frank Gielen
 
Debt & Equity - Wouter Haerick
Debt & Equity - Wouter HaerickDebt & Equity - Wouter Haerick
Debt & Equity - Wouter HaerickFrank Gielen
 

More from Frank Gielen (20)

I mindsx4howest v2
I mindsx4howest v2I mindsx4howest v2
I mindsx4howest v2
 
I mindsx learning analytics v2
I mindsx learning analytics v2I mindsx learning analytics v2
I mindsx learning analytics v2
 
You have been MOOCed
You have been MOOCedYou have been MOOCed
You have been MOOCed
 
Beyond MOOCs ctd. (2015)
Beyond MOOCs ctd. (2015)Beyond MOOCs ctd. (2015)
Beyond MOOCs ctd. (2015)
 
Beyond MOOCs (2014)
Beyond MOOCs (2014)Beyond MOOCs (2014)
Beyond MOOCs (2014)
 
The Research Canvas
The Research CanvasThe Research Canvas
The Research Canvas
 
Defining the opportunity 2013
Defining the opportunity 2013Defining the opportunity 2013
Defining the opportunity 2013
 
KPMG Legal and Tax September 2013
KPMG Legal and Tax September 2013KPMG Legal and Tax September 2013
KPMG Legal and Tax September 2013
 
Dare 2 Start - Course outline
Dare 2 Start - Course outlineDare 2 Start - Course outline
Dare 2 Start - Course outline
 
Delaware presentation nov2012
Delaware presentation nov2012Delaware presentation nov2012
Delaware presentation nov2012
 
Pr crc
Pr crcPr crc
Pr crc
 
Sa 008 patterns
Sa 008 patternsSa 008 patterns
Sa 008 patterns
 
Sa 009 add
Sa 009 addSa 009 add
Sa 009 add
 
Sa 008 architecture_views
Sa 008 architecture_viewsSa 008 architecture_views
Sa 008 architecture_views
 
Sa 007 availability
Sa 007 availabilitySa 007 availability
Sa 007 availability
 
Pr 005 qa_workshop
Pr 005 qa_workshopPr 005 qa_workshop
Pr 005 qa_workshop
 
Sa 006 modifiability
Sa 006 modifiabilitySa 006 modifiability
Sa 006 modifiability
 
The Phonegap Architecture
The Phonegap ArchitectureThe Phonegap Architecture
The Phonegap Architecture
 
VC Do's and Don'ts - Jurgen Ingels
VC Do's and Don'ts  - Jurgen Ingels VC Do's and Don'ts  - Jurgen Ingels
VC Do's and Don'ts - Jurgen Ingels
 
Debt & Equity - Wouter Haerick
Debt & Equity - Wouter HaerickDebt & Equity - Wouter Haerick
Debt & Equity - Wouter Haerick
 

Recently uploaded

GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
Neo4j
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
RinaMondal9
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
Neo4j
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
Uni Systems S.M.S.A.
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 

Recently uploaded (20)

GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
GraphSummit Singapore | Graphing Success: Revolutionising Organisational Stru...
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
Free Complete Python - A step towards Data Science
Free Complete Python - A step towards Data ScienceFree Complete Python - A step towards Data Science
Free Complete Python - A step towards Data Science
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
GraphSummit Singapore | Neo4j Product Vision & Roadmap - Q2 2024
 
Microsoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdfMicrosoft - Power Platform_G.Aspiotis.pdf
Microsoft - Power Platform_G.Aspiotis.pdf
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 

Ws002 use cases

  • 1. Software Engineering Prof.Dr.ir. F. Gielen Functional Requirements Use cases & System Scenarios Vakgroep Informatietechnologie – IBCN
  • 2. Use Cases & Scenarios  Use cases, sometimes called user scenarios, are narratives or flow diagrams that describe how users will interact with a system.  Some people also refer to them as task analysis or user flows. Regardless of what you call them, the idea is the same:  Illustrate to people scenarios or specific tasks which users will perform on the system.  Illustrate how the system interacts with other systems. Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 2
  • 3. Use Case Diagram  Use case diagrams are created to visualize the relationships between actors and use cases  Use cases are a visualization of the functional requirements of a system Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 3
  • 4. Example : Use Case Diagram Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 4
  • 5. Actors & user profiles (persona’s)  An actor is someone or something that must interact with the system under development  Before starting any project it is imperative to understand the target audiences. User profiles (also referred to as user personas) are an excellent way to document and illustrate realistic sample users. Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 5
  • 6. Use Cases A use case is a pattern of behavior the system exhibits  Each use case is a sequence of related transactions performed by an actor and the system in a dialogue  Actors are examined to determine their needs  Passenger – Search for Flights, Make Reservation, Pay for Flight Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 6
  • 7. Documenting Use Cases A use case specification document is created for each use case  Written from an actor point of view  Details what the system must provide to the actor when the use case is executed  Typical contents  How the use case starts and ends  Normal flow of events  Alternate flow of events  Exceptional flow of events Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 7
  • 8. Template for Use Cases  Textual description in prose  Priority|Complexity (High, Medium or Low)  Related informal requirements  Actors  Events (triggering, during execution, ...)  Preconditions  Main success scenario (MSS - Diagram)  Extensions on the MSS  Postconditions after success and failure  Related use cases Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 8
  • 9. System Sequence diagram Black Box Sequence Diagram Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 9
  • 10. Write an effective Use Case : eBay STEP 1. Define your use case actors -> An actor can be a person or a system Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 10
  • 11. Write an effective Use Case: eBay STEP 2. Define your use case Actor Goals & Needs -> What are the goals & needs of each actor -> Create initial list of high level use cases -> Effective use cases should have understandable actors and goals Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 11
  • 12. Write an effective Use Case: eBay STEP 3. Identify reuse opportunity for use cases -> Identify the duplicated behavior -> Create a generic actor or a generic use case -> This will make the system more understandable and flexible Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 12
  • 13. Write an effective Use Case: eBay STEP 4. Create a use case index -> Every use case has attributes to himself and to the project -> Project level: - Technical complexity: High Medium or Low - Business priority -> Make a selection of scenarios for elaboration (in scope) based on the combined weight of complexity & priority. -> It will serve as a master inventory to help write effective use cases for the requirements phase of the project Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 13
  • 14. Write an effective Use Case: eBay STEP 5. Identify the key components of your use case ->The actual use case is a textual & graphical representation illustrating a sequence of events. There are several components of a use case which we will review -> In this table, you get a basic understanding of what is in the use case and review each element as you progress through your use cases Use Case Element Description Use Case Number ID to represent your use case Use Case Name The name of your use case, keep it short and sweet Use Case Description Elaborate more on the name, in paragraph form. Primary Actor Who is the main actor that this use case represents Precondition What preconditions must be met before this use case can start Trigger What event triggers this use case The basic flow should be the events of the use case when everything is perfect; there are no errors, no exceptions. This is the "happy day Basic Flow scenario". The exceptions will be handled in the "Alternate Flows" section. Alternate Flows The most significant alternatives and exceptions Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 14
  • 15. Write an effective Use Case: eBay STEP 6. Name and briefly describe your use case ->start creating your use case ->use plain English and keep it simple! Use Case Number: 1 Use Case Name: Buyer Places a Bid An EBAY buyer has identified an item they wish to buy, Description: so they will place a bid for an item with the intent of winning the auction and paying for the item. Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 15
  • 16. Write an effective Use Case STEP 7. Create the use case basic flow ->this represents the most important course of events -> No errors or exceptions use UML Sequence diagrams SYSTEM LEVEL & BLACK BOX STEP 8. Create the use case alternate flow ->An exception or error flow to any line item in your basic flow -> An additional flow, a flow that COULD happen (example: While a costumer places an order, their credit card failed) Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 16
  • 17. Write an effective Use Case STEP 9. Consolidate and create the use case diagram Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 17
  • 18. Scenario document – use case part  Use case diagram: UML  Use case index: TEXT  Use case description for the top 3 scenario’s: TEXT + UML  sunny day  rainy day Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 18
  • 19. Visio: Use Cases – Modeling tool For modeling the Use Cases, we use the program “Visio” Athena: -> Office -> Extra -> Visio 2010  If you want the right “Shapes”: Download the stencil from www.softwarestencils.com/uml Open stencil in Visio Use the right shapes Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 19
  • 20. Agile Resources  UML & Agile:  www.agilemodeling.com/essays/umlDiagrams.htm  Use Cases  www.agilemodeling.com/artifacts/useCaseDiagram.htm  Use case template: Minerva  Sequence Diagrams:  www.agilemodeling.com/artifacts/sequenceDiagram.htm Vakgroep Informatietechnologie – Onderzoeksgroep IBCN p. 20