SlideShare a Scribd company logo
1 of 28
Download to read offline
@kimvanwilgen | www.kimvanwilgen.comSpecification by example 1
@kimvanwilgen | www.kimvanwilgen.com
Specification by
example
Kim van Wilgen
www.kimvanwilgen.com
@kimvanwilgen | www.kimvanwilgen.comSpecification by example 5
Specification by example is a collaborative approach to
defining requirements and tests for software products
based on using realistic examples instead of abstract
statements. It is applied in agile software development, in
particular behavior driven development.
Gojko Adzic in Specification by example, 2011
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 6
And how about BDD, TDD and ATDD?
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 7
Goal of specification by example
@kimvanwilgen | www.kimvanwilgen.comSpecification by example 8
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 9
Specifying use cases asks for a
design of a solution.
This is not a business capacity
➢ Derive scope together
➢ Focus on goals and
understanding value
➢ Ask Why to uncover hidden
goals
➢ Ask alternatives to express value
Deriving scope from business goals
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 10
Methods to derive scope from goals
Smart use cases
User story mapping
Example mapping
Feature injection
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 11
Case:
The company builds software for ATM’s. They ask for implementing a free choice of bills.
Customer:
- Explain how you want to have a free choice in bills to improve satisfaction.
- Why do you want a free choice in bills: It was found that customers want a choice in bills when withdrawing, and
that improves customer satisfaction at the ATM
- Why do you want improved customer satisfaction: Some banks are choosing ATM software vendors based on this.
Turnaround will improve by 90%.
- Is there a workaround for choosing notes: Yes, a customer can withdraw a small amount of money for pocket
change and the rest in big bills, or change one big note at a store
- Do customers ever have the need for only big bills: No
- Could we always give some small notes and have improved customer satisfaction: Yes
- Will customer satisfaction be higher when customers can choose the composition of their small notes? Yes
- Is a choice amongst two or three option satisfactionary? Yes
- In what countries will the software be operated? In the eurozone incl. UK and Switserland
Let’s try scoping
@kimvanwilgen | www.kimvanwilgen.comSpecification by example 12
@kimvanwilgen | www.kimvanwilgen.com
Key examples
Getting examples to gather
the specifications and get a
deep understanding of the
case
@kimvanwilgen | www.kimvanwilgen.comSpecification by example 13
@kimvanwilgen | www.kimvanwilgen.com
Example mapping
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 14
Example mapping
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 15
Three amigos Business
Developer
Tester
More than 25
minutes
Practice more
Story too big
Too many questions
Feedback
from example
mapping
Many reds  Stop
Some reds  Define actions
Example mapping session
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 16
Case: You are building the use case for choosing bills for a cash
withdrawal. Get the key examples
Customer:
- Is the choice entirely free or are there contraints? We don’t want our small bills to run out
fast. So there will be some maximum on the amount in small bills.
- How big is the maximum of small bills? Well I don’t know yet. I guess it depends on the
country’s currency anyway
- How is it determined which bills to provide? I don’t know. I would like some small bills but i
guess never more then 4 of the same notes.
- What if the bills of some kind run out? Then you will offer only alternatives that don’t
contain those.
- How can the customer choose? He will be presented with some standard options, or with
the least amount of options available given the presence of notes and the amount of the
cash withdrawal.
Key examples
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 17
• Saves time and makes the meeting effective
• Get a basic structure in place
Preparation and analysis
• Leads to a traditional handoff from analyst to developer: developers
just take the requirements without deep understanding
• For complex cases do just enough preparation to have a discussion
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 18
Case: You are building the use case for choosing bills for a cash withdrawal. Get the key examples
Customer:
- Is the choice entirely free or are there contraints? We don’t want our small bills to run out fast. So there will be some maximum on the amount in small bills.
- How big is the maximum of small bills? It’s about giving some pocket money. Ten small bills should suffice. The rest will always be in big bills. Otherwise the ATM could fysicaly disfunction too.
- What are small bills? Depends on the country. For euros it’s 10, and 20, the other note is 50. For the UK it’s 5, 10 and 20, also leaving 50’s. And in Switserland it’s 10, 20 and 50, leaving the 100, 200 and 1000 bills.
- Hmmm, maybe we should focus on euros and make the other algoritms in a seperate use case? That’s fine.
- How is it determined which bills to provide? There will be three options: smallest possible, least pocket change possible, and the ‘ big pocket money’ option.
Smallest possible: Take 4 x 10. Add 4 times 20, and add 50’s. But only if the withdrawal amount isn’t reached.
Example: withdraw 100. Get 4 x 10 = 40. Add 3 x 20.= 100
Example 2: withdray 70. Get 4 x 10 = 40. Add 2 x 20 = 80. Oh, now subtract the biggest note possible to get to the amount. So in this case subtract 1 x 10 = 70. So 3 x 10 and 2 x 20.
Example 3: Wtihdraw 130. Get 4 x 10, 4 x 20 and 1 x 50 = 170. Subtract 2 x 20 = 130.
Example 4: Withdraw 140. Get 4 x 10, 4 x 20 and 1 x 50 = 170. Subtract 1 x 20 and 1 x 10 = 130
Big pocket money
Take 4 x 20 and add 50’s. Add 20 and then 10 to reach the amount
Example: Withdraw 100. Get 4 x 20. Then add 20 to get to 100. So 5 x 20
Example 2: Withdraw 130. Get 4 x 20. Then add 50. So 4 x 20 and 1 x 50
Example 3: Withdraw 140. Get 4 x 20. Then add 50. Then add 10. So 4 x 20, 1 x 10, 1 x 50
Least pocket change possible
Take as many 50’s as possible. Then add 20’s en then a 10.
Example: Withdrax 100. Get 2 x 50.
Example 2: Withdraw 140. Get 2 x 50 and 2 x 20.
- What if the bills of some kind run out? Then you will offer only alternatives that don’t contain those, using the same algoritm but now allowing up to 8 x the small bill that is available..
- Might we set up a table with the options for each amount, including the options when some notes aren’t available? Yes, that’s fine.
Key examples
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 19
Business users think about the user interface
perspective. They offer examples on how things
should work rather than what is required. This extra
information must be removed to make key examples
simple to communicate and understand.
Refining the specification
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 20
Automating the specification without changes
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 21
Living documentation
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 22
Tools for automation
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 23
Imperative vs. Declarative language
And being unibiquitous
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 24
Imperative vs. Declarative style
Gone too far
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 25
Avoid workflow style
It leads to lots of repetition
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 26
Focus on a single action
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 27
Test pyramid: make small tests
Focus on small tests and fast feedback that’s valuable and supports you the most
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 28
Case: Implement the case to withdraw an amount of 130 euro.
Try it!
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 29
Withdraw money will
provide three options
Withdraw 130 with all
notes available will give
you (4 x 10, 2 x 20, 1 x
50), (4 x 20, 1 x 50) and
(1 x 10, 1 x 20 and 2 x 50)
Withdraw 130 with no
10’s will give you (4 x 20,
1 x 50)
Seperate tests for their function
@kimvanwilgen| www.kimvanwilgen.comSpecification by example 30
Deriving scope
Collaborate on deriving scope
Scoping asks for design
Key examples
Use example mapping
Stop if there are too many questions
Prepare somewhat
Refining the specification
Remove UI for maintainability
Automating without changes
Use declarative language for maintainability
Avoid workflow style
Make tests small
Wrap up
@kimvanwilgen | www.kimvanwilgen.comSpecification by example 31
@kimvanwilgen | www.kimvanwilgen.com
References
and questions
www.kimvanwilgen.com
kimvanwilgen
kimvanwilgen@gmail.com

