From User Stories to Use Cases: Tell the Full Story 1 Agenda - - PowerPoint PPT Presentation

from user stories to use cases tell the full story
SMART_READER_LITE
LIVE PREVIEW

From User Stories to Use Cases: Tell the Full Story 1 Agenda - - PowerPoint PPT Presentation

From User Stories to Use Cases: Tell the Full Story 1 Agenda User Stories Benefits Limitations Use Cases What How Why Actors and Personas Bringing it all together Learn more 2 Lauren


slide-1
SLIDE 1

From User Stories to Use Cases: Tell the Full Story

1

slide-2
SLIDE 2

Agenda

  • User Stories

○ Benefits ○ Limitations

  • Use Cases

○ What ○ How ○ Why

  • Actors and Personas
  • Bringing it all together
  • Learn more

2

slide-3
SLIDE 3

Lauren Kelly

Senior Engagement Manager, Migrations Lead lauren.kelly@pantheon.io

3

slide-4
SLIDE 4

What is a User Story

4

A content editor So that the correct images are used for an event Wants to associate images with events

slide-5
SLIDE 5

User Stories, (too) simplified As a <User Role> I want to <do something> As a content editor, I want to associate images with events.

slide-6
SLIDE 6

User Stories - proper form is important

As a <User Role> I want to <do something> so that <value>. Answering ‘Why’ helps determine if/when more information is needed. As a content editor, I want to associate images with events so that the correct images are used for any given event.

slide-7
SLIDE 7

User Stories have limitations...

Unless standards are enforced, they can be ambiguous: As a content editor, I want to associate images with events so that the correct images are used for any given event. What is the real purpose of this story? Could you deliver this with 100% confidence that it would be accepted? Could you accurately estimate this work?

slide-8
SLIDE 8

User Stories need to be specific

As a content editor, I want to tag images with their associated event, so that they can be consistently used in multiple locations on the site reducing the chance of using the incorrect image for an event. This is better. The scope of the story is configuring a system of tagging

  • images. It needs to be in a method that allows use in a variety of ways -

but configuring those uses is not in scope. Would you be more confident in estimating and delivering this story?

slide-9
SLIDE 9

Communication

User Stories - Benefits

Planning Focus on the task level

9

slide-10
SLIDE 10

Planning

The work within a user story can be estimated and reliably used for sprint planning.

slide-11
SLIDE 11

Communication

They make it easy to collect information from non-technical stakeholders, since they are in ‘Plain English’.

slide-12
SLIDE 12

Focus

They capture the individual piece of work to be implemented. They are a great help for a developer in keeping focused

  • n their specific work for any

given sprint.

slide-13
SLIDE 13

User Stories have limitations...

  • User Stories are meant to be selected for sprint development…and

then discarded.

  • If teams are inconsistent in meeting requirements for user stories,

they allow for scope creep.

  • It is far too easy to slip into using user stories as a checklist for work

completed, without looking at the big picture.

slide-14
SLIDE 14

Building to a Checklist

Our story doesn’t talk about any other parts of the system. It relies on the team implementing the feature to understand the how the parts interact with the whole. Building piece by piece without looking at the system as a whole is a fantastic way to turn a project into a Frankenstein-style

  • monster. New stories are added
  • n to make up for shortcomings
  • f past sprints, new team

members have their own ideas of how things should work...

Creating a Monster

14

slide-15
SLIDE 15

There are better ways

slide-16
SLIDE 16

16

Looking at the big picture

Use Cases

slide-17
SLIDE 17

Let’s back up a bit... If we consider each project a story…

Brilliant art by Randal Munroe XKCD https://xkcd.com/657/

slide-18
SLIDE 18

Imagine if you didn’t know all the characters and their storylines...

Brilliant art by Randal Munroe XKCD https://xkcd.com/657/

slide-19
SLIDE 19

You would have to rewrite entire sections every time a new character came through.

Brilliant art by Randal Munroe XKCD https://xkcd.com/657/

slide-20
SLIDE 20

Use Cases Use Cases provide these storylines. Who will be doing What things. When and Where will they be doing these things?

slide-21
SLIDE 21

Use Cases Use cases can be used to ensure that new work does not require unexpected reworking of existing work.

slide-22
SLIDE 22

All the systems

Use Cases

All the actors All the teams

22

slide-23
SLIDE 23

Yes, but what is a Use Case?

Use Cases are usually recorded in a few ways:

  • A diagram of All the Interactions between an Actor and Systems
slide-24
SLIDE 24

Use Cases for Event Registration

Site Visitor Create Event Our Awesome Website View Event Details Publish Event Review Registrants View Calendar Content Editor Event Coordinator Social Media Share Register for Event Outside Registration Manager Edit Event

slide-25
SLIDE 25

Yes, but what is a Use Case?

  • A list including

