the bdd live show (ita)

11
Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0 The BDD Live Show

Upload: roberto-bettazzoni

Post on 23-Jan-2015

112 views

Category:

Technology


2 download

DESCRIPTION

Sessione presentata all'Italian Agile Day 19 nov 2010 BDD Live Show In questa sessione simuleremo una breve sessione di BDD su un problema “reale” (una semplice applicazione da riga di comando). Durante la presentazione useremo un mix di tecnologie (tra le quali Ruby e Python), ma la sessione sarà comprensibile anche a chi non conosce questi linguaggi.

TRANSCRIPT

Page 1: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

The BDDLive Show

Page 2: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

AgendaAgenda

➢15 min BDD in a nutshell➢30 min The BDD live show➢10 min Real-life examples➢05 min Q & A

Page 3: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

BDD in a nutshell

Page 4: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

Test unitaridel codice

Rivolto alla tecnologia

Q1

Test funzionali

Q2

Test diusabilità

Q3

Test sulle proprietà

Q4

Rivolto al business

Fo

nd

ato s u

l pr o

do

t toS

up

po

rto

allo

svi

lup

po

L'idea originale dell' “Agile Testing Quadrant” e' presa da Brian Marrick (www.exampler.com)

Page 5: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

Rivolto al business

Su

pp

ort

o a

llo s

vilu

pp

oBDD

Il BDD opera su test di supporto allo sviluppo che

verificano aspetti di business

Page 6: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

FeatureFeature

As a Returning Customer I want the system to remember my details so I can purchase goods more quickly.

Page 7: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

Acceptance CriteriaAcceptance Criteria

➢Acceptance Criterion 1: Given I am logged in as returning customer, When I make a purchase, Then the system presents my details for review

➢Acceptance Criterion 2: Given I see my details as returning customer,When I want to change some details, Then I can edit the details directly

...

➢Acceptance Criterion 1: Given I am logged in as returning customer, When I make a purchase, Then the system presents my details for review

➢Acceptance Criterion 2: Given I see my details as returning customer,When I want to change some details, Then I can edit the details directly

...

As a Returning Customer I want the system to remember my details so I can purchase goods more quickly.

Page 8: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

Realizzare una featureRealizzare una feature

As a Returning Customer I want the system to remember my details so I can purchase goods more quickly.

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

✔OK

Page 9: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

Sicuro?Sicuro?

As a Returning Customer I want the system to remember my details so I can purchase goods more quickly.

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

Acceptance Criterion

✔OK

Acceptance Criterion

NO

Page 10: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

Automatizzare i testAutomatizzare i test

Page 11: The BDD live show (ITA)

Italian Agile Day 2010 - The BDD show - http://creativecommons.org/licenses/by-nc-sa/3.0

Automatizzare i testAutomatizzare i test

System under test

Cucumber steps definition

Cucumber features