More Related Content

What's hot

Lean Innvotion: Grössere Erfolgschance oder mindestens früh scheitern
Lean Innvotion: Grössere Erfolgschance oder mindestens früh scheiternLean Innvotion: Grössere Erfolgschance oder mindestens früh scheitern
Lean Innvotion: Grössere Erfolgschance oder mindestens früh scheiternpragmatic solutions gmbh
 
Angel day - Governance and Investment in a Lean Way
Angel day - Governance and Investment in a Lean WayAngel day - Governance and Investment in a Lean Way
Angel day - Governance and Investment in a Lean Waypragmatic solutions gmbh
 
20180424 / The Lead developer NY / The continuous culture
20180424 / The Lead developer NY / The continuous culture20180424 / The Lead developer NY / The continuous culture
20180424 / The Lead developer NY / The continuous cultureKim van Wilgen
 
Making Products - The Modern Way
Making Products - The Modern WayMaking Products - The Modern Way
Making Products - The Modern WaySheen Yap
 
How to Run A/B Tests Successfully by Vice Media Product Manager
How to Run A/B Tests Successfully by Vice Media Product ManagerHow to Run A/B Tests Successfully by Vice Media Product Manager
How to Run A/B Tests Successfully by Vice Media Product ManagerProduct School
 
Class Introduction: Digital Product Management
Class Introduction: Digital Product ManagementClass Introduction: Digital Product Management
Class Introduction: Digital Product ManagementAlex Cowan
 
