SlideShare a Scribd company logo
Intro.toBDD
(BehaviorDrivenDevelopment)
WhatisBDD?
“BDDisasecond-generation,outside-in,pull-based,multiple-stakeholder,multiple-scale,
high-automation,agilemethodology.Itdescribesacycleofinteractionswithwell-defined
outputs,resultinginthedeliveryofworking,testedsoftwarethatmatters.”
--DANNORTH
(CREATOROFJBEHAVETESTFRAMEWORKANDMANYBDDCONCEPTS)
WhatisBDD?
“BDDisasecond-generation,outside-in,pull-based,multiple-stakeholder,multiple-scale,
high-automation,agilemethodology.Itdescribesacycleofinteractionswithwell-defined
outputs,resultinginthedeliveryofworking,testedsoftwarethatmatters.”
--DANNORTH
(CREATOROFJBEHAVETESTFRAMEWORKANDMANYBDDCONCEPTS)
WhatBDDISNOT?
TESTFRAMEWORK
AUTOMATION
CUCUMBER
“GHERKIN”SYNTAX
TheonlywaytoTest
WhatBDDISNOT?
TESTFRAMEWORK
AUTOMATION
CUCUMBER
“GHERKIN”SYNTAX
TheonlywaytoTest
BEHAVIORDRIVENDEVELOPMENT
BDDisaboutDEVELOPMENT
NotCODING
THEDEVELOPMENTPROCESS
1. Customerwantsafeature.
2. Definethefeature.
3. Buildthefeature.
4. TesttheFeature.
TAUTOLOGICALDEFINITIONOFBDD
BDDis
Anagileprocess
ForDescribingBEHAVIORS
ThatDRIVEStheway
SoftwareisDEVELOPED.
WT?
It’sawaytowriterequirements
Thatcanbeunderstoodbyeveryone (SEEDOMAINDRIVENDESIGN,byERICEVANS-norelation)
AndExecutedDirectly.
IT’sEXECUTABLEDOCUMENTATION.
BDD&TDD
BEHAVIORDRIVENDEVELOPMENT
CamefromTESTDRIVENDEVELOPMENT. (SEEEXTREMEPROGRAMMINGEXPLAINEDbyKENTBECK -alsono
relation)
ITREcognizesthat CommunicatingwithNon-ProgrammersisIMPORTANT
ButthatDOCUMENTATIONcanbecomeoutdated
WHYDOBDD
(multiplechoiceQuiz)
A. Managementsaysso.
B. Itmakestestingeasier.
C. TocommunicateBETTER.
D. ALLoftheAbove.
TWO(main)STYLESOFBDD
CUCUMBER
GIVEN/WHEN/THEN
MOREDETAILED
MOREORGANIZED
MORERIGID
DOCSINDEPENDENTOFCODE
SPEC
DESCRIBE/ITSHOULD
MORECONCISE
LESSSTRUCTURE
MOREFREEFORM
DOCSGENERATEDBYCODE
CUCUMBER
(1of3)Feature:[TITLE]
Asa[ROLE]
Iwant[FEATURE]
SOTHAT[BENEFIT]
Focusonthereasonfordevelopingafeature.
CUCUMBER
(2of3)SCENARIO:[DESCRIPTION]
GIVEN[INITIALCONTEXT]
WHEN[ACTION]
THEN[EXPECTEDRESULT]
Describeeachscenariowithpreconditions,steps,andexpectedresults.
CUCUMBER
(3of3)EXAMPLES:
Provideconcreteexamples.
USER PASSWORD COMMAND MESSAGE
aaron SECRET Openpodbaydoors ACCESSDENIED
dave DAISY Openpodbaydoors I’mSORRYDAVE,I’mafraidIcan’tdothat
SPEC(RSPEC,MOCHA)
DESCRIBE([FEATURE])
It([BEHAVIOR])
...implementation
Documentation&implementationlivetogether
WHENTOUSECUCUMBER/GHERKIN
Typicallyusedforuserstorieswhereproductownerisinvolved
andshouldwrite,(oratleastapproveof),theSPEC.
Thespecisamechanism forcommunication,notawaytodictatefeatures.
WHENTOUSEMOCHA/RSPEC
Typicallyusedfordeveloperorientedtests.
DOcumentationisgeneratedfromcode.
Goodforreportingcoverage,butnotsomuchforcollaboration.
Thespecisusedprimarily forgenerating DOCUMENTATION.
THEEND
Thanks.
Aaron.evans@hart.com
https://linkedin.com/in/aaronevans
@fijiaaron

More Related Content

DOC
Campeonato gaúcho-2015-cartões
DOCX
SEÇÃO Nº 24
PDF
MC Perry High School Newspaper - February
PPTX
Yokoyama symposium final
PDF
Strategy & Structure: doing it right and how you'd know | Dan Klyn #IIAS15
DOC
Celebration xii sem 1(15)
PPTX
Futsal 140606134345-phpapp02
PDF
Public Lecture Slides (12.20.2016) James Fanell: Short, Sharp War
Campeonato gaúcho-2015-cartões
SEÇÃO Nº 24
MC Perry High School Newspaper - February
Yokoyama symposium final
Strategy & Structure: doing it right and how you'd know | Dan Klyn #IIAS15
Celebration xii sem 1(15)
Futsal 140606134345-phpapp02
Public Lecture Slides (12.20.2016) James Fanell: Short, Sharp War

