specification workshops - the missing link

39
Specification workshops – the missing link Gojko Adzic http://gojko.net [email protected] @gojkoadzic

Upload: gojkoadzic

Post on 15-Jan-2015

1.011 views

Category:

Technology


2 download

DESCRIPTION

Specification Workshops - The missing link from Agile Testing Days

TRANSCRIPT

Page 1: Specification Workshops - The Missing Link

Specification workshops – the missing link

Gojko Adzichttp://gojko.net

[email protected]@gojkoadzic

Page 2: Specification Workshops - The Missing Link

Here's what I thought...

When the order is in a “pending” state, we first check the account, and if approved move it to “confirmed” state

When the order is manually confirmed, it moves from the “pending” to “confirmed” state even if the account does not have enough funds

When the order is in a “pending” state for two days, we send an alert

Page 3: Specification Workshops - The Missing Link

Here is what they saw:

http://www.mrklingon.org/

ghorgh [the] [order] 'oH Daq [a] [“pending”] [state] maH wa'DIch [check] [the] [account] 'ej chugh [approved] vIH 'oH Daq [“confirmed”] [state] ghorgh [the] [order] 'oH [manually] [confirmed] 'oH vIHtaH vo' [the] [“pending”] Daq [“confirmed”] [state] 'ach chugh [the] [account] ta'taH ghobe' ghaj yap [funds] ghorgh [the] [order] 'oH Daq [a] [“pending”] [state] vaD cha' jajmey maH ngeH [an] [alert]

Page 4: Specification Workshops - The Missing Link

http://www.flickr.com/photos/lambdachialpha/157986473/

Page 5: Specification Workshops - The Missing Link

http://www.flickr.com/photos/mulesafpilot/3513588967

Page 6: Specification Workshops - The Missing Link

http://www.defenseimagery.mil/assetDetails.action?guid=68cf92e35ce13e6c7c9c066f0b48b6daaa9bf8d8

Page 7: Specification Workshops - The Missing Link
Page 8: Specification Workshops - The Missing Link

An experiment with four active battalions in US Army

“Commander expectations matched actions in only 34% of the cases”

L.G.Shattuck, 2000http://www.au.af.mil/au/awc/awcgate/milreview/shattuck.pdf

Page 9: Specification Workshops - The Missing Link

http://www.flickr.com/photos/mataniere/3107073262

The process is very much like a telephone game

Page 10: Specification Workshops - The Missing Link

How many points are there?

Page 11: Specification Workshops - The Missing Link

How many points are there?

Page 12: Specification Workshops - The Missing Link
Page 13: Specification Workshops - The Missing Link

B2 bomber crashed and $2bn went up in flames

"the aircraft actually performed as it was designed. In other words, all

the systems were functioning normally."

Maj. Gen. Floyd L. Carpenter

http://www.foxnews.com/wires/2008Jun05/0,4670,B2Crash,00.html

Page 14: Specification Workshops - The Missing Link

http://www.flickr.com/photos/biolog/3457774800

You can't help a lot when the party is already over...

Page 15: Specification Workshops - The Missing Link
Page 16: Specification Workshops - The Missing Link

F-16 design team was asked to do the impossible -

a cheap 2.5 Mach airplane!

“When asked […] why they need Mach 2 - 2.5, the answer was to be able to escape

from combat. Their solution was […] providing acceleration and

maneuverability, not maximum speed.”

http://97-things.near-time.net/wiki/Seek%20the%20value%20in%20requested%20capabilities

Page 17: Specification Workshops - The Missing Link

Requirements are often given as a solution to an unknown problem!

http://www.flickr.com/photos/sylvancatharsis/3783608640/

Page 18: Specification Workshops - The Missing Link

An angry e-mail

These are fundamental rules that have been explained many times - and should not be being questioned at this time... Registration = customer registers with xxx in periodNew Active = customer places first bet with xxx in periodAll Active = customer bets with xxx in period, but first bet was prior to period Therefore... If Andy registered and bet in period, he would appear in all three (REGISTERED, NEW, ALL)If Lee registered only, he would appear in REGISTERED onlyIf Tom bet in period, but he registered and had placed a bet prior to that period, he would appear in ALL onlyIf Gojko bet for the first time in that period, but registered prior to that period, he would appear in NEW and ALL Regards,

Page 19: Specification Workshops - The Missing Link

An angry e-mail

These are fundamental rules that have been explained many times - and should not be being questioned at this time... Registration = customer registers with xxx in periodNew Active = customer places first bet with xxx in periodAll Active = customer bets with xxx in period, but first bet was prior to period Therefore... If Andy registered and bet in period, he would appear in all three (REGISTERED, NEW, ALL)If Lee registered only, he would appear in REGISTERED onlyIf Tom bet in period, but he registered and had placed a bet prior to that period, he would appear in ALL onlyIf Gojko bet for the first time in that period, but registered prior to that period, he would appear in NEW and ALL Regards,

Page 20: Specification Workshops - The Missing Link

Let's go back to the problems

Faster feedback just tells us that we messed up sooner, it doesn't tell us what we need to do

There is valuable knowledge hidden in the team Expressed requirements often aren't the real

ones We need access to senior people to sort these

problems out

Page 21: Specification Workshops - The Missing Link

Collaborate on specifications

Page 22: Specification Workshops - The Missing Link

Challenge requirements!

Page 23: Specification Workshops - The Missing Link

Discuss examples

Page 24: Specification Workshops - The Missing Link

Involve the whole team

Page 25: Specification Workshops - The Missing Link

Plan in advance, schedule the time to do this!

Page 26: Specification Workshops - The Missing Link

Get everyone together to collaborate on specifications

Page 27: Specification Workshops - The Missing Link

Get everyone together to collaborate on specifications

Customer tests

Page 28: Specification Workshops - The Missing Link

Get everyone together to collaborate on specifications

Customer tests Acceptance testing threesome

Page 29: Specification Workshops - The Missing Link

Get everyone together to collaborate on specifications

Customer tests Acceptance testing threesome Example-writing workshops

Page 30: Specification Workshops - The Missing Link

Get everyone together to collaborate on specifications

Customer tests Acceptance testing threesome Example-writing workshops Specification workshops

Page 31: Specification Workshops - The Missing Link

Running the workshop

Choose a story Introduce it, explain with examples Let people ask questions and suggest other

examples Discuss until everyone is confident that we

have enough examples to start working

Page 32: Specification Workshops - The Missing Link

Some good questions to kick it off:

How do we verify that this thing we are going to write is implemented completely and correctly?

Can you give us a few examples?

Pretend it's magic and it's already delivered – how would you test it?

Page 33: Specification Workshops - The Missing Link

Distil the specification- focus on what, not on how

Page 34: Specification Workshops - The Missing Link

Share domain knowledge- help people understand it better

Page 35: Specification Workshops - The Missing Link

Build and evolve the ubiquitous language

Page 36: Specification Workshops - The Missing Link

Communicate intent- explain why!

Page 37: Specification Workshops - The Missing Link

What the workshop is not:

Not a meeting (especially not a planning one)

Not a presentation Not a design session

Page 38: Specification Workshops - The Missing Link

Keeping the workshop focused

Commanders' intent template: Here's what I think we face Here's what I think we should do Here's what we should keep an eye on Now talk to me

Page 39: Specification Workshops - The Missing Link

Where next?

http://gojko.net http://agiletesting.org.uk http://acceptancetesting.info

27 Nov – Agile specifications and testing exchange

30 Nov – Agile acceptance testing workshop

4 Dec – Building software that matters