DevOps - A catalyst to enterprise agility - Heidi Araya & Esteban Garcia
DevOps - A catalyst to enterprise agility - Heidi Araya & Esteban GarciaDevOps - A catalyst to enterprise agility - Heidi Araya & Esteban Garcia
DevOps - A catalyst to enterprise agility - Heidi Araya & Esteban GarciaHeidi Araya
 
Lean Software Development: Validated Learning
Lean Software Development: Validated LearningLean Software Development: Validated Learning
Lean Software Development: Validated LearningÒscar Vilaplana
 
Visual Management Webinar - LeanKit & Patrick Steyaert
Visual Management Webinar - LeanKit & Patrick SteyaertVisual Management Webinar - LeanKit & Patrick Steyaert
Visual Management Webinar - LeanKit & Patrick SteyaertLeanKit
 
How Agile Are You Really?
How Agile Are You Really?How Agile Are You Really?
How Agile Are You Really?Karoliina Luoto
 
Challenges with agile testing process and how to debug and troubleshoot these...
Challenges with agile testing process and how to debug and troubleshoot these...Challenges with agile testing process and how to debug and troubleshoot these...
Challenges with agile testing process and how to debug and troubleshoot these...Chandan Patary
 
BCS Elite - March 2014 - v3
BCS Elite - March 2014 - v3BCS Elite - March 2014 - v3
BCS Elite - March 2014 - v3Gary Green
 

What's hot (19)

Lean Innovation an der HSLU
Lean Innovation an der HSLULean Innovation an der HSLU
Lean Innovation an der HSLU
 
Lean Innvotion: Grössere Erfolgschance oder mindestens früh scheitern
Lean Innvotion: Grössere Erfolgschance oder mindestens früh scheiternLean Innvotion: Grössere Erfolgschance oder mindestens früh scheitern
Lean Innvotion: Grössere Erfolgschance oder mindestens früh scheitern
 
Lean innovation Introduction
Lean innovation IntroductionLean innovation Introduction
Lean innovation Introduction
 
Angel day - Governance and Investment in a Lean Way
Angel day - Governance and Investment in a Lean WayAngel day - Governance and Investment in a Lean Way
Angel day - Governance and Investment in a Lean Way
 
From Scrum To Agile Management
From Scrum To Agile ManagementFrom Scrum To Agile Management
From Scrum To Agile Management
 
20180424 / The Lead developer NY / The continuous culture
20180424 / The Lead developer NY / The continuous culture20180424 / The Lead developer NY / The continuous culture
20180424 / The Lead developer NY / The continuous culture
 
Making Products - The Modern Way
Making Products - The Modern WayMaking Products - The Modern Way
Making Products - The Modern Way
 
