SlideShare uma empresa Scribd logo
1 de 22
BDD Behaviour Driven Development (BDD) The 10 minutes Introduction Christophe Achouiantz – June 2011
The need for BDD Most common impediment for an agile team: Unclear Specifications! Christophe Achouiantz – June 2011 2011-06-22 Sida 2
BDD 2006 – Dan North ”TDD/ATDD done well” “TDD will cause me to have lots of tests, but it won’t necessarily get me nearer the goal of delivering business value through software.” Test Driven Development – TDD Acceptance Test Driven Developement -ATDD 2011-06-22 Sida 3 Christophe Achouiantz – June 2011
BDD is about Business Value Behaviour Driven Development 2011-06-22 Sida 4 Christophe Achouiantz – June 2011
An ”Outside-in” methodology BDD is an “outside-in” methodology.  Starts at the outside by identifying business outcomes,  and then drills down into the feature set that will achieve those outcomes. 2011-06-22 Sida 5 Christophe Achouiantz – June 2011
The Core of BDD: the ”Story” Each feature is captured as a “story”, which defines the scope of the feature along with its acceptance criteria. BDD ”Story” =  Narative (User Story) +  Acceptance Criteria (Scenarios) 2011-06-22 Sida 6 Christophe Achouiantz – June 2011
The Narative: User Stories User Story as narative (context) User centric Focus on What not so much How Contains sufficient information so that all stakeholders understand the context (who, when, what, why) 2011-06-22 Sida 7 Christophe Achouiantz – June 2011
The Narative: User Stories + Title of the Story + As a <role>, I want <feature>, So that <benefit> 2011-06-22 Sida 8 Christophe Achouiantz – June 2011
The Narative: User Stories + Customer withdraws cash + As a customer, I want to withdraw cash from an ATM, so that I don’t have to wait in line at the bank. 2011-06-22 Sida 9 Christophe Achouiantz – June 2011
The Acceptance Criteria: Scenarios A UserStory’sbehaviour is itsacceptancecriteria Acceptancecriteriadefine the scope of the narative/behaviour Acceptance criteria gives us a shared definition of “done” 2011-06-22 Sida 10 Christophe Achouiantz – June 2011
The Acceptance Criteria: Scenarios + Scenario Title + Given <context>, When <event>, Then <outcome> 2011-06-22 Sida 11 Christophe Achouiantz – June 2011
The Acceptance Criteria: Scenarios +Scenario 1: Account is in credit+ Given the account is in credit And the card is valid And the dispenser contains cash, When the customer requests cash, Then ensure the account is debited And ensure cash is dispensed And ensure the card is returned. 2011-06-22 Sida 12 Christophe Achouiantz – June 2011
The Acceptance Criteria: Scenarios +Scenario 2: Account is overdrawn past the overdraft limit+ Given the account is overdrawn And the card is valid, When the customer requests cash, Then ensure a rejection message is displayed And ensure cash is not dispensed And ensure the card is returned. 2011-06-22 Sida 13 Christophe Achouiantz – June 2011
The Power of Scenarios Scenarios = Test Cases = Acceptance Criteria 2011-06-22 Sida 14 Christophe Achouiantz – June 2011
A Good Story The title should describe an activity The narrative should include a role, a feature and a benefit The scenario title should say what’s different The scenario should be described in terms of Givens, Events and Outcomes The givens should define all of, and no more than, the required contextThe event should describe the feature The story should be small enough to fit in an iteration 2011-06-22 Sida 15 Christophe Achouiantz – June 2011
Effect of BDD: A Specification and Ubiquitous Language BDD Story Great for discussing with customer, end-users, other stakeholders Great for coding, testing, validation = Specification (by example) + Promotes an Ubiquitous Language (everyone speaks the same language!) 2011-06-22 Sida 16 Christophe Achouiantz – June 2011
BDD is relying on Examples ”Specification by Example” Examples tell a story about what the system does Gojko Adzic By the way: TDD is then more ”Coding by Example” Examples tell a story about what the code does 2011-06-22 Sida 17 Christophe Achouiantz – June 2011
BDD in Practice Better requirements workshops / User Stories writing workshops Iterative work – clarify requirements: Write user story + scenarios Re-write user story (break down?)+ scenarios Helps to understand ”What do we want?” ”Aha!” reaction from participants  Helps to write clear, concrete requirements 2011-06-22 Sida 18 Christophe Achouiantz – June 2011
BDD Tools Automate your Scenarios! Frameworks for: Java - JBehave .Net - SpecFlow Ruby – Cucumber Others… 2011-06-22 Sida 19 Christophe Achouiantz – June 2011
BDD Tools: Cucumber (Ruby) 2011-06-22 Sida 20 Christophe Achouiantz – June 2011
Starting with BDD Use Scenarios during your next requirement writing workshop! 2011-06-22 Sida 21 Christophe Achouiantz – June 2011
Happy BDD! 2011-06-22 Sida 22 Christophe Achouiantz – June 2011

