SlideShare una empresa de Scribd logo
1 de 25
Behavior-Driven Development
As a Developer
I want clear requirements
So I can build the right stuff

Andreas Enbohm
@enbohm
(screenshot from http://www.thucydides.info/ and http://www.wakaleo.com/ )
Succesful IT-Projects

1. Build the software right

2. Build the right software
Succesful IT-Projects
State of Succesful IT-Projects
The 2011 edition of Standish Group’s annual CHAOS Report
found that 42% of IT projects were either delivered late, ran
over budget, or failed to deliver all of the requested features,
and 21% of projects were cancelled entirely.
State of Succesful IT-Projects
Scott Ambler’s annual survey on IT Project success rates
found a 30%-50% failure rate depending on the
methodologies used.
Used Functionality
The Consequences of Not Building It Right
In December 2007, the Queensland Health department* kicked off work on a new payroll system
for its 85,000 employees. The initial budget for the project was around $6 million, with a delivery
date scheduled for August 2008. When the solution was rolled out in 2010, some 18 months late, it
was a disaster.
Tens of thousands of public servants were underpaid, overpaid, or even not paid at all.
Since the go-live date, over 1000 payroll staff are required to carry out some 200,000
manual processes each fortnight to ensure that staff salaries are paid. In 2012, an
independent review found that the project had cost the state over $416 million since going
into production, and would cost an additional $837 million dollars to fix. This colossal sum
included $220 million just to fix the immediate software issues that were preventing the
system from delivering its core capability of paying Queensland Health staff what they are
owed each month.

* see http://en.wikipedia.org/wiki/Queensland_Health#Payroll_problems
The Consequences of Not Building It Right

Product
nobody
wants, wrong
built.
BDD
Behavior-driven development combines
techniques and principles of TDD with ideas
from domain-driven design and object-oriented
analysis and design, with the aim of delivering
"software that matters".
Benefits
•
•
•
•
•
•

Only build feature that add real value
Less waste (and hence, reduced cost)
Better communication
Higher quality, better tested product
Traceability, ’Live Documentation’
Enables a way to automatic test the
requirements
BDD
• BDD describes TDD done well
- removes word ’test’
- replace it with behaviour, examples,
scenarios etc.
• Good habits;
1. Working outside-in
2. Using examples to clarify requirements
(scenarios)
3. Using a common (ubiquitous) language
BDD – Value Driven
• A good goal should add value to business
- increase revenue
- reduce cost
- avoid future cost
- protect revenue
”Increase revenue by allowing
customers to…”
”Prevent current customers
switching to competing product
by …”
BDD – What Does the Customer Need?
• Good teams push back!
- users tend to express requirements as implementations
- we need to find the business need!
We need caching

So that the page
loads fast

So that the
customer will buy
stuff on our site and
doesn’t leave page

Why?

Why?

Ok, so to increase the chance a customer
will buy [stuff] it need to be ’fast’. Caching
might be one way to achive this, but
compressing images might be more
effective. Or another way might be loaders,
or ..
BDD – Better understanding
• Working outside-in
- if you need to explain to a computer how to check the
requirement, you’ll need to be damn sure understand it
yourself
• Business black-box testing is often done manually!
- BDD enables automated acceptance testing
• Mininum effort /code to fulfull requirement
BDD – Common Language
• Common Language
- communication often the biggest overhead
- even bigger if you allow different dialects of terminology
- takes time but gains significant advantage
BDD
User Stories
“a concise, written description of a piece of
functionality that will be valuable to a user (or
owner) of the software. It captures the 'who',
'what' and 'why' of a requirement in a simple,
concise way.”
User Stories
Story: Returns go to stock

Goal come first

Narrative:
In order to keep track of stock
As a store owner
I want to add items back to stock when they're returned

Stakeholder is
secondary

The feature must be
required to achieve this
goal
Scenarios
• The ’perfect’ bridge between the businessfacing and technology-facing sides of a team
Common language which is
reflected all way down in the
code

Scenario 1: Refunded items should be returned to stock
Given a customer previously bought a black sweater from me
And I currently have three black sweaters left in stock
When he returns the sweater for a refund
Then I should have four black sweaters in stock
Why User Stories?
"Maybe it is easier to get users to write down what
they need on a card in a few paragraphs than it is to get
them to see the difference between uses and extends"
- Anonymous
Implementation
http://www.thucydides.info/
http://www.thucydides.info/
Wrap-up
• Pros
- increases the quality of the product
- change with confidence
- live documention (great for maintenance)
- less waste, building ”software that matters”
• Cons
- high need of business engagemang (clear
requirements)
- BDD works best in Agile context
- easy to write fragile tests (high maintenence
cost)
Thank You!

Más contenido relacionado

La actualidad más candente

Better Software Keynote The Complete Developer 07
Better Software Keynote  The Complete Developer 07Better Software Keynote  The Complete Developer 07
Better Software Keynote The Complete Developer 07Enthiosys Inc
 
BDD communication bridges - Expedia TED talk
BDD communication bridges - Expedia TED talkBDD communication bridges - Expedia TED talk
BDD communication bridges - Expedia TED talkAliaksandr Ikhelis
 
Agile Contracts by Drew Jemilo (Agile2015)
Agile Contracts by Drew Jemilo (Agile2015)Agile Contracts by Drew Jemilo (Agile2015)
Agile Contracts by Drew Jemilo (Agile2015)Drew Jemilo
 
Taking the Robot Out of the Human
Taking the Robot Out of the HumanTaking the Robot Out of the Human
Taking the Robot Out of the HumanIIBA UK Chapter
 
Job-to-be-done theory to practice : Ch4 Process
Job-to-be-done theory to practice : Ch4 ProcessJob-to-be-done theory to practice : Ch4 Process
Job-to-be-done theory to practice : Ch4 ProcessPRADA Hsiung
 
Getting Comfortable with BDD
Getting Comfortable with BDDGetting Comfortable with BDD
Getting Comfortable with BDDAlex Sharp
 

La actualidad más candente (10)

Agile Contracts
Agile ContractsAgile Contracts
Agile Contracts
 
Better Software Keynote The Complete Developer 07
Better Software Keynote  The Complete Developer 07Better Software Keynote  The Complete Developer 07
Better Software Keynote The Complete Developer 07
 
9 Proven-Strategies
9 Proven-Strategies9 Proven-Strategies
9 Proven-Strategies
 
BDD communication bridges - Expedia TED talk
BDD communication bridges - Expedia TED talkBDD communication bridges - Expedia TED talk
BDD communication bridges - Expedia TED talk
 
Agile Contracts by Drew Jemilo (Agile2015)
Agile Contracts by Drew Jemilo (Agile2015)Agile Contracts by Drew Jemilo (Agile2015)
Agile Contracts by Drew Jemilo (Agile2015)
 
Taking the Robot Out of the Human
Taking the Robot Out of the HumanTaking the Robot Out of the Human
Taking the Robot Out of the Human
 
Job-to-be-done theory to practice : Ch4 Process
Job-to-be-done theory to practice : Ch4 ProcessJob-to-be-done theory to practice : Ch4 Process
Job-to-be-done theory to practice : Ch4 Process
 
Career Fit 2017
Career Fit 2017Career Fit 2017
Career Fit 2017
 
DDD eXchange
DDD eXchangeDDD eXchange
DDD eXchange
 
Getting Comfortable with BDD
Getting Comfortable with BDDGetting Comfortable with BDD
Getting Comfortable with BDD
 

Similar a BDD Short Introduction

ATD MD Healthcare and Public Health Talent Development Community of Practice ...
ATD MD Healthcare and Public Health Talent Development Community of Practice ...ATD MD Healthcare and Public Health Talent Development Community of Practice ...
ATD MD Healthcare and Public Health Talent Development Community of Practice ...William Brantley, PhD, PMP
 
Targeted documentation
Targeted documentationTargeted documentation
Targeted documentationAlyssa Fox
 
Behaviour driven development aka bdd
Behaviour driven development aka bddBehaviour driven development aka bdd
Behaviour driven development aka bddPrince Gupta
 
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...Garth Knudson
 
IT Application Development - with SDLC.pptx
IT Application Development - with SDLC.pptxIT Application Development - with SDLC.pptx
IT Application Development - with SDLC.pptxdjualaja88
 
Improving Application Development Effectiveness
Improving Application Development Effectiveness Improving Application Development Effectiveness
Improving Application Development Effectiveness Computer Aid, Inc
 
skEdit-marketing plan for new android app
skEdit-marketing plan for new android appskEdit-marketing plan for new android app
skEdit-marketing plan for new android appharichandana kolagani
 
project (Salon Management).pptx
project (Salon Management).pptxproject (Salon Management).pptx
project (Salon Management).pptxssuserefca8b
 
LPCx Barcelona: How to use the design thinking methodology to revamp your API?
LPCx Barcelona: How to use the design thinking methodology to revamp your API?LPCx Barcelona: How to use the design thinking methodology to revamp your API?
LPCx Barcelona: How to use the design thinking methodology to revamp your API?Thiga
 
Resume _571966_Hrushikesh Deshpande
Resume _571966_Hrushikesh DeshpandeResume _571966_Hrushikesh Deshpande
Resume _571966_Hrushikesh Deshpandehrushikesh deshpande
 
Agile Projects Estimation and Planning
Agile Projects Estimation and PlanningAgile Projects Estimation and Planning
Agile Projects Estimation and PlanningReturn on Intelligence
 
CHAPTER 3PROJECT MANAGEMENTT.docx
CHAPTER 3PROJECT MANAGEMENTT.docxCHAPTER 3PROJECT MANAGEMENTT.docx
CHAPTER 3PROJECT MANAGEMENTT.docxwalterl4
 
Sasikumar Selvaraj CV- Mainframe
Sasikumar Selvaraj CV- MainframeSasikumar Selvaraj CV- Mainframe
Sasikumar Selvaraj CV- Mainframesasikumar s
 
Borys Pratsiuk "How to be NVidia partner"
Borys Pratsiuk "How to be NVidia partner"Borys Pratsiuk "How to be NVidia partner"
Borys Pratsiuk "How to be NVidia partner"Lviv Startup Club
 
How to justify technical debt mitigations in Software Engineering
How to justify technical debt mitigations in Software EngineeringHow to justify technical debt mitigations in Software Engineering
How to justify technical debt mitigations in Software EngineeringAndré Agostinho
 
Scaling Awesome - 10 Actionable Strategies for Technology Transformation
Scaling Awesome - 10 Actionable Strategies for Technology TransformationScaling Awesome - 10 Actionable Strategies for Technology Transformation
Scaling Awesome - 10 Actionable Strategies for Technology TransformationChef
 
Arvind Pal_Resume
Arvind Pal_ResumeArvind Pal_Resume
Arvind Pal_ResumeArvind Pal
 

Similar a BDD Short Introduction (20)

ATD MD Healthcare and Public Health Talent Development Community of Practice ...
ATD MD Healthcare and Public Health Talent Development Community of Practice ...ATD MD Healthcare and Public Health Talent Development Community of Practice ...
ATD MD Healthcare and Public Health Talent Development Community of Practice ...
 
Targeted documentation
Targeted documentationTargeted documentation
Targeted documentation
 
Agile sdlc
Agile sdlcAgile sdlc
Agile sdlc
 
Behaviour driven development aka bdd
Behaviour driven development aka bddBehaviour driven development aka bdd
Behaviour driven development aka bdd
 
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
BizFlow - BPM at Jardine Lloyd Thompson for Sales, Document Handling, Custome...
 
IT Application Development - with SDLC.pptx
IT Application Development - with SDLC.pptxIT Application Development - with SDLC.pptx
IT Application Development - with SDLC.pptx
 
Improving Application Development Effectiveness
Improving Application Development Effectiveness Improving Application Development Effectiveness
Improving Application Development Effectiveness
 
skEdit-marketing plan for new android app
skEdit-marketing plan for new android appskEdit-marketing plan for new android app
skEdit-marketing plan for new android app
 
project (Salon Management).pptx
project (Salon Management).pptxproject (Salon Management).pptx
project (Salon Management).pptx
 
LPCx Barcelona: How to use the design thinking methodology to revamp your API?
LPCx Barcelona: How to use the design thinking methodology to revamp your API?LPCx Barcelona: How to use the design thinking methodology to revamp your API?
LPCx Barcelona: How to use the design thinking methodology to revamp your API?
 
ELEC2017 1.1 r. king - how lean and digital capability can work together
ELEC2017   1.1 r. king - how lean and digital capability can work together ELEC2017   1.1 r. king - how lean and digital capability can work together
ELEC2017 1.1 r. king - how lean and digital capability can work together
 
Resume _571966_Hrushikesh Deshpande
Resume _571966_Hrushikesh DeshpandeResume _571966_Hrushikesh Deshpande
Resume _571966_Hrushikesh Deshpande
 
Agile Projects Estimation and Planning
Agile Projects Estimation and PlanningAgile Projects Estimation and Planning
Agile Projects Estimation and Planning
 
REport Fle.pdf
REport Fle.pdfREport Fle.pdf
REport Fle.pdf
 
CHAPTER 3PROJECT MANAGEMENTT.docx
CHAPTER 3PROJECT MANAGEMENTT.docxCHAPTER 3PROJECT MANAGEMENTT.docx
CHAPTER 3PROJECT MANAGEMENTT.docx
 
Sasikumar Selvaraj CV- Mainframe
Sasikumar Selvaraj CV- MainframeSasikumar Selvaraj CV- Mainframe
Sasikumar Selvaraj CV- Mainframe
 
Borys Pratsiuk "How to be NVidia partner"
Borys Pratsiuk "How to be NVidia partner"Borys Pratsiuk "How to be NVidia partner"
Borys Pratsiuk "How to be NVidia partner"
 
How to justify technical debt mitigations in Software Engineering
How to justify technical debt mitigations in Software EngineeringHow to justify technical debt mitigations in Software Engineering
How to justify technical debt mitigations in Software Engineering
 
Scaling Awesome - 10 Actionable Strategies for Technology Transformation
Scaling Awesome - 10 Actionable Strategies for Technology TransformationScaling Awesome - 10 Actionable Strategies for Technology Transformation
Scaling Awesome - 10 Actionable Strategies for Technology Transformation
 
Arvind Pal_Resume
Arvind Pal_ResumeArvind Pal_Resume
Arvind Pal_Resume
 

Más de Andreas Enbohm

Más de Andreas Enbohm (8)

Hybrid Applications
Hybrid ApplicationsHybrid Applications
Hybrid Applications
 
Software Craftsmanship
Software CraftsmanshipSoftware Craftsmanship
Software Craftsmanship
 
SOLID Design Principles
SOLID Design PrinciplesSOLID Design Principles
SOLID Design Principles
 
Java7 - Top 10 Features
Java7 - Top 10 FeaturesJava7 - Top 10 Features
Java7 - Top 10 Features
 
Java Extension Methods
Java Extension MethodsJava Extension Methods
Java Extension Methods
 
Scala
ScalaScala
Scala
 
Project Lambda - Closures after all?
Project Lambda - Closures after all?Project Lambda - Closures after all?
Project Lambda - Closures after all?
 
Fest
FestFest
Fest
 

Último

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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
 
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
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
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
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
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
 
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
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
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
 

Último (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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
 
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
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
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
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
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
 
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?
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
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...
 

BDD Short Introduction

  • 1. Behavior-Driven Development As a Developer I want clear requirements So I can build the right stuff Andreas Enbohm @enbohm (screenshot from http://www.thucydides.info/ and http://www.wakaleo.com/ )
  • 2. Succesful IT-Projects 1. Build the software right 2. Build the right software
  • 4. State of Succesful IT-Projects The 2011 edition of Standish Group’s annual CHAOS Report found that 42% of IT projects were either delivered late, ran over budget, or failed to deliver all of the requested features, and 21% of projects were cancelled entirely.
  • 5. State of Succesful IT-Projects Scott Ambler’s annual survey on IT Project success rates found a 30%-50% failure rate depending on the methodologies used.
  • 7. The Consequences of Not Building It Right In December 2007, the Queensland Health department* kicked off work on a new payroll system for its 85,000 employees. The initial budget for the project was around $6 million, with a delivery date scheduled for August 2008. When the solution was rolled out in 2010, some 18 months late, it was a disaster. Tens of thousands of public servants were underpaid, overpaid, or even not paid at all. Since the go-live date, over 1000 payroll staff are required to carry out some 200,000 manual processes each fortnight to ensure that staff salaries are paid. In 2012, an independent review found that the project had cost the state over $416 million since going into production, and would cost an additional $837 million dollars to fix. This colossal sum included $220 million just to fix the immediate software issues that were preventing the system from delivering its core capability of paying Queensland Health staff what they are owed each month. * see http://en.wikipedia.org/wiki/Queensland_Health#Payroll_problems
  • 8. The Consequences of Not Building It Right Product nobody wants, wrong built.
  • 9. BDD Behavior-driven development combines techniques and principles of TDD with ideas from domain-driven design and object-oriented analysis and design, with the aim of delivering "software that matters".
  • 10. Benefits • • • • • • Only build feature that add real value Less waste (and hence, reduced cost) Better communication Higher quality, better tested product Traceability, ’Live Documentation’ Enables a way to automatic test the requirements
  • 11. BDD • BDD describes TDD done well - removes word ’test’ - replace it with behaviour, examples, scenarios etc. • Good habits; 1. Working outside-in 2. Using examples to clarify requirements (scenarios) 3. Using a common (ubiquitous) language
  • 12. BDD – Value Driven • A good goal should add value to business - increase revenue - reduce cost - avoid future cost - protect revenue ”Increase revenue by allowing customers to…” ”Prevent current customers switching to competing product by …”
  • 13. BDD – What Does the Customer Need? • Good teams push back! - users tend to express requirements as implementations - we need to find the business need! We need caching So that the page loads fast So that the customer will buy stuff on our site and doesn’t leave page Why? Why? Ok, so to increase the chance a customer will buy [stuff] it need to be ’fast’. Caching might be one way to achive this, but compressing images might be more effective. Or another way might be loaders, or ..
  • 14. BDD – Better understanding • Working outside-in - if you need to explain to a computer how to check the requirement, you’ll need to be damn sure understand it yourself • Business black-box testing is often done manually! - BDD enables automated acceptance testing • Mininum effort /code to fulfull requirement
  • 15. BDD – Common Language • Common Language - communication often the biggest overhead - even bigger if you allow different dialects of terminology - takes time but gains significant advantage
  • 16. BDD
  • 17. User Stories “a concise, written description of a piece of functionality that will be valuable to a user (or owner) of the software. It captures the 'who', 'what' and 'why' of a requirement in a simple, concise way.”
  • 18. User Stories Story: Returns go to stock Goal come first Narrative: In order to keep track of stock As a store owner I want to add items back to stock when they're returned Stakeholder is secondary The feature must be required to achieve this goal
  • 19. Scenarios • The ’perfect’ bridge between the businessfacing and technology-facing sides of a team Common language which is reflected all way down in the code Scenario 1: Refunded items should be returned to stock Given a customer previously bought a black sweater from me And I currently have three black sweaters left in stock When he returns the sweater for a refund Then I should have four black sweaters in stock
  • 20. Why User Stories? "Maybe it is easier to get users to write down what they need on a card in a few paragraphs than it is to get them to see the difference between uses and extends" - Anonymous
  • 24. Wrap-up • Pros - increases the quality of the product - change with confidence - live documention (great for maintenance) - less waste, building ”software that matters” • Cons - high need of business engagemang (clear requirements) - BDD works best in Agile context - easy to write fragile tests (high maintenence cost)