stories, defects and tasks

21
Stories, Defects, Tasks and Tests

Upload: walther-lalk

Post on 14-Jan-2017

111 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Stories, defects and tasks

Stories, Defects, Tasks and Tests

Page 2: Stories, defects and tasks

3 types of work items

Page 3: Stories, defects and tasks

User Story

Page 4: Stories, defects and tasks

A new piece of functionality

Page 5: Stories, defects and tasks

Must always add value to the

product

Page 6: Stories, defects and tasks

3 C’sCa

rdConversation

Confirmatio

n

Written reminder about the feature Details about the feature that we get by talking to users

How to we know that we’ve built the right thing?

In order to get some cashas a bank customerI want to withdraw money from an ATM

“Gherkin” format List formatGiven a jpg or png imageWhen I upload itThen it should be savedAnd it should be resized

Accepts JPG imagesAccepts PNG images

Resizes to decent size

Be careful not to describe the “How”

Page 7: Stories, defects and tasks

INVESTIndependent

The user story should be self-contained, in a way that there is no inherent dependency on another user story.Negotiable

User stories, up until they are part of an iteration, can always be changed and rewrittenValuable

A user story must deliver value to the end userEstimable

You must always be able to estimate the size of a user storySmall

User stories should not be so big as to become impossible to plan with a certain level of certaintyTestable

The user story must provide the necessary information to make test development possible

Page 8: Stories, defects and tasks

Defect

Page 9: Stories, defects and tasks

A previously “done”

feature is not working as expected

Page 10: Stories, defects and tasks

Needs enough detail that somebody who knows nothing about

the product can reproduce the issue

Page 11: Stories, defects and tasks

Detailed steps to reproduce

What did you expect to happen?

What actually happened?

Screenshots (Before and after)

Page 12: Stories, defects and tasks

Task

Page 13: Stories, defects and tasks

Defines the solution to the

problem

Page 14: Stories, defects and tasks

Defects and Stories have

tasksTasks must belong to

something

Page 15: Stories, defects and tasks

Defects/bugs for open stories are

tasks

Page 16: Stories, defects and tasks

SMARTSpecific

What? Why? Who? Where? Which?Measurable

How much? How many? How long?

AssignableMust be completable

by a single personRelevantWorthwhile? Right time?

Time-boundWhen? Can it be done in

the time available?

Page 17: Stories, defects and tasks

Acceptance Tests

Page 18: Stories, defects and tasks

Acceptance Criteria describe what needs to be

built“Build the right thing”Acceptance Tests describe how it

was built“Build the thing right”

Page 19: Stories, defects and tasks

Two forms of Acceptance

Criteria“Gherkin” formatMore descriptive, but easier to incorrectly specify implementation details

List formatEasier to write, and easier

to see gaps

Given a jpg or png imageWhen I upload itThen it should be savedAnd it should be resized

Accepts JPG imagesAccepts PNG images

Resizes to decent size

Should never contain

implementation details!

Page 20: Stories, defects and tasks

Acceptance Tests usually only use the “Gherkin”

format

Page 21: Stories, defects and tasks

Example!Acceptance criteria

Acceptance test (Scenario)Given a baby animal younger

than its recommended selling ageWhen we try to sell itThen we should be told it’s too young.

Given a rabbit called Fluffy who is 1 ½ months old

When we try to sell FluffyThen we should be told Fluffy is

too young.We should be prevented from selling animals younger than the recommended age

Given a puppy called Fang who is 1 month old

When we try to sell FangThen we should be told Fang is

too young.