Mais conteúdo relacionado

Mais procurados

An introduction to Behavior-Driven Development (BDD)
An introduction to Behavior-Driven Development (BDD)An introduction to Behavior-Driven Development (BDD)
An introduction to Behavior-Driven Development (BDD)Suman Guha
 
Domain Driven Design Quickly
Domain Driven Design QuicklyDomain Driven Design Quickly
Domain Driven Design QuicklyMariam Hakobyan
 
Test driven development
Test driven developmentTest driven development
Test driven developmentNascenia IT
 
Agile business analyst
Agile business analystAgile business analyst
Agile business analystTechcanvass
 
Domain Driven Design (DDD)
Domain Driven Design (DDD)Domain Driven Design (DDD)
Domain Driven Design (DDD)Tom Kocjan
 
Refactoring for Domain Driven Design
Refactoring for Domain Driven DesignRefactoring for Domain Driven Design
Refactoring for Domain Driven DesignDavid Berliner
 
Introduction to BDD
Introduction to BDDIntroduction to BDD
Introduction to BDDKnoldus Inc.
 
Behavior Driven Development with SpecFlow
Behavior Driven Development with SpecFlowBehavior Driven Development with SpecFlow
Behavior Driven Development with SpecFlowRachid Kherrazi
 
Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Mindfire Solutions
 
Test automation with Cucumber-JVM
Test automation with Cucumber-JVMTest automation with Cucumber-JVM
Test automation with Cucumber-JVMAlan Parkinson
 
Behavior driven development (bdd)
Behavior driven development (bdd)Behavior driven development (bdd)
Behavior driven development (bdd)Rohit Bisht
 
Domain Driven Design(DDD) Presentation
Domain Driven Design(DDD) PresentationDomain Driven Design(DDD) Presentation
Domain Driven Design(DDD) PresentationOğuzhan Soykan
 
A Practical Guide to Domain Driven Design: Presentation Slides
A Practical Guide to Domain Driven Design: Presentation SlidesA Practical Guide to Domain Driven Design: Presentation Slides
A Practical Guide to Domain Driven Design: Presentation Slidesthinkddd
 
