SlideShare une entreprise Scribd logo
1  sur  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

Contenu connexe

Tendances

Successfully Implementing BDD in an Agile World
Successfully Implementing BDD in an Agile WorldSuccessfully Implementing BDD in an Agile World
Successfully Implementing BDD in an Agile WorldSmartBear
 
Behavior driven development (bdd)
Behavior driven development (bdd)Behavior driven development (bdd)
Behavior driven development (bdd)Rohit Bisht
 
BDD presentation
BDD presentationBDD presentation
BDD presentationtemebele
 
Introducing BDD and TDD with Cucumber
Introducing BDD and TDD with CucumberIntroducing BDD and TDD with Cucumber
Introducing BDD and TDD with CucumberKnoldus Inc.
 
Bdd – with cucumber and gherkin
Bdd – with cucumber and gherkinBdd – with cucumber and gherkin
Bdd – with cucumber and gherkinArati Joshi
 
What Is Cucumber?
What Is Cucumber?What Is Cucumber?
What Is Cucumber?QATestLab
 
BDD testing with cucumber
BDD testing with cucumberBDD testing with cucumber
BDD testing with cucumberDaniel Kummer
 
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
 
Acceptance Test Driven Development and Robot Framework
Acceptance Test Driven Development and Robot FrameworkAcceptance Test Driven Development and Robot Framework
Acceptance Test Driven Development and Robot FrameworkSteve Zhang
 
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...KMS Technology
 
Android Chromium Rendering Pipeline
Android Chromium Rendering PipelineAndroid Chromium Rendering Pipeline
Android Chromium Rendering PipelineHyungwook Lee
 
BDD in Action – principles, practices and real-world application
BDD in Action – principles, practices and real-world applicationBDD in Action – principles, practices and real-world application
BDD in Action – principles, practices and real-world applicationJohn Ferguson Smart Limited
 
Gerência de Configuração
Gerência de ConfiguraçãoGerência de Configuração
Gerência de ConfiguraçãoWagner Zaparoli
 

Tendances (20)

Cucumber presenation
Cucumber presenationCucumber presenation
Cucumber presenation
 
Successfully Implementing BDD in an Agile World
Successfully Implementing BDD in an Agile WorldSuccessfully Implementing BDD in an Agile World
Successfully Implementing BDD in an Agile World
 
Cucumber & gherkin language
Cucumber & gherkin languageCucumber & gherkin language
Cucumber & gherkin language
 
Behavior driven development (bdd)
Behavior driven development (bdd)Behavior driven development (bdd)
Behavior driven development (bdd)
 
BDD presentation
BDD presentationBDD presentation
BDD presentation
 
Introducing BDD and TDD with Cucumber
Introducing BDD and TDD with CucumberIntroducing BDD and TDD with Cucumber
Introducing BDD and TDD with Cucumber
 
Bdd – with cucumber and gherkin
Bdd – with cucumber and gherkinBdd – with cucumber and gherkin
Bdd – with cucumber and gherkin
 
What Is Cucumber?
What Is Cucumber?What Is Cucumber?
What Is Cucumber?
 
BDD testing with cucumber
BDD testing with cucumberBDD testing with cucumber
BDD testing with cucumber
 
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)
 
Acceptance Test Driven Development and Robot Framework
Acceptance Test Driven Development and Robot FrameworkAcceptance Test Driven Development and Robot Framework
Acceptance Test Driven Development and Robot Framework
 
BDD & Cucumber
BDD & CucumberBDD & Cucumber
BDD & Cucumber
 
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
Behavior-Driven Development and Automation Testing Using Cucumber Framework W...
 
BDD with Cucumber
BDD with CucumberBDD with Cucumber
BDD with Cucumber
 
Modelos de processos de software
Modelos de processos de softwareModelos de processos de software
Modelos de processos de software
 
Android Chromium Rendering Pipeline
Android Chromium Rendering PipelineAndroid Chromium Rendering Pipeline
Android Chromium Rendering Pipeline
 
Cucumber ppt
Cucumber pptCucumber ppt
Cucumber ppt
 
BDD in Action – principles, practices and real-world application
BDD in Action – principles, practices and real-world applicationBDD in Action – principles, practices and real-world application
BDD in Action – principles, practices and real-world application
 
Gerência de Configuração
Gerência de ConfiguraçãoGerência de Configuração
Gerência de Configuração
 
MVP Clean Architecture
MVP Clean  Architecture MVP Clean  Architecture
MVP Clean Architecture
 

Similaire à 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
 

Similaire à 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...
 

Plus 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
 

Plus 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
 

Dernier

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 

Dernier (20)

Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
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
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 

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

Notes de l'éditeur

  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.)