⌾ Steps performed by the Primary Actor to achieve a Goal ⌾ Alternative steps ✓ Options you want users to have ✓ Options users might mistakenly make

slide-26
SLIDE 26

Site Visitor Registers for an Event

Steps:

1.

Site Visitor comes to site homepage

2.

The Site displays upcoming events

3.

Site Visitor clicks on the desired event

4.

The Site displays Event Information

5.

Site Visitor clicks to register for event

6.

The Site sends the Site Visitor to the login screen

7.

Site Visitor completes log in

8.

The Site sends the Site Visitor back to the registration page

9.

Site Visitor verifies contact information

10.

Site Visitor clicks to submit registration

11.

The Site sends a confirmation email to the Site Visitor

slide-27
SLIDE 27

Site Visitor Registers for an Event

Alternative flows:

  • 5a. The Site displays that Registration is Full for the Event.
  • 9a. Site Visitor updates contact information
slide-28
SLIDE 28

Yes, but what is a Use Case?

  • A document including

⌾ Primary Actor ⌾ Goal ⌾ Pre-conditions ⌾ Post-conditions ⌾ Definition of success

slide-29
SLIDE 29

Site Visitor Registers for an Event

Actor: Site Visitor Success: The Site Visitor is able to register without assistance from support Preconditions: An event occuring in the future has been created and published. The event has open registration space available. The Site Visitor has an existing account on the site. Postconditions: The Site Visitor is registered for the selected event. The registration count for the event is increased by 1.

slide-30
SLIDE 30

How do we know the actors?

In a Use Case, we have actors taking action - but how do we know what actions they’ll take? We can discover these through the creation of Personas

30

I do stufg!

slide-31
SLIDE 31

Personas: What to include

  • Name
  • Job
  • Demographics (a/s/l, income class, family

background)

  • Skills
  • Representative quote
  • Picture
  • Goals, related to the project
  • Previous Experience
  • Motivations
  • Frustrations

A persona is a fictional character with a whole life outside of your project.

slide-32
SLIDE 32
slide-33
SLIDE 33

Personas

  • Name: Ms Emily Johnson

(Emmy)

  • Job: Graduate Student, F/T,

Music Education, dog-walker P/T

  • Demographics:

25/F/Philadelphia, comes from a middle-class, midwestern family

  • Skills: teaching, music

composition, working with animals

  • Goals: To find hosting for her

dog-walking business website

  • Motivations: Afgordable options, Ease
  • f use, support, stability
  • Frustrations: Technical jargon, paying

for things she doesn’t need, limited time for troubleshooting

  • Previous Experience: Her friend

helped her build the website on her computer, new to web site ownership, new to hosting. I’ll never stop learning

  • r sharing what I’ve

learned.

slide-34
SLIDE 34

Personas -> Actors

We now have a picture of a specific type of user coming to the site. Ideally we would want a few examples of each persona group. We can collect these through research While our Actor is still known as Site Visitor in our use cases, when we are coming up with what actions the Site Visitor might take, we have examples in mind.

slide-35
SLIDE 35

Bringing it all together to tell the full story

Once we build out the Use Cases, we’ll have a complete view of the project:

  • Detailed, deliverable User stories can be added to each Use Case
  • Sprints can be planned better, fewer blockers
  • The scope of the project has been thoroughly defined, but can be

easily reduced or increased in estimable ways.

  • We have an outline for QA/Testing
  • We have shareable documentation on the project
slide-36
SLIDE 36

What are the downsides?

  • It requires the team to slow down.
  • It is time consuming to do it right.
  • You need a system to keep all this product documentation together,

accessible, and alive.

slide-37
SLIDE 37

The pursuit of perfection often impedes improvement.

George Will

slide-38
SLIDE 38

If I waited for perfection... I would never write a word.

Margaret Atwood

slide-39
SLIDE 39

Kickofg!

At some point you have to stop documenting and start doing. When the team find something that was missed:

  • Add it in
  • Check to make sure it isn’t afgecting anything else
  • Update other afgected areas
  • Adjust upcoming sprints with new user stories
  • Keep Being Awesome and Tell the Whole Story!
slide-40
SLIDE 40

Recommended Resources

  • Usability.gov on Use Cases:

https://www.usability.gov/how-to-and-tools/methods/use-cases.html

  • Usability.gov on Personas:

https://www.usability.gov/how-to-and-tools/methods/personas.html

  • Gatherspace: http://www.gatherspace.com/use-case-examples/
  • Wikipedia: https://en.wikipedia.org/wiki/Use_case
  • Writing Efgective Use Cases by Alistair Cockburn:

https://www.amazon.com/Writing-Efgective-Cases-Alistair-Cockburn/dp/02017022 58

slide-41
SLIDE 41

41

Thank You!