Overview on TDD (Test Driven Development) & ATDD (Acceptance Test Driven Deve...
Overview on TDD (Test Driven Development) & ATDD (Acceptance Test Driven Deve...Overview on TDD (Test Driven Development) & ATDD (Acceptance Test Driven Deve...
Overview on TDD (Test Driven Development) & ATDD (Acceptance Test Driven Deve...Zohirul Alam Tiemoon
 

Mais procurados (20)

An introduction to Behavior-Driven Development (BDD)
An introduction to Behavior-Driven Development (BDD)An introduction to Behavior-Driven Development (BDD)
An introduction to Behavior-Driven Development (BDD)
 
BDD in Action - building software that matters
BDD in Action - building software that mattersBDD in Action - building software that matters
BDD in Action - building software that matters
 
Domain Driven Design Quickly
Domain Driven Design QuicklyDomain Driven Design Quickly
Domain Driven Design Quickly
 
Scrum + bdd + ddd
Scrum + bdd + dddScrum + bdd + ddd
Scrum + bdd + ddd
 
Test driven development
Test driven developmentTest driven development
Test driven development
 
Agile business analyst
Agile business analystAgile business analyst
Agile business analyst
 
Domain Driven Design (DDD)
Domain Driven Design (DDD)Domain Driven Design (DDD)
Domain Driven Design (DDD)
 
Refactoring for Domain Driven Design
Refactoring for Domain Driven DesignRefactoring for Domain Driven Design
Refactoring for Domain Driven Design
 
Introduction to BDD
Introduction to BDDIntroduction to BDD
Introduction to BDD
 
Behavior Driven Development with SpecFlow
Behavior Driven Development with SpecFlowBehavior Driven Development with SpecFlow
Behavior Driven Development with SpecFlow
 
Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)Test Automation Framework using Cucumber BDD overview (part 1)
Test Automation Framework using Cucumber BDD overview (part 1)
 
Test automation with Cucumber-JVM
Test automation with Cucumber-JVMTest automation with Cucumber-JVM
Test automation with Cucumber-JVM
 
Behavior driven development (bdd)
Behavior driven development (bdd)Behavior driven development (bdd)
Behavior driven development (bdd)
 
Cucumber BDD
Cucumber BDDCucumber BDD
Cucumber BDD
 
Domain Driven Design(DDD) Presentation
Domain Driven Design(DDD) PresentationDomain Driven Design(DDD) Presentation
Domain Driven Design(DDD) Presentation
 
Domain driven-design
Domain driven-designDomain driven-design
Domain driven-design
 
BDD with Cucumber
BDD with CucumberBDD with Cucumber
BDD with Cucumber
 
A Practical Guide to Domain Driven Design: Presentation Slides
A Practical Guide to Domain Driven Design: Presentation SlidesA Practical Guide to Domain Driven Design: Presentation Slides
A Practical Guide to Domain Driven Design: Presentation Slides
 
Solid Principle
Solid PrincipleSolid Principle
Solid Principle
 
Overview on TDD (Test Driven Development) & ATDD (Acceptance Test Driven Deve...
Overview on TDD (Test Driven Development) & ATDD (Acceptance Test Driven Deve...Overview on TDD (Test Driven Development) & ATDD (Acceptance Test Driven Deve...
Overview on TDD (Test Driven Development) & ATDD (Acceptance Test Driven Deve...
 

Semelhante a Introduction to Behaviour Driven Development

BV Engineering Agile Tour RTP, Oct 2010
BV Engineering Agile Tour RTP, Oct 2010BV Engineering Agile Tour RTP, Oct 2010
BV Engineering Agile Tour RTP, Oct 2010LeanAgileTraining
 
BDD Short Introduction
BDD Short IntroductionBDD Short Introduction
BDD Short IntroductionAndreas Enbohm
 
Enterprise Blockchain PowerPoint Presentation Slides
Enterprise Blockchain PowerPoint Presentation SlidesEnterprise Blockchain PowerPoint Presentation Slides
Enterprise Blockchain PowerPoint Presentation SlidesSlideTeam
 
Scrum Basics - User Stories.pdf
Scrum Basics - User Stories.pdfScrum Basics - User Stories.pdf
Scrum Basics - User Stories.pdfNarasimhaL2
 
Lessons in Project Management - 3 - Project Scoping and Contracting
Lessons in Project Management - 3 - Project Scoping and ContractingLessons in Project Management - 3 - Project Scoping and Contracting
Lessons in Project Management - 3 - Project Scoping and ContractingHabermann Frank
 
How to live up to what your products claim to deliver.

How to live up to what your products claim to deliver.
 How to live up to what your products claim to deliver.

How to live up to what your products claim to deliver.
 FrancescaTerzi
 
Lean UX presentation (UXSG meetup #9)
Lean UX presentation (UXSG meetup #9)Lean UX presentation (UXSG meetup #9)
Lean UX presentation (UXSG meetup #9)UX Consulting Pte Ltd
 
It's Not About Working Software After All!
It's Not About Working Software After All!It's Not About Working Software After All!
It's Not About Working Software After All!Ignite
 
Resume - Pinku Das
Resume - Pinku DasResume - Pinku Das
Resume - Pinku Daspinku Das
 
Agile metteg 9(agile tooling)-draft-v1.0
Agile metteg 9(agile tooling)-draft-v1.0Agile metteg 9(agile tooling)-draft-v1.0
Agile metteg 9(agile tooling)-draft-v1.0APjrousset
 
If you fail to plan, will your plan fail? Developing a financial plan for you...
If you fail to plan, will your plan fail? Developing a financial plan for you...If you fail to plan, will your plan fail? Developing a financial plan for you...
If you fail to plan, will your plan fail? Developing a financial plan for you...MaRS Discovery District
 
Predicitve analytics for marketing 05 21-2014 Shree Dandekar
Predicitve analytics for marketing 05 21-2014 Shree DandekarPredicitve analytics for marketing 05 21-2014 Shree Dandekar
Predicitve analytics for marketing 05 21-2014 Shree DandekarShree Dandekar
 
DataSift meetup shree 3-24-2014 (2)
DataSift meetup   shree 3-24-2014 (2)DataSift meetup   shree 3-24-2014 (2)
DataSift meetup shree 3-24-2014 (2)Shree Dandekar
 
Optimizing the Value of Your Company
Optimizing the Value of Your CompanyOptimizing the Value of Your Company
Optimizing the Value of Your Companybitnetonline
 
Disciplined Entrepreneurship: What can you do for your customer?
Disciplined Entrepreneurship: What can you do for your customer?Disciplined Entrepreneurship: What can you do for your customer?
Disciplined Entrepreneurship: What can you do for your customer?Elaine Chen
 
XBRL Conference Brussels - Bas Groenveld And Paul Hulst - Xbrl Detail Tagging...
XBRL Conference Brussels - Bas Groenveld And Paul Hulst - Xbrl Detail Tagging...XBRL Conference Brussels - Bas Groenveld And Paul Hulst - Xbrl Detail Tagging...
XBRL Conference Brussels - Bas Groenveld And Paul Hulst - Xbrl Detail Tagging...Paul Hulst
 

Semelhante a Introduction to Behaviour Driven Development (20)

BV Engineering Agile Tour RTP, Oct 2010
BV Engineering Agile Tour RTP, Oct 2010BV Engineering Agile Tour RTP, Oct 2010
BV Engineering Agile Tour RTP, Oct 2010
 
BDD Short Introduction
BDD Short IntroductionBDD Short Introduction
BDD Short Introduction
 
Enterprise Blockchain PowerPoint Presentation Slides
Enterprise Blockchain PowerPoint Presentation SlidesEnterprise Blockchain PowerPoint Presentation Slides
Enterprise Blockchain PowerPoint Presentation Slides
 
Scrum Basics - User Stories.pdf
Scrum Basics - User Stories.pdfScrum Basics - User Stories.pdf
Scrum Basics - User Stories.pdf
 
Lessons in Project Management - 3 - Project Scoping and Contracting
Lessons in Project Management - 3 - Project Scoping and ContractingLessons in Project Management - 3 - Project Scoping and Contracting
Lessons in Project Management - 3 - Project Scoping and Contracting
 
How to live up to what your products claim to deliver.

How to live up to what your products claim to deliver.
 How to live up to what your products claim to deliver.

How to live up to what your products claim to deliver.

 
Lean UX presentation (UXSG meetup #9)
Lean UX presentation (UXSG meetup #9)Lean UX presentation (UXSG meetup #9)
Lean UX presentation (UXSG meetup #9)
 
Accenture Resume
Accenture ResumeAccenture Resume
Accenture Resume
 
It's Not About Working Software After All!
It's Not About Working Software After All!It's Not About Working Software After All!
It's Not About Working Software After All!
 
AFP
AFPAFP
AFP
 
Resume-Shubhankar
Resume-ShubhankarResume-Shubhankar
Resume-Shubhankar
 
Resume - Pinku Das
Resume - Pinku DasResume - Pinku Das
Resume - Pinku Das
 
Neeraj kumar.pdf
Neeraj kumar.pdfNeeraj kumar.pdf
Neeraj kumar.pdf
 
Agile metteg 9(agile tooling)-draft-v1.0
Agile metteg 9(agile tooling)-draft-v1.0Agile metteg 9(agile tooling)-draft-v1.0
Agile metteg 9(agile tooling)-draft-v1.0
 
If you fail to plan, will your plan fail? Developing a financial plan for you...
If you fail to plan, will your plan fail? Developing a financial plan for you...If you fail to plan, will your plan fail? Developing a financial plan for you...
If you fail to plan, will your plan fail? Developing a financial plan for you...
 
Predicitve analytics for marketing 05 21-2014 Shree Dandekar
Predicitve analytics for marketing 05 21-2014 Shree DandekarPredicitve analytics for marketing 05 21-2014 Shree Dandekar
Predicitve analytics for marketing 05 21-2014 Shree Dandekar
 
DataSift meetup shree 3-24-2014 (2)
DataSift meetup   shree 3-24-2014 (2)DataSift meetup   shree 3-24-2014 (2)
DataSift meetup shree 3-24-2014 (2)
 
Optimizing the Value of Your Company
Optimizing the Value of Your CompanyOptimizing the Value of Your Company
Optimizing the Value of Your Company
 
Disciplined Entrepreneurship: What can you do for your customer?
Disciplined Entrepreneurship: What can you do for your customer?Disciplined Entrepreneurship: What can you do for your customer?
Disciplined Entrepreneurship: What can you do for your customer?
 
XBRL Conference Brussels - Bas Groenveld And Paul Hulst - Xbrl Detail Tagging...
XBRL Conference Brussels - Bas Groenveld And Paul Hulst - Xbrl Detail Tagging...XBRL Conference Brussels - Bas Groenveld And Paul Hulst - Xbrl Detail Tagging...
XBRL Conference Brussels - Bas Groenveld And Paul Hulst - Xbrl Detail Tagging...
 

Mais de Christophe Achouiantz

Implementing kanban at scale at sandvik IT
Implementing kanban at scale at sandvik ITImplementing kanban at scale at sandvik IT
Implementing kanban at scale at sandvik ITChristophe Achouiantz
 
Lessons Learned from Coaching 50+ Teams
Lessons Learned from Coaching 50+ TeamsLessons Learned from Coaching 50+ Teams
Lessons Learned from Coaching 50+ TeamsChristophe Achouiantz
 
See and understand how to improve your team using kanban
See and understand how to improve your team using kanbanSee and understand how to improve your team using kanban
See and understand how to improve your team using kanbanChristophe Achouiantz
 
User Story Mapping: Konsten att dela upp kravbilden på "rätt" sätt
User Story Mapping: Konsten att dela upp kravbilden på "rätt" sättUser Story Mapping: Konsten att dela upp kravbilden på "rätt" sätt
User Story Mapping: Konsten att dela upp kravbilden på "rätt" sättChristophe Achouiantz
 
Igniting change in 20 teams within 6 months
Igniting change in 20 teams within 6 monthsIgniting change in 20 teams within 6 months
Igniting change in 20 teams within 6 monthsChristophe Achouiantz
 
Scaling Scrum in the Enterprise with Kanban
Scaling Scrum in the Enterprise with KanbanScaling Scrum in the Enterprise with Kanban
Scaling Scrum in the Enterprise with KanbanChristophe Achouiantz
 

Mais de Christophe Achouiantz (16)

How to train to Kanban.
How to train to Kanban.How to train to Kanban.
How to train to Kanban.
 
Staying on the high performing path
Staying on the high performing pathStaying on the high performing path
Staying on the high performing path
 
Insights coaching 70 kanban teams
Insights coaching 70 kanban teamsInsights coaching 70 kanban teams
Insights coaching 70 kanban teams
 
From Good-enough to Great (LKFR16)
From Good-enough to Great (LKFR16)From Good-enough to Great (LKFR16)
From Good-enough to Great (LKFR16)
 
From Good-Enough to Great
From Good-Enough to GreatFrom Good-Enough to Great
From Good-Enough to Great
 
The art of delivering value on time
The art of delivering value on timeThe art of delivering value on time
The art of delivering value on time
 
Implementing kanban at scale at sandvik IT
Implementing kanban at scale at sandvik ITImplementing kanban at scale at sandvik IT
Implementing kanban at scale at sandvik IT
 
Succeed using lean agile
Succeed using lean agileSucceed using lean agile
Succeed using lean agile
 
Lessons Learned from Coaching 50+ Teams
Lessons Learned from Coaching 50+ TeamsLessons Learned from Coaching 50+ Teams
Lessons Learned from Coaching 50+ Teams
 
See and understand how to improve your team using kanban
See and understand how to improve your team using kanbanSee and understand how to improve your team using kanban
See and understand how to improve your team using kanban
 
Depth of a Kanban Implementation
Depth of a Kanban ImplementationDepth of a Kanban Implementation
Depth of a Kanban Implementation
 
User Story Mapping: Konsten att dela upp kravbilden på "rätt" sätt
User Story Mapping: Konsten att dela upp kravbilden på "rätt" sättUser Story Mapping: Konsten att dela upp kravbilden på "rätt" sätt
User Story Mapping: Konsten att dela upp kravbilden på "rätt" sätt
 
The value of timely feedback
The value of timely feedbackThe value of timely feedback
The value of timely feedback
 
Thinking agile
Thinking agileThinking agile
Thinking agile
 
Igniting change in 20 teams within 6 months
Igniting change in 20 teams within 6 monthsIgniting change in 20 teams within 6 months
Igniting change in 20 teams within 6 months
 
Scaling Scrum in the Enterprise with Kanban
Scaling Scrum in the Enterprise with KanbanScaling Scrum in the Enterprise with Kanban
Scaling Scrum in the Enterprise with Kanban
 

Último

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 

Último (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Introduction to Behaviour Driven Development

  • 1. BDD Behaviour Driven Development (BDD) The 10 minutes Introduction Christophe Achouiantz – June 2011
  • 2. The need for BDD Most common impediment for an agile team: Unclear Specifications! Christophe Achouiantz – June 2011 2011-06-22 Sida 2
  • 3. BDD 2006 – Dan North ”TDD/ATDD done well” “TDD will cause me to have lots of tests, but it won’t necessarily get me nearer the goal of delivering business value through software.” Test Driven Development – TDD Acceptance Test Driven Developement -ATDD 2011-06-22 Sida 3 Christophe Achouiantz – June 2011
  • 4. BDD is about Business Value Behaviour Driven Development 2011-06-22 Sida 4 Christophe Achouiantz – June 2011
  • 5. An ”Outside-in” methodology BDD is an “outside-in” methodology. Starts at the outside by identifying business outcomes, and then drills down into the feature set that will achieve those outcomes. 2011-06-22 Sida 5 Christophe Achouiantz – June 2011
  • 6. The Core of BDD: the ”Story” Each feature is captured as a “story”, which defines the scope of the feature along with its acceptance criteria. BDD ”Story” = Narative (User Story) + Acceptance Criteria (Scenarios) 2011-06-22 Sida 6 Christophe Achouiantz – June 2011
  • 7. The Narative: User Stories User Story as narative (context) User centric Focus on What not so much How Contains sufficient information so that all stakeholders understand the context (who, when, what, why) 2011-06-22 Sida 7 Christophe Achouiantz – June 2011
  • 8. The Narative: User Stories + Title of the Story + As a <role>, I want <feature>, So that <benefit> 2011-06-22 Sida 8 Christophe Achouiantz – June 2011
  • 9. The Narative: User Stories + Customer withdraws cash + As a customer, I want to withdraw cash from an ATM, so that I don’t have to wait in line at the bank. 2011-06-22 Sida 9 Christophe Achouiantz – June 2011
  • 10. The Acceptance Criteria: Scenarios A UserStory’sbehaviour is itsacceptancecriteria Acceptancecriteriadefine the scope of the narative/behaviour Acceptance criteria gives us a shared definition of “done” 2011-06-22 Sida 10 Christophe Achouiantz – June 2011
  • 11. The Acceptance Criteria: Scenarios + Scenario Title + Given <context>, When <event>, Then <outcome> 2011-06-22 Sida 11 Christophe Achouiantz – June 2011
  • 12. The Acceptance Criteria: Scenarios +Scenario 1: Account is in credit+ Given the account is in credit And the card is valid And the dispenser contains cash, When the customer requests cash, Then ensure the account is debited And ensure cash is dispensed And ensure the card is returned. 2011-06-22 Sida 12 Christophe Achouiantz – June 2011
  • 13. The Acceptance Criteria: Scenarios +Scenario 2: Account is overdrawn past the overdraft limit+ Given the account is overdrawn And the card is valid, When the customer requests cash, Then ensure a rejection message is displayed And ensure cash is not dispensed And ensure the card is returned. 2011-06-22 Sida 13 Christophe Achouiantz – June 2011
  • 14. The Power of Scenarios Scenarios = Test Cases = Acceptance Criteria 2011-06-22 Sida 14 Christophe Achouiantz – June 2011
  • 15. A Good Story The title should describe an activity The narrative should include a role, a feature and a benefit The scenario title should say what’s different The scenario should be described in terms of Givens, Events and Outcomes The givens should define all of, and no more than, the required contextThe event should describe the feature The story should be small enough to fit in an iteration 2011-06-22 Sida 15 Christophe Achouiantz – June 2011
  • 16. Effect of BDD: A Specification and Ubiquitous Language BDD Story Great for discussing with customer, end-users, other stakeholders Great for coding, testing, validation = Specification (by example) + Promotes an Ubiquitous Language (everyone speaks the same language!) 2011-06-22 Sida 16 Christophe Achouiantz – June 2011
  • 17. BDD is relying on Examples ”Specification by Example” Examples tell a story about what the system does Gojko Adzic By the way: TDD is then more ”Coding by Example” Examples tell a story about what the code does 2011-06-22 Sida 17 Christophe Achouiantz – June 2011
  • 18. BDD in Practice Better requirements workshops / User Stories writing workshops Iterative work – clarify requirements: Write user story + scenarios Re-write user story (break down?)+ scenarios Helps to understand ”What do we want?” ”Aha!” reaction from participants Helps to write clear, concrete requirements 2011-06-22 Sida 18 Christophe Achouiantz – June 2011
  • 19. BDD Tools Automate your Scenarios! Frameworks for: Java - JBehave .Net - SpecFlow Ruby – Cucumber Others… 2011-06-22 Sida 19 Christophe Achouiantz – June 2011
  • 20. BDD Tools: Cucumber (Ruby) 2011-06-22 Sida 20 Christophe Achouiantz – June 2011
  • 21. Starting with BDD Use Scenarios during your next requirement writing workshop! 2011-06-22 Sida 21 Christophe Achouiantz – June 2011
  • 22. Happy BDD! 2011-06-22 Sida 22 Christophe Achouiantz – June 2011

Notas do Editor

  1. Own experience: unclear specs!Valid also for ”traditional teams”, though made clearer for agile teamsBehaviour-driven development (BDD) takes the position that you can turn an idea for a requirement into implemented, tested, production-ready code simply and effectively, as long as the requirement is specific enough that everyone knows what’s going on
  2. This, then, is the role of a Story. It has to be a description of a requirement and its business benefit, and a set of criteria by which we all agree that it is “done”. This is a more rigorous definition than in other agile methodologies, where it is variously described as a “promise of a conversation” or a “description of a feature”. (A BDD story can just as easily describe a non-functional requirement, as long as the work can be scoped, estimated and agreed on.)