Lean Innovation introduction
Lean Innovation introductionLean Innovation introduction
Lean Innovation introduction
 
How to Run A/B Tests Successfully by Vice Media Product Manager
How to Run A/B Tests Successfully by Vice Media Product ManagerHow to Run A/B Tests Successfully by Vice Media Product Manager
How to Run A/B Tests Successfully by Vice Media Product Manager
 
Class Introduction: Digital Product Management
Class Introduction: Digital Product ManagementClass Introduction: Digital Product Management
Class Introduction: Digital Product Management
 
Pm engineers-ai ch-e-9apr2015
Pm engineers-ai ch-e-9apr2015Pm engineers-ai ch-e-9apr2015
Pm engineers-ai ch-e-9apr2015
 
DevOps - A catalyst to enterprise agility - Heidi Araya & Esteban Garcia
DevOps - A catalyst to enterprise agility - Heidi Araya & Esteban GarciaDevOps - A catalyst to enterprise agility - Heidi Araya & Esteban Garcia
DevOps - A catalyst to enterprise agility - Heidi Araya & Esteban Garcia
 
Lean Software Development: Validated Learning
Lean Software Development: Validated LearningLean Software Development: Validated Learning
Lean Software Development: Validated Learning
 
Visual Management Webinar - LeanKit & Patrick Steyaert
Visual Management Webinar - LeanKit & Patrick SteyaertVisual Management Webinar - LeanKit & Patrick Steyaert
Visual Management Webinar - LeanKit & Patrick Steyaert
 
The lean startup
The lean startupThe lean startup
The lean startup
 
How Agile Are You Really?
How Agile Are You Really?How Agile Are You Really?
How Agile Are You Really?
 
Lean Innovation for Investors
Lean Innovation for InvestorsLean Innovation for Investors
Lean Innovation for Investors
 
Challenges with agile testing process and how to debug and troubleshoot these...
Challenges with agile testing process and how to debug and troubleshoot these...Challenges with agile testing process and how to debug and troubleshoot these...
Challenges with agile testing process and how to debug and troubleshoot these...
 
BCS Elite - March 2014 - v3
BCS Elite - March 2014 - v3BCS Elite - March 2014 - v3
BCS Elite - March 2014 - v3
 

Similar to Specification by Example Techniques

5 examples of business / financial models in Excel
5 examples of business / financial models in Excel5 examples of business / financial models in Excel
5 examples of business / financial models in ExcelAsen Gyczew
 
New Principles for Digital Experiences That Perform
New Principles for Digital Experiences That PerformNew Principles for Digital Experiences That Perform
New Principles for Digital Experiences That PerformOptimizely
 
DRAFT: Private Banking Business Models
DRAFT: Private Banking Business ModelsDRAFT: Private Banking Business Models
DRAFT: Private Banking Business ModelsAlexander Osterwalder
 
2018EFI01 The Ultimate Pitch
2018EFI01 The Ultimate Pitch2018EFI01 The Ultimate Pitch
2018EFI01 The Ultimate PitchAli Ridha Jaffar
 
University of Michigan in Silicon Valley 030211
University of Michigan in Silicon Valley 030211University of Michigan in Silicon Valley 030211
University of Michigan in Silicon Valley 030211Stanford University
 
Disciplined Entrepreneurship: How does your Customer Acquire Your Product? Ho...
Disciplined Entrepreneurship: How does your Customer Acquire Your Product? Ho...Disciplined Entrepreneurship: How does your Customer Acquire Your Product? Ho...
Disciplined Entrepreneurship: How does your Customer Acquire Your Product? Ho...Elaine Chen
 
How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
How to A/B Test with WordPress: Conversions Aren’t Just for Landing PagesHow to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
How to A/B Test with WordPress: Conversions Aren’t Just for Landing PagesBrendan Sera-Shriar
 
Business Valuation PowerPoint Presentation Slides
Business Valuation PowerPoint Presentation SlidesBusiness Valuation PowerPoint Presentation Slides
Business Valuation PowerPoint Presentation SlidesSlideTeam
 