Viewers also liked (15)

PDF
REJEIÇÃO DAS CONTAS DO PREFEITO JOÃO CAETANO (Parecer Prévio)
PPT
Trabalho de História - Países não reconhecidos pela ONU e refugiados no RIO 2...
PDF
The Soybean 1-5-2016
DOC
Lei Nº 12.142/2005
PPTX
Hormônio prolactina - (PRL)
PPTX
Got Python I/O: IoT Develoment in Python via GPIO
PPTX
Perilaku yang mendukung tegaknya nilai nilai demokrasi
PDF
Construcción de una vivienda
PDF
Smarter Mobile Apps
PPT
Sentence pattern
PPT
Syntax 334 lecture 4 Noun phrases
PDF
Digital Business Trends
PPT
Vortrag Urheberrecht
PPTX
Alle Grafiken aus dem Buch "Mehr als 0 und 1" unter CC-BY-SA
PPTX
Lehrplan 21: Hope or Hydra?
REJEIÇÃO DAS CONTAS DO PREFEITO JOÃO CAETANO (Parecer Prévio)
Trabalho de História - Países não reconhecidos pela ONU e refugiados no RIO 2...
The Soybean 1-5-2016
Lei Nº 12.142/2005
Hormônio prolactina - (PRL)
Got Python I/O: IoT Develoment in Python via GPIO
Perilaku yang mendukung tegaknya nilai nilai demokrasi
Construcción de una vivienda
Smarter Mobile Apps
Sentence pattern
Syntax 334 lecture 4 Noun phrases
Digital Business Trends
Vortrag Urheberrecht
Alle Grafiken aus dem Buch "Mehr als 0 und 1" unter CC-BY-SA
Lehrplan 21: Hope or Hydra?
Ad

Similar to Intro. to BDD (20)

PPT
Easydd program3
PPTX
SENTIENT ENTERPRISE
PDF
XD 2020: Veronika Ji, frog
PDF
Sdndstw workshop-2017
PDF
Business Needs Design Now
PDF
BDD - Buzzword Driven Development - Build the next cool app for fun and for.....
PDF
BDD - Buzzword Driven Development - Build the next cool app for fun and for.....
PDF
MongoDB.local Paris Keynote
PDF
DVX: Data Visualization Experiences
PPT
Easy edd
PDF
The User Experience Equation: Stepping Beyond Information to Interaction
PPT
Easy edd phd talks 28 oct 2008
PPTX
RESPONSIVE DESIGN AND THE MODERN WEB APPLICATION
PDF
Sunny Tech 2019 - Craft Forever
PPTX
Peter Schmitt FWD talk Harward
PDF
3D體驗平台-模組(角色)說明
PDF
Puppet Camp Charlotte 2015: Introduction to SIMP: An Open Source Infrastructu...
PDF
Top 5 DGX Sessions From GTC 2019
PPTX
Alessandro Ferrari - Smart City, Mixed Reality, Self-Driving Cars & Neural Co...
PDF
GTC Europe 2017 Keynote
Easydd program3
SENTIENT ENTERPRISE
XD 2020: Veronika Ji, frog
Sdndstw workshop-2017
Business Needs Design Now
BDD - Buzzword Driven Development - Build the next cool app for fun and for.....
BDD - Buzzword Driven Development - Build the next cool app for fun and for.....
MongoDB.local Paris Keynote
DVX: Data Visualization Experiences
Easy edd
The User Experience Equation: Stepping Beyond Information to Interaction
Easy edd phd talks 28 oct 2008
RESPONSIVE DESIGN AND THE MODERN WEB APPLICATION
Sunny Tech 2019 - Craft Forever
Peter Schmitt FWD talk Harward
3D體驗平台-模組(角色)說明
Puppet Camp Charlotte 2015: Introduction to SIMP: An Open Source Infrastructu...
Top 5 DGX Sessions From GTC 2019
Alessandro Ferrari - Smart City, Mixed Reality, Self-Driving Cars & Neural Co...
GTC Europe 2017 Keynote
Ad

More from AAron EvaNS (10)

PPTX
Pair Testing and other Radical Ideas - no audio
PPTX
Becoming the Bottleneck - the challenges of test automation
PPTX
Chaotic Neutral - QA Roles and Alignment.pptx
PPTX
Asynchronous Test Data - Better, Stronger, Faster Test Automation
PPTX
Testing at scale with redis queues
PPTX
Testing at scale with Redis queues
PPTX
Testing Web Apps and APIs (1)
PPTX
Intro. to bdd
PPTX
walkaway-automation
PPTX
Refactoring For Testability
Pair Testing and other Radical Ideas - no audio
Becoming the Bottleneck - the challenges of test automation
Chaotic Neutral - QA Roles and Alignment.pptx
Asynchronous Test Data - Better, Stronger, Faster Test Automation
Testing at scale with redis queues
Testing at scale with Redis queues
Testing Web Apps and APIs (1)
Intro. to bdd
walkaway-automation
Refactoring For Testability

Intro. to BDD