SlideShare a Scribd company logo
Agile Continuous Improvement
Lunch & Learn
Adventures in
SpecFlow
BDD in Data Hub Configuration
(a.k.a. SEC)
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information2
Agenda - 1 hour
• [10 min] - Introduction to BDD & Executable
Specifications
• [05 min] - Overview of .NET BDD Tools
• [05 min] - Introducing SpecFlow
• [20 min] - DEMO / Hands on
• [05 min] - Benefits
• [05 min] - Problems & Pro Tips
• [05 min] - BDD vs. Unit Tests
• [05 min] – Conclusion & further study
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information3
Agenda - 1 hour
*NO FREE PIZZA*
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information4
Introduction to BDD &
Executable
Specifications
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information5
The Question
What does the
Customer want?
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information6
Not (only) about testing
1. User Story Acceptance Criteria
2. Shared understanding about outcomes
3. Removes implicit expectations (assumptions)
4. Reduces friction in the team
5. What does our solution do and not do?
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information7
* Driven Development
 “Behavior Driven Development” – Dan North
 “Specification by Example”
 “Executable Specifications”
 “Acceptance Test Driven Development” (ATDD)
 “Test Driven Development”
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information8
Overview of .NET BDD
Tools
(there are a lot)
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information9
.NET BDD Frameworks & Libraries
 SpecFlow – Cucumber for .NET
 NSpec
 MSpec
 TestStack.BDDify
 NBehave
 “Vanila” NUnit/MSTest/xUnit.net
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information10
Explore what’s out there
Have a play and figure out which is best for your team
and organisation
SpecFlow is one of many options
A new awesome framework might be released tomorrow
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information11
Introducing SpecFlow
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information12
DEMO
CODE
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information13
Benefits
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information14
Benefits
 Human readable (Gherkin - DSL)
 Build Context Incrementally
 Specification & Documentation
 Early discovery of assumptions in acceptance criteria
 Early discovery of technical assumptions
 Intermediary (Gherkin) between User Story and Code
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information15
Problems & Pro Tips
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information16
Problems & Pro Tips
 SpecFlow comes from Cucumber (Ruby)
 Sharing state between Steps
 Test organisation & structure
 Test naming
 Mock or end-to-end?
 Maintenance
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information17
BDD and Unit Tests
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information18
BDD and Unit Tests
 Do SpecFlow Specs replace unit tests?
 SpecFlow more suited for larger End-to-end tests
 Unit Tests for Devs, BDDS for SCRUM Team &
Stackholders
 SpecFlow generates NUnit tests automatically
 DEMO
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information19
Conclusion
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information20
Conclusion
Sam’s 3 step guide to success!
1. Capture the User Story Acceptance Criteria as
Gherkins
2. Implement SpecFlow Specs and iterate with changes
to Gherkins [Acceptance Criteria WILL change]
3. You get detailed and correct acceptance criteria and
automated regression tests. Everybody wins.
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information21
Conclusion
 Was it worth it?
 Is anyone going to read our Gherkin Specs?
 The effort (money) needed to create and maintain the
Specs needs to taken into account
 The Team needs to be agile & adopt Gherkin and “Spec
first mentality”
 Change in thinking & culture
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information22
Further Study
 http://stackoverflow.com/questions/307895/what-is-the-
most-mature-bdd-framework-for-net
 http://www.specflow.org/resources/
 Specification by Example [Gojko Adzic, 2011]
 The Cucumber Book [Matt Waynne, 2012]
 The Art of Unit Testing [Roy Osherove, 2009]
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information23
Questions?
BE AGILE
© Copyright 2011 ADP, Inc. Proprietary and Confidential Information24
Thank you

More Related Content

PPTX
Spec flow – functional testing made easy
PPTX
SpecFlow for Agile Teams
PDF
NDC 2011 - SpecFlow: Pragmatic BDD for .NET
PPTX
Behaviour Driven Development with SpecFlow
PDF
Spec(ing) Out Your Workflow with SpecFlow
PPTX
Bdd and spec flow
PPT
Acceptance Test Driven Development With Spec Flow And Friends
PPTX
BDD presentation
Spec flow – functional testing made easy
SpecFlow for Agile Teams
NDC 2011 - SpecFlow: Pragmatic BDD for .NET
Behaviour Driven Development with SpecFlow
Spec(ing) Out Your Workflow with SpecFlow
Bdd and spec flow
Acceptance Test Driven Development With Spec Flow And Friends
BDD presentation

What's hot (20)

PPTX
Automated Acceptance Tests in .NET
PDF
Behavior Driven Development with SpecFlow
PPTX
BDD for APIs
PDF
BDD in Action – principles, practices and real-world application
PPTX
Selenium + Specflow
PDF
Help! My Legacy Application is Unmaintainable!
PPTX
Unit Testing in Action - C#, NUnit, and Moq
PDF
Win at life with unit testing
PDF
BDD-Driven Microservices
ODP
FluentSelenium Presentation Code Camp09
PPTX
ATDD in practice
PDF
The WHY behind TDD/BDD and the HOW with RSpec
PDF
TDD vs. ATDD - What, Why, Which, When & Where
PPTX
Bye Bye Cowboy Coder Days! (Legacy Code & TDD)
PPT
Test Driven Development - Overview and Adoption
PDF
BDD in Action - Automated Web Testing with WebDriver and Serenity
PPTX
PHPConf.asia 2016 - BDD with Behat for Beginners
PPTX
Maturing your path toward DevOps with Continuous Testing
PPTX
Agile and ATDD the perfect couple
PPT
Tech talks #1- Unit testing and TDD
Automated Acceptance Tests in .NET
Behavior Driven Development with SpecFlow
BDD for APIs
BDD in Action – principles, practices and real-world application
Selenium + Specflow
Help! My Legacy Application is Unmaintainable!
Unit Testing in Action - C#, NUnit, and Moq
Win at life with unit testing
BDD-Driven Microservices
FluentSelenium Presentation Code Camp09
ATDD in practice
The WHY behind TDD/BDD and the HOW with RSpec
TDD vs. ATDD - What, Why, Which, When & Where
Bye Bye Cowboy Coder Days! (Legacy Code & TDD)
Test Driven Development - Overview and Adoption
BDD in Action - Automated Web Testing with WebDriver and Serenity
PHPConf.asia 2016 - BDD with Behat for Beginners
Maturing your path toward DevOps with Continuous Testing
Agile and ATDD the perfect couple
Tech talks #1- Unit testing and TDD
Ad

Viewers also liked (7)

PPTX
ADP ReThink 2016: All Roads Lead to Transformation
PDF
BDD with JBehave
PPTX
ADP ReThink 2016: A Trusted Partner
PPTX
Specflow: Specification by Example
PDF
BDD using JBehave
PDF
Behavior Driven Development with Cucumber
PDF
Writing Software not Code with Cucumber
ADP ReThink 2016: All Roads Lead to Transformation
BDD with JBehave
ADP ReThink 2016: A Trusted Partner
Specflow: Specification by Example
BDD using JBehave
Behavior Driven Development with Cucumber
Writing Software not Code with Cucumber
Ad

Similar to SpecFlow Executable Specifications (20)

PDF
Best Practices for Upgrading your JD Edwards Software from Oracle
PDF
Return material authorization advance replacement programs apr 27, suite wo...
PPTX
From Outlawed to Outstanding
PDF
Big Data: Myths and Realities
PDF
"Implementing Eye Tracking for Medical, Automotive and Headset Applications,"...
PPTX
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
PDF
Supply chain analytics
PPTX
PeopleTools 8.52 - Five reasons to upgrade
PPTX
FlexPod-Performance-Fall2014-slideshare
PPTX
Ejecución de sizer para SimpliVity Partners
PDF
Intel NFVi Enabling Kit Demo/Lab
PDF
SPCA2013 - Building a SharePoint Factory
PDF
SB Support System
PPTX
Praktische handvatten voor een private cloud implementatie
PDF
Create your Big Data vision and Hadoop-ify your data warehouse
PDF
Profiling of Engagers and Converters with Audience Analytics and Look-alike M...
PDF
Partner Webcast – Oracle Public Cloud for ISVs: Migrating Java EE and ADF app...
PDF
OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2
PPTX
Con8493 simplified ui 2013 tailoring dubois_evers_teter_o'broin_uob_partner
PPTX
Evolution of Big Data at Intel - Crawl, Walk and Run Approach
Best Practices for Upgrading your JD Edwards Software from Oracle
Return material authorization advance replacement programs apr 27, suite wo...
From Outlawed to Outstanding
Big Data: Myths and Realities
"Implementing Eye Tracking for Medical, Automotive and Headset Applications,"...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Supply chain analytics
PeopleTools 8.52 - Five reasons to upgrade
FlexPod-Performance-Fall2014-slideshare
Ejecución de sizer para SimpliVity Partners
Intel NFVi Enabling Kit Demo/Lab
SPCA2013 - Building a SharePoint Factory
SB Support System
Praktische handvatten voor een private cloud implementatie
Create your Big Data vision and Hadoop-ify your data warehouse
Profiling of Engagers and Converters with Audience Analytics and Look-alike M...
Partner Webcast – Oracle Public Cloud for ISVs: Migrating Java EE and ADF app...
OOW15 - Planning Your Upgrade to Oracle E-Business Suite 12.2
Con8493 simplified ui 2013 tailoring dubois_evers_teter_o'broin_uob_partner
Evolution of Big Data at Intel - Crawl, Walk and Run Approach

Recently uploaded (20)

PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Digital Strategies for Manufacturing Companies
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Essential Infomation Tech presentation.pptx
PDF
Understanding Forklifts - TECH EHS Solution
PDF
top salesforce developer skills in 2025.pdf
PPTX
ai tools demonstartion for schools and inter college
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
AI in Product Development-omnex systems
PDF
System and Network Administraation Chapter 3
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Which alternative to Crystal Reports is best for small or large businesses.pdf
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Reimagine Home Health with the Power of Agentic AI​
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Digital Strategies for Manufacturing Companies
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Upgrade and Innovation Strategies for SAP ERP Customers
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
Wondershare Filmora 15 Crack With Activation Key [2025
Essential Infomation Tech presentation.pptx
Understanding Forklifts - TECH EHS Solution
top salesforce developer skills in 2025.pdf
ai tools demonstartion for schools and inter college
Operating system designcfffgfgggggggvggggggggg
AI in Product Development-omnex systems
System and Network Administraation Chapter 3
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool

SpecFlow Executable Specifications

  • 1. Agile Continuous Improvement Lunch & Learn Adventures in SpecFlow BDD in Data Hub Configuration (a.k.a. SEC)
  • 2. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information2 Agenda - 1 hour • [10 min] - Introduction to BDD & Executable Specifications • [05 min] - Overview of .NET BDD Tools • [05 min] - Introducing SpecFlow • [20 min] - DEMO / Hands on • [05 min] - Benefits • [05 min] - Problems & Pro Tips • [05 min] - BDD vs. Unit Tests • [05 min] – Conclusion & further study
  • 3. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information3 Agenda - 1 hour *NO FREE PIZZA*
  • 4. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information4 Introduction to BDD & Executable Specifications
  • 5. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information5 The Question What does the Customer want?
  • 6. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information6 Not (only) about testing 1. User Story Acceptance Criteria 2. Shared understanding about outcomes 3. Removes implicit expectations (assumptions) 4. Reduces friction in the team 5. What does our solution do and not do?
  • 7. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information7 * Driven Development  “Behavior Driven Development” – Dan North  “Specification by Example”  “Executable Specifications”  “Acceptance Test Driven Development” (ATDD)  “Test Driven Development”
  • 8. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information8 Overview of .NET BDD Tools (there are a lot)
  • 9. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information9 .NET BDD Frameworks & Libraries  SpecFlow – Cucumber for .NET  NSpec  MSpec  TestStack.BDDify  NBehave  “Vanila” NUnit/MSTest/xUnit.net
  • 10. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information10 Explore what’s out there Have a play and figure out which is best for your team and organisation SpecFlow is one of many options A new awesome framework might be released tomorrow
  • 11. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information11 Introducing SpecFlow
  • 12. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information12 DEMO CODE
  • 13. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information13 Benefits
  • 14. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information14 Benefits  Human readable (Gherkin - DSL)  Build Context Incrementally  Specification & Documentation  Early discovery of assumptions in acceptance criteria  Early discovery of technical assumptions  Intermediary (Gherkin) between User Story and Code
  • 15. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information15 Problems & Pro Tips
  • 16. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information16 Problems & Pro Tips  SpecFlow comes from Cucumber (Ruby)  Sharing state between Steps  Test organisation & structure  Test naming  Mock or end-to-end?  Maintenance
  • 17. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information17 BDD and Unit Tests
  • 18. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information18 BDD and Unit Tests  Do SpecFlow Specs replace unit tests?  SpecFlow more suited for larger End-to-end tests  Unit Tests for Devs, BDDS for SCRUM Team & Stackholders  SpecFlow generates NUnit tests automatically  DEMO
  • 19. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information19 Conclusion
  • 20. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information20 Conclusion Sam’s 3 step guide to success! 1. Capture the User Story Acceptance Criteria as Gherkins 2. Implement SpecFlow Specs and iterate with changes to Gherkins [Acceptance Criteria WILL change] 3. You get detailed and correct acceptance criteria and automated regression tests. Everybody wins.
  • 21. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information21 Conclusion  Was it worth it?  Is anyone going to read our Gherkin Specs?  The effort (money) needed to create and maintain the Specs needs to taken into account  The Team needs to be agile & adopt Gherkin and “Spec first mentality”  Change in thinking & culture
  • 22. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information22 Further Study  http://stackoverflow.com/questions/307895/what-is-the- most-mature-bdd-framework-for-net  http://www.specflow.org/resources/  Specification by Example [Gojko Adzic, 2011]  The Cucumber Book [Matt Waynne, 2012]  The Art of Unit Testing [Roy Osherove, 2009]
  • 23. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information23 Questions? BE AGILE
  • 24. © Copyright 2011 ADP, Inc. Proprietary and Confidential Information24 Thank you