2.+Startup+business+model.pdf
2.+Startup+business+model.pdf2.+Startup+business+model.pdf
2.+Startup+business+model.pdfppskgt
 
Example presentation business plan powerpoint presentation slides
Example presentation business plan powerpoint presentation slidesExample presentation business plan powerpoint presentation slides
Example presentation business plan powerpoint presentation slidesSlideTeam
 
Example Presentation Business Plan PowerPoint Presentation Slides
Example Presentation Business Plan PowerPoint Presentation SlidesExample Presentation Business Plan PowerPoint Presentation Slides
Example Presentation Business Plan PowerPoint Presentation SlidesSlideTeam
 
Sample Ppt Business Proposal Powerpoint Presentation Slides
Sample Ppt Business Proposal Powerpoint Presentation SlidesSample Ppt Business Proposal Powerpoint Presentation Slides
Sample Ppt Business Proposal Powerpoint Presentation SlidesSlideTeam
 
DigitalOcean SaaS Webinar - Jake Levirne
DigitalOcean SaaS Webinar - Jake LevirneDigitalOcean SaaS Webinar - Jake Levirne
DigitalOcean SaaS Webinar - Jake LevirneJake Levirne
 
Investor Pitch Deck For A Start Up Powerpoint Presentation Slides
Investor Pitch Deck For A Start Up Powerpoint Presentation SlidesInvestor Pitch Deck For A Start Up Powerpoint Presentation Slides
Investor Pitch Deck For A Start Up Powerpoint Presentation SlidesSlideTeam
 
Investor Pitch Deck For A Start Up PowerPoint Presentation Slides
Investor Pitch Deck For A Start Up PowerPoint Presentation Slides Investor Pitch Deck For A Start Up PowerPoint Presentation Slides
Investor Pitch Deck For A Start Up PowerPoint Presentation Slides SlideTeam
 
Sample PPT Business Proposal PowerPoint Presentation Slides
Sample PPT Business Proposal PowerPoint Presentation Slides Sample PPT Business Proposal PowerPoint Presentation Slides
Sample PPT Business Proposal PowerPoint Presentation Slides SlideTeam
 
Business Valuation Powerpoint Presentation Slides
Business Valuation Powerpoint Presentation SlidesBusiness Valuation Powerpoint Presentation Slides
Business Valuation Powerpoint Presentation SlidesSlideTeam
 
Refactor your Specs - 2017 Edition
Refactor your Specs - 2017 EditionRefactor your Specs - 2017 Edition
Refactor your Specs - 2017 EditionCyrille Martraire
 

Similar to Specification by Example Techniques (20)

5 examples of business / financial models in Excel
5 examples of business / financial models in Excel5 examples of business / financial models in Excel
5 examples of business / financial models in Excel
 
New Principles for Digital Experiences That Perform
New Principles for Digital Experiences That PerformNew Principles for Digital Experiences That Perform
New Principles for Digital Experiences That Perform
 
Thuyết trình
Thuyết trìnhThuyết trình
Thuyết trình
 
DRAFT: Private Banking Business Models
DRAFT: Private Banking Business ModelsDRAFT: Private Banking Business Models
DRAFT: Private Banking Business Models
 
2018EFI01 The Ultimate Pitch
2018EFI01 The Ultimate Pitch2018EFI01 The Ultimate Pitch
2018EFI01 The Ultimate Pitch
 
University of Michigan in Silicon Valley 030211
University of Michigan in Silicon Valley 030211University of Michigan in Silicon Valley 030211
University of Michigan in Silicon Valley 030211
 
Disciplined Entrepreneurship: How does your Customer Acquire Your Product? Ho...
Disciplined Entrepreneurship: How does your Customer Acquire Your Product? Ho...Disciplined Entrepreneurship: How does your Customer Acquire Your Product? Ho...
Disciplined Entrepreneurship: How does your Customer Acquire Your Product? Ho...
 
How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
How to A/B Test with WordPress: Conversions Aren’t Just for Landing PagesHow to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
How to A/B Test with WordPress: Conversions Aren’t Just for Landing Pages
 
Business Valuation PowerPoint Presentation Slides
Business Valuation PowerPoint Presentation SlidesBusiness Valuation PowerPoint Presentation Slides
Business Valuation PowerPoint Presentation Slides
 
2.+Startup+business+model.pdf
2.+Startup+business+model.pdf2.+Startup+business+model.pdf
2.+Startup+business+model.pdf
 
Example presentation business plan powerpoint presentation slides
Example presentation business plan powerpoint presentation slidesExample presentation business plan powerpoint presentation slides
Example presentation business plan powerpoint presentation slides
 
Example Presentation Business Plan PowerPoint Presentation Slides
Example Presentation Business Plan PowerPoint Presentation SlidesExample Presentation Business Plan PowerPoint Presentation Slides
Example Presentation Business Plan PowerPoint Presentation Slides
 
Sample Ppt Business Proposal Powerpoint Presentation Slides
Sample Ppt Business Proposal Powerpoint Presentation SlidesSample Ppt Business Proposal Powerpoint Presentation Slides
Sample Ppt Business Proposal Powerpoint Presentation Slides
 
DigitalOcean SaaS Webinar - Jake Levirne
DigitalOcean SaaS Webinar - Jake LevirneDigitalOcean SaaS Webinar - Jake Levirne
DigitalOcean SaaS Webinar - Jake Levirne
 
Investor Pitch Deck For A Start Up Powerpoint Presentation Slides
Investor Pitch Deck For A Start Up Powerpoint Presentation SlidesInvestor Pitch Deck For A Start Up Powerpoint Presentation Slides
Investor Pitch Deck For A Start Up Powerpoint Presentation Slides
 
Investor Pitch Deck For A Start Up PowerPoint Presentation Slides
Investor Pitch Deck For A Start Up PowerPoint Presentation Slides Investor Pitch Deck For A Start Up PowerPoint Presentation Slides
Investor Pitch Deck For A Start Up PowerPoint Presentation Slides
 
Sample PPT Business Proposal PowerPoint Presentation Slides
Sample PPT Business Proposal PowerPoint Presentation Slides Sample PPT Business Proposal PowerPoint Presentation Slides
Sample PPT Business Proposal PowerPoint Presentation Slides
 
Business Valuation Powerpoint Presentation Slides
Business Valuation Powerpoint Presentation SlidesBusiness Valuation Powerpoint Presentation Slides
Business Valuation Powerpoint Presentation Slides
 
Refactor your Specs - 2017 Edition
Refactor your Specs - 2017 EditionRefactor your Specs - 2017 Edition
Refactor your Specs - 2017 Edition
 
Design Thinking for the Business Case
Design Thinking for the Business CaseDesign Thinking for the Business Case
Design Thinking for the Business Case
 

Recently uploaded

Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxKartikeyaDwivedi3
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...121011101441
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionMebane Rash
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfme23b1001
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptSAURABHKUMAR892774
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catcherssdickerson1
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitterShivangiSharma879191
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfAsst.prof M.Gokilavani
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 

Recently uploaded (20)

9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Concrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptxConcrete Mix Design - IS 10262-2019 - .pptx
Concrete Mix Design - IS 10262-2019 - .pptx
 
Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...Instrumentation, measurement and control of bio process parameters ( Temperat...
Instrumentation, measurement and control of bio process parameters ( Temperat...
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
US Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of ActionUS Department of Education FAFSA Week of Action
US Department of Education FAFSA Week of Action
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Electronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdfElectronically Controlled suspensions system .pdf
Electronically Controlled suspensions system .pdf
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Arduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.pptArduino_CSE ece ppt for working and principal of arduino.ppt
Arduino_CSE ece ppt for working and principal of arduino.ppt
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor CatchersTechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
TechTAC® CFD Report Summary: A Comparison of Two Types of Tubing Anchor Catchers
 
8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter8251 universal synchronous asynchronous receiver transmitter
8251 universal synchronous asynchronous receiver transmitter
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdfCCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
CCS355 Neural Networks & Deep Learning Unit 1 PDF notes with Question bank .pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 

Specification by Example Techniques

  • 1. @kimvanwilgen | www.kimvanwilgen.comSpecification by example 1 @kimvanwilgen | www.kimvanwilgen.com Specification by example Kim van Wilgen www.kimvanwilgen.com
  • 2. @kimvanwilgen | www.kimvanwilgen.comSpecification by example 5 Specification by example is a collaborative approach to defining requirements and tests for software products based on using realistic examples instead of abstract statements. It is applied in agile software development, in particular behavior driven development. Gojko Adzic in Specification by example, 2011
  • 3. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 6 And how about BDD, TDD and ATDD?
  • 4. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 7 Goal of specification by example
  • 6. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 9 Specifying use cases asks for a design of a solution. This is not a business capacity ➢ Derive scope together ➢ Focus on goals and understanding value ➢ Ask Why to uncover hidden goals ➢ Ask alternatives to express value Deriving scope from business goals
  • 7. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 10 Methods to derive scope from goals Smart use cases User story mapping Example mapping Feature injection
  • 8. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 11 Case: The company builds software for ATM’s. They ask for implementing a free choice of bills. Customer: - Explain how you want to have a free choice in bills to improve satisfaction. - Why do you want a free choice in bills: It was found that customers want a choice in bills when withdrawing, and that improves customer satisfaction at the ATM - Why do you want improved customer satisfaction: Some banks are choosing ATM software vendors based on this. Turnaround will improve by 90%. - Is there a workaround for choosing notes: Yes, a customer can withdraw a small amount of money for pocket change and the rest in big bills, or change one big note at a store - Do customers ever have the need for only big bills: No - Could we always give some small notes and have improved customer satisfaction: Yes - Will customer satisfaction be higher when customers can choose the composition of their small notes? Yes - Is a choice amongst two or three option satisfactionary? Yes - In what countries will the software be operated? In the eurozone incl. UK and Switserland Let’s try scoping
  • 9. @kimvanwilgen | www.kimvanwilgen.comSpecification by example 12 @kimvanwilgen | www.kimvanwilgen.com Key examples Getting examples to gather the specifications and get a deep understanding of the case
  • 10. @kimvanwilgen | www.kimvanwilgen.comSpecification by example 13 @kimvanwilgen | www.kimvanwilgen.com Example mapping
  • 12. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 15 Three amigos Business Developer Tester More than 25 minutes Practice more Story too big Too many questions Feedback from example mapping Many reds  Stop Some reds  Define actions Example mapping session
  • 13. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 16 Case: You are building the use case for choosing bills for a cash withdrawal. Get the key examples Customer: - Is the choice entirely free or are there contraints? We don’t want our small bills to run out fast. So there will be some maximum on the amount in small bills. - How big is the maximum of small bills? Well I don’t know yet. I guess it depends on the country’s currency anyway - How is it determined which bills to provide? I don’t know. I would like some small bills but i guess never more then 4 of the same notes. - What if the bills of some kind run out? Then you will offer only alternatives that don’t contain those. - How can the customer choose? He will be presented with some standard options, or with the least amount of options available given the presence of notes and the amount of the cash withdrawal. Key examples
  • 14. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 17 • Saves time and makes the meeting effective • Get a basic structure in place Preparation and analysis • Leads to a traditional handoff from analyst to developer: developers just take the requirements without deep understanding • For complex cases do just enough preparation to have a discussion
  • 15. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 18 Case: You are building the use case for choosing bills for a cash withdrawal. Get the key examples Customer: - Is the choice entirely free or are there contraints? We don’t want our small bills to run out fast. So there will be some maximum on the amount in small bills. - How big is the maximum of small bills? It’s about giving some pocket money. Ten small bills should suffice. The rest will always be in big bills. Otherwise the ATM could fysicaly disfunction too. - What are small bills? Depends on the country. For euros it’s 10, and 20, the other note is 50. For the UK it’s 5, 10 and 20, also leaving 50’s. And in Switserland it’s 10, 20 and 50, leaving the 100, 200 and 1000 bills. - Hmmm, maybe we should focus on euros and make the other algoritms in a seperate use case? That’s fine. - How is it determined which bills to provide? There will be three options: smallest possible, least pocket change possible, and the ‘ big pocket money’ option. Smallest possible: Take 4 x 10. Add 4 times 20, and add 50’s. But only if the withdrawal amount isn’t reached. Example: withdraw 100. Get 4 x 10 = 40. Add 3 x 20.= 100 Example 2: withdray 70. Get 4 x 10 = 40. Add 2 x 20 = 80. Oh, now subtract the biggest note possible to get to the amount. So in this case subtract 1 x 10 = 70. So 3 x 10 and 2 x 20. Example 3: Wtihdraw 130. Get 4 x 10, 4 x 20 and 1 x 50 = 170. Subtract 2 x 20 = 130. Example 4: Withdraw 140. Get 4 x 10, 4 x 20 and 1 x 50 = 170. Subtract 1 x 20 and 1 x 10 = 130 Big pocket money Take 4 x 20 and add 50’s. Add 20 and then 10 to reach the amount Example: Withdraw 100. Get 4 x 20. Then add 20 to get to 100. So 5 x 20 Example 2: Withdraw 130. Get 4 x 20. Then add 50. So 4 x 20 and 1 x 50 Example 3: Withdraw 140. Get 4 x 20. Then add 50. Then add 10. So 4 x 20, 1 x 10, 1 x 50 Least pocket change possible Take as many 50’s as possible. Then add 20’s en then a 10. Example: Withdrax 100. Get 2 x 50. Example 2: Withdraw 140. Get 2 x 50 and 2 x 20. - What if the bills of some kind run out? Then you will offer only alternatives that don’t contain those, using the same algoritm but now allowing up to 8 x the small bill that is available.. - Might we set up a table with the options for each amount, including the options when some notes aren’t available? Yes, that’s fine. Key examples
  • 16. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 19 Business users think about the user interface perspective. They offer examples on how things should work rather than what is required. This extra information must be removed to make key examples simple to communicate and understand. Refining the specification
  • 17. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 20 Automating the specification without changes
  • 18. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 21 Living documentation
  • 19. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 22 Tools for automation
  • 20. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 23 Imperative vs. Declarative language And being unibiquitous
  • 21. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 24 Imperative vs. Declarative style Gone too far
  • 22. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 25 Avoid workflow style It leads to lots of repetition
  • 23. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 26 Focus on a single action
  • 24. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 27 Test pyramid: make small tests Focus on small tests and fast feedback that’s valuable and supports you the most
  • 25. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 28 Case: Implement the case to withdraw an amount of 130 euro. Try it!
  • 26. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 29 Withdraw money will provide three options Withdraw 130 with all notes available will give you (4 x 10, 2 x 20, 1 x 50), (4 x 20, 1 x 50) and (1 x 10, 1 x 20 and 2 x 50) Withdraw 130 with no 10’s will give you (4 x 20, 1 x 50) Seperate tests for their function
  • 27. @kimvanwilgen| www.kimvanwilgen.comSpecification by example 30 Deriving scope Collaborate on deriving scope Scoping asks for design Key examples Use example mapping Stop if there are too many questions Prepare somewhat Refining the specification Remove UI for maintainability Automating without changes Use declarative language for maintainability Avoid workflow style Make tests small Wrap up
  • 28. @kimvanwilgen | www.kimvanwilgen.comSpecification by example 31 @kimvanwilgen | www.kimvanwilgen.com References and questions www.kimvanwilgen.com kimvanwilgen kimvanwilgen@gmail.com