low tech high impact sprint planning -...

63
AUTHOR OF ‘BDD IN ACTION’ @wakaleo www.johnfergusonsmart.com Low Tech High Impact Sprint Planning The fast track from stories to acceptance criteria

Upload: others

Post on 31-Jul-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

AUTHOR OF ‘BDD IN ACTION’

@wakaleo

www.johnfergusonsmart.com

Low Tech High Impact Sprint PlanningThe fast track from stories to acceptance criteria

Page 2: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

What we will cover

BDD and Sprint Planning

Acceptance Criteria and the Definition of Done

Writing acceptance criteria in Gherkin

Acceptance criteria with Feature Mapping

Page 3: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

http://bit.ly/feature-mapping-cheatsheet

Before we start…

Download the Cheatsheet

Page 4: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

BDD and Sprint Planningin a nutshell

Page 5: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

Delivered

Asked for Needed

The problem with software

Business Value

Unused features

Missed opportunity

“Shopping list” features

Unnecessary features

Page 6: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

I asked for I need Deliverable Options

A login form

a way for users to securely access their accounts

for users to be sure their personal data is safe

An application-specific authentication system

Enterprise Single Sign On

Sign on with Google, Facebook, Twitter…

Page 7: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

I asked for I need Deliverable Options

A VAT dropdown list

to charge the correct VAT rates for my customers

to keep track of VAT in compliance with EU rules

Detect VAT option from customer profile

Ask more user-friendly VAT-related questions

Register company in the Channel

Islands

Page 8: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

I asked for I need Deliverable Options

A keyword search ? ?

Page 9: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

I asked for I need Deliverable Options

to find a specific article Full-text search

Show related productsto discover products I might

be interested in buying

A keyword search

Search for related terms

Page 10: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewWhat Else / What If

Why

Three levels of thinking

What What I asked for

Why do I need it?

What else could we do? What else could happen?

Page 11: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewOptions / Risks

(What Else / What If)

Value (Why)

Three levels of thinking

Solution(What/How) A login form

a way for users to securely access their accounts

Sign on with Google, Facebook, Twitter…

What if you forget your password

Page 12: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

The Traditional Way

Dev team

Test team

As a corporate frequent flyer I want to earn points on my business flights So that I can get discounts on my holiday flights

Business

Feedback

Page 13: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewValidation

The BDD Way

Collaboration

As a corporate frequent flyer I want to earn points on my business flights So that I can get discounts on my holiday flights

Business

Scenario: First class earns double points Given London-Paris in economy earns 100 points When I fly from London to Paris in First Class Then I should earn 200 points

SHARED UNDERSTANDING

Automation

Page 14: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewShared

Understanding and Automated

Validation

Automated Acceptance

CriteriaA Shared

Understanding Validation

Collaborative Requirements

DiscoveryLiving

Documentation

Regression Tests

Change with confidence

Effective Automation

Sustainable Automation

Executable Requirements

Story Mapping

3 amigos

Acceptance Criteria

Feature Mapping

Example Mapping

Impact Mapping

Sprint Planning

Gherkin Format

Page 15: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewShared

Understanding and Automated

Validation

Automated Acceptance

CriteriaA Shared

Understanding Validation

Collaborative Requirements

DiscoveryLiving

Documentation

Regression Tests

Change with confidence

Effective Automation

Sustainable Automation

Executable Requirements

Story Mapping

3 amigos

Acceptance Criteria

Feature Mapping

Example Mapping

Impact Mapping

Sprint Delivery

Gherkin Format

Sprint Planning

Page 16: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Acceptance Criteria and the definition of done

Page 17: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Acceptance Criteria

✓ Define the Definition of Done

✓ Functional and non-functional requirements

✓ Expressed in business language

✓ Describe expected outcomes, not inputs

✓ Describe intent, not solution (what, not how)

✓ Easily testable

✓ Single responsibility

Page 18: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Acceptance Criteria

should be simple

✓ Simple phrases

- “A teacher can return an essay for correction when the average mark is under 7”

✓ Can be non-functional

- “A teacher should be able to open and record the marks of an essay in less than 30 seconds on average with a load of 1000 simultaneous users”

Page 19: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Examples are concrete

scenarios that illustrate rules

✓ “The one where…”

- “The one where the student submits a bad essay”

✓ Given/When/Then

- “Given Stu submits an essay with an average mark of 4 When Tess records the marks Then she has the option of returning the essay to Stu”

Page 20: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Writing Acceptance Criteria in Gherkin

Page 21: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

GherkinThe Lingua Franca of BDD

Collaboration

Automation

Feature: Earning Frequent Flyer points through flights

Scenario: Economy flights earn points by distance Flyers earn 1 point per kilometre travelled Given the distance from London to Paris is 344 km When I fly from London to Paris in Economy Then I should earn 344 points

Page 22: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewScenario: Economy flights earn points by distance Given the distance from London to Paris is 344 km When I fly from London to Paris in Economy Then I should earn 344 points

Preconditions

Action to illustrate

Expected outcome

Page 23: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewScenario Outline: Economy flights earn points by distance Given the distance from <departure> to <dest> is <distance> km When I fly from <departure> to <destination> in <class> class Then I should earn <points> points

Examples: | departure | dest | distance | class | points | | Paris | London | 344 | economy | 344 | | Paris | London | 344 | first | 688 |

A table of examples

Page 24: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Let’s give it a try!

Page 25: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Workshop Time!

As a regular business traveller

I want to earn privileges when I fly

So that I can take my family on holiday more often

Page 26: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Retrospective • How much functionality did you cover?

• How would you judge the quality of the scenarios you wrote?

• How well did it help you understand the problem domain?

• How many surprises did you find?

Page 27: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

In the last exercise…Did you spend more time

collaborating or formalising?

Page 28: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

establishes validatesShared Understanding

Collaboration Formalisation

Sprint Planning

Page 29: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

establishes validatesShared Understanding

Collaboration Formalisation

Sprint Delivery

Page 30: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Now for something differentStep Away From The Gherkin

Page 31: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Understanding a requirement

As a Frequent Flyer member I want to see where I can travel with my current point balance So that I can plan my next holiday

Page 32: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

As a Frequent Flyer member I want to see where I can travel with my current point balance So that I can plan my next holiday

“The flights available depend on the number of points” “Rule”

“The one where a member has 10000 points” “Example”

“Jackie has 10000 points, and lives in London. “Steps”“She chooses to view her flight options.”

“She can choose from flights to Edinburgh, Paris and Amsterdam”

Page 33: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

As a Frequent Flyer member I want to see where I can travel with my current point balance So that I can plan my next holiday

“The flights available depend on the number of points” “Rule”

“The one where a member has 10000 points” “Example”

“Jackie has 10000 points, and lives in London. “Steps”“She chooses to view her flight options.”

“She can choose from flights to Edinburgh, Paris and Amsterdam”

What if she lives somewhere else?

What if she wants to fly from another city?

Are these economy flights?

What if the wants to fly business?

What if she wants to book a flight for someone else?

Why these destinations?

Page 34: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Questions lead to learning

Why these destinations?

“The flights available depend on the number of points” (1 km distance for every 10 points)

New or clarified rules

points Edinburgh

1000

Paris Amsterdam

5000

10000

Yes

Yes

No

No

Yes Yes

NoNo

No

New or clarified examples

Page 35: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Feature Mapping

Page 36: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Rules explain ExamplesExamples illustrate RulesSteps explore Examples

Questions challenge everything

Four Principles

Page 37: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

List the rules you knowAsk for examples

Explore the steps that make up each exampleQuestion, challenge, expand

And Four Steps

Page 38: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Leave no assumption unchallenged

“If you do not know how to ask the right question, you discover nothing.”

- W. Edwards Deming

Page 39: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Basic Feature Mapping

Page 40: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

Let’s give it a go!

Page 41: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

Step 1) Find a rule

A rule

Page 42: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewStep 2) “Give me an example”

An Example

Steps or Tasks

A rule

Page 43: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

OverviewStep 3) “Generalise the steps”

General Steps or Tasks

An Example

Steps or Tasks

Page 44: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

Step 4) “Explore!”

What if Fred had fewer points?

Page 45: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

More Advanced Feature Mapping

Page 46: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

We call these steps ‘consequences’

A General Consequence

A Specific Consequence

Page 47: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

Another rule

Example for this rule

A Feature Map can have many rules

Page 48: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

Alternate flows

It can describe variations on similar scenarios

Page 49: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

QuestionsAnd it can record

uncertainty

Page 50: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Overview

Overview

Splitting Feature Maps

“Poi

nts

per d

estin

atio

n” s

tory

“Diff

eren

t tra

vel c

lass

es” s

tory

Page 51: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Let’s give it a try!

Page 52: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Workshop Time!

Class the following as stories, rules, tasks, steps or questions

Page 53: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Workshop Time!

Class the following as stories, rules, tasks, steps or questions

Page 54: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Workshop Time!

Organise the following cards into a sequence of high level tasks

Page 55: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Workshop Time!

Organise the following cards into a sequence of high level tasks

Page 56: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Workshop Time!

Organise the following cards into a sequence of detailed tasks

Page 57: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Workshop Time!

Organise the following cards into a sequence of detailed tasks

Page 58: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Workshop Time! As a regular business traveller

I want to earn privileges when I fly

So that I can take my family on holiday more often

Now build your own Feature Map!

Page 59: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Key Take Aways

Page 60: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Feature Mapping

Collaborative Iterative Exploratory

A requirements discovery practice that is…

Page 61: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Feature Mapping

Breadth Depth Context

Page 62: Low Tech High Impact Sprint Planning - AADaysaadays.pl/wp-content/uploads/2017/10/feature-mapping.pdf · Story Mapping 3 amigos Acceptance Criteria Feature Mapping Example Mapping

Feature Mapping

More precise than free-form

acceptance criteriaFaster than Gherkin Easy to automate