SlideShare a Scribd company logo
Test	
  Driven	
  Development	
  
              via	
  
         Agile	
  Tes2ng	
  
What	
  is	
  Tes*ng	
  on	
  Agile	
  projects?	
  
Itera&on	
  0	
            Itera&on	
  1	
          Itera&on	
  2	
          Itera&on	
  3	
   ..	
     ..	
     Itera&on	
  n	
  

    Story	
  test	
                                     Showcase	
               Showcase	
                           Showcase	
  
   analysis	
  for	
               IPM	
               Itera2on	
  1,	
         Itera2on	
  2,	
                    Itera2on	
  n-­‐1,	
  
   Itera2on	
  1	
                                         IPM	
                    IPM	
                                IPM	
  

             Test	
                                      Support	
                 Support	
                          Support	
  
                              Itera&on	
  1	
  
   Automa&on	
                                         Itera2on	
  1	
           Itera2on	
  2	
                   Itera2on	
  n-­‐1	
  
                             Story	
  tes&ng	
  
    -­‐	
  strategy,	
  
   framework	
  
    setup,	
  etc.	
  
                               Story	
  test	
         Itera&on	
  2	
          Itera&on	
  3	
                     Itera&on	
  n	
  
                              analysis	
  for	
       Story	
  tes&ng	
        Story	
  tes&ng	
                   Story	
  tes&ng	
  
                              Itera2on	
  2	
  

                                                          Test	
                   Test	
                              Test	
  
                                                       Automa&on	
              Automa&on	
                         Automa&on	
  
                                                         maint.,	
                maint.,	
                           maint.,	
  
                                                        execu&on	
               execu&on	
                          execu&on	
  

                                                        Story	
  test	
          Story	
  test	
                      Story	
  test	
  
                                                       analysis	
  for	
        analysis	
  for	
                    analysis	
  for	
  
                                                       Itera2on	
  3	
          Itera2on	
  4	
                     Itera2on	
  n+1	
  
Story	
  planning	
  
                                        and	
  wri&ng	
  

               Showcase	
                                        IPM	
  




 Automa&on	
  
  (execu&on,	
                                                             QA	
  kickoff	
  
 maintenance)	
  

                                  Agile	
  Tes2ng	
  	
  
                                 in	
  an	
  Itera2on
 Manual	
  +	
  
Exploratory	
                                                                 Story	
  kickoff	
  
  Tes&ng	
  




             BA	
  /	
  QA	
                                   Test	
  Scenario	
  
            Volleyball	
                                          Wri&ng	
  

                                       Implement	
  Test	
  
                                         Automa&on	
  
What	
  makes	
  Agile	
  Teams	
  	
  
        successful?	
  




Test	
  Automa2on	
  
What	
  makes	
  Agile	
  Tes*ng	
  
       unsuccessful?	
  




Test	
  Automa2on	
  
The	
  Test	
  Pyramid	
  
•  “Succeeding	
  with	
  Agile”	
  –	
  Mike	
  Cohn	
  

•  Mar*n	
  Fowler	
  –	
  Test	
  Pyramid	
  
    –  hCp://mar*nfowler.com/bliki/TestPyramid.html	
  
Ideal	
  Test	
  Pyramid	
  
Test Driven Development via Agile Testing
Test	
  Pyramid	
  reality	
  




Development	
  team	
  
Test	
  Pyramid	
                 QA	
  team	
  
                              Test	
  Pyramid	
  
Test	
  Pyramid	
  –	
  An*	
  PaCern	
  
Case	
  Study	
  


                    •  Mul*ple,	
  long	
  
                       running	
  projects	
  

                    •  Legacy	
  
                       applica*ons	
  

                    •  Integrated	
  
Test Driven Development via Agile Testing
Test Driven Development via Agile Testing
Its	
  not	
  what	
  I	
  
said,	
  its	
  what	
  I	
  
        mean!	
  
Test Driven Development via Agile Testing
Test Driven Development via Agile Testing
•  Remove	
  the	
  ambiguity	
  
•  Same	
  visibility	
  for	
  all	
  
Test Driven Development via Agile Testing
Evolu*on	
  of	
  Test	
  Frameworks	
  
                Behavior	
  
                 Driven	
  
              Development	
  
                 (BDD)	
  

               Op*mized	
  
                scripts	
  

                Record	
  &	
  
                Playback	
  	
  



                  Core	
  
               Framework	
  
Behavior	
  Driven	
  Development	
  	
  
               (BDD)	
  
RED	
  




REFACTOR	
               GREEN	
  
Behavior	
  Driven	
  Tes*ng	
  
          (BDT)	
  
Expected	
  Func&onality:	
  
	
  
The	
  customer	
  should	
  be	
  able	
  to	
  withdraw	
  
money	
  from	
  his	
  account	
  via	
  an	
  ATM	
  machine	
  
BDD	
  Example:	
  

Given	
  the	
  account	
  has	
  balance	
  of	
  INR	
  5000	
  
When	
  the	
  customer	
  requests	
  INR	
  1000	
  
Then	
  the	
  account	
  is	
  debited	
  by	
  INR	
  1000	
  
BDT	
  Example:	
  
Given	
  the	
  account	
  is	
  in	
  credit	
  
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	
  
New	
  Expected	
  Func&onality:	
  
	
  
The	
  customer	
  should	
  be	
  able	
  to	
  withdraw	
  
money	
  from	
  his	
  account	
  only	
  if	
  his	
  card	
  is	
  
valid	
  
BDT	
  Example	
  -­‐	
  updated:	
  
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	
  
Test	
  specifica*on	
  styles	
  

Story:	
  Animal	
  Submission	
  
	
  
As	
  a	
  Zoologist	
  
I	
  want	
  to	
  add	
  a	
  new	
  animal	
  to	
  the	
  site	
  
So	
  that	
  I	
  can	
  share	
  my	
  animal	
  knowledge	
  
with	
  the	
  community	
  
Impera*ve	
  Scenario	
  
Given	
  I	
  am	
  on	
  the	
  animal	
  crea*on	
  page	
  
	
  
When	
  I	
  fill	
  in	
  Name	
  with	
  ‘Alligator’	
  
And	
  fill	
  in	
  Genus	
  with	
  ‘Alligator’	
  
And	
  check	
  Lay	
  Eggs	
  
And	
  click	
  the	
  Create	
  buCon	
  
	
  
Then	
  I	
  should	
  see	
  the	
  no*ce	
  ‘Thank	
  you	
  for	
  your	
  animal	
  
submission!’	
  
And	
  the	
  page	
  should	
  include	
  the	
  animal’s	
  name,	
  genus	
  and	
  
lay’s	
  eggs	
  
Reference:	
  
hCp://wa*rmelon.com/2010/12/10/cucumber-­‐impera*ve-­‐or-­‐declara*ve-­‐that-­‐is-­‐the-­‐ques*on/	
  
Declara*ve	
  Scenario	
  

Given	
  I	
  am	
  on	
  the	
  animal	
  crea*on	
  page	
  
	
  
When	
  I	
  add	
  a	
  new	
  animal	
  
	
  
Then	
  I	
  animal	
  should	
  be	
  created	
  successfully	
  




Reference:	
  
hCp://wa*rmelon.com/2010/12/10/cucumber-­‐impera*ve-­‐or-­‐declara*ve-­‐that-­‐is-­‐the-­‐ques*on/	
  
What	
  does	
  this	
  do	
  for	
  me?	
  
Test Driven Development via Agile Testing
Test Driven Development via Agile Testing
How	
  did	
  we	
  accomplish	
  this?	
  
Test Driven Development via Agile Testing
Given	
  auc&oneer	
  creates	
  a	
  sale	
  
And	
  5	
  items	
  are	
  added	
  to	
  the	
  
                                                   Who	
  is	
  doing	
  the	
  
sale	
                                             ac*on?	
  
	
  	
  	
  	
  	
  
When	
  auc&oneer	
  starts	
  the	
               What	
  is	
  the	
  business	
  
sale	
                                             func*onality?	
  
And	
  auc&oneer	
  sets	
  a	
  star*ng	
  
                                                   Ac*ons	
  and	
  
bid	
  of	
  5000	
                                verifica*ons	
  happen	
  
And	
  buyer_1	
  bids	
                           implicitly	
  
And	
  buyer_2	
  bids	
                           Depicts	
  a	
  user	
  flow	
  
	
  
Then	
  auc&oneer	
  Sells	
  the	
  item	
  
And	
  buyer_2	
  wins	
  the	
  item	
  
Current	
  state	
  
Tests	
  running	
  on	
  Hudson	
  /	
  Jenkins	
     Since	
  1st	
  test	
  was	
  automated	
  


Feature	
  files	
                                      33	
  
Scenarios	
                                            65	
  
Smoke	
  tests	
  execu*on	
  *me	
                    15	
  minutes	
  
Regression	
  tests	
  execu*on	
  *me	
               45	
  minutes	
  


Test	
  case	
  repository	
  (manual	
  +	
           Cucumber	
  .feature	
  files	
  with	
  
automated)	
                                           appropriate	
  tagging	
  
Project	
  Management	
  tool	
                        Mingle	
  
Tools	
  to	
  enable	
  BDD	
  /	
  BDT	
  
•    Cucumber	
  
•    JBehave	
  
•    SpecFlow	
  
•    Twist	
  
Anand.Bagmar@thoughtworks.com	
  

      abagmar@gmail.com	
  
            ThoughtWorks®	
  

More Related Content

Similar to Test Driven Development via Agile Testing (20)

PDF
Anand Bagmar - Behavior Driven Testing (BDT) in Agile
Anand Bagmar
 
PDF
Agile QA Process
Anand Bagmar
 
PDF
Exploring No Mans Land with Keyword-Driven Testing
MartinGijsen
 
PPTX
Agile Software Development with Intrinsic Quality
Demetrius Nunes
 
PDF
Growing Manual Testers into Automators
Camille Bell
 
PDF
Webapp acceptance testing a case study
ekantola
 
PDF
Does my test script smell?
MartinGijsen
 
PDF
Test Automation and Keyword-driven testing af Brian Nielsen, CISS/AAU
InfinIT - Innovationsnetværket for it
 
PDF
Avatars of Test Driven Development (TDD)
Naresh Jain
 
PDF
Functional testing patterns
Premanand Chandrasekaran
 
PDF
Oxente BDD
Milfont Consulting
 
PDF
Agile Software Development in Practice - A Developer Perspective
Wee Witthawaskul
 
PDF
ICTSS 2010 - Iterative Software Testing Process for Scrum and Waterfall Projects
Eliane Collins
 
PDF
Shirly Ronen - User story testing activities
AgileSparks
 
PDF
Automation Responsibility
Zbyszek Mockun
 
PDF
Better Story Testing through Dev-Tester Pairing
Abby Fichtner
 
PDF
Behaviour Driven Development and Thinking About Testing
dn
 
PDF
Bdd and-testing
malcolmt
 
PDF
Agile Testing
Lanvige Jiang
 
PPTX
Specifications test automation pyramid public
Sathyan Sethumadhavan
 
Anand Bagmar - Behavior Driven Testing (BDT) in Agile
Anand Bagmar
 
Agile QA Process
Anand Bagmar
 
Exploring No Mans Land with Keyword-Driven Testing
MartinGijsen
 
Agile Software Development with Intrinsic Quality
Demetrius Nunes
 
Growing Manual Testers into Automators
Camille Bell
 
Webapp acceptance testing a case study
ekantola
 
Does my test script smell?
MartinGijsen
 
Test Automation and Keyword-driven testing af Brian Nielsen, CISS/AAU
InfinIT - Innovationsnetværket for it
 
Avatars of Test Driven Development (TDD)
Naresh Jain
 
Functional testing patterns
Premanand Chandrasekaran
 
Oxente BDD
Milfont Consulting
 
Agile Software Development in Practice - A Developer Perspective
Wee Witthawaskul
 
ICTSS 2010 - Iterative Software Testing Process for Scrum and Waterfall Projects
Eliane Collins
 
Shirly Ronen - User story testing activities
AgileSparks
 
Automation Responsibility
Zbyszek Mockun
 
Better Story Testing through Dev-Tester Pairing
Abby Fichtner
 
Behaviour Driven Development and Thinking About Testing
dn
 
Bdd and-testing
malcolmt
 
Agile Testing
Lanvige Jiang
 
Specifications test automation pyramid public
Sathyan Sethumadhavan
 

More from Anand Bagmar (20)

PDF
The Path to Autonomous Testing - Anand Bagmar
Anand Bagmar
 
PDF
My Journey With Appium @AppiumConf Sept 2024
Anand Bagmar
 
PDF
Streamlining End-to-End Testing Automation
Anand Bagmar
 
PDF
Eradicate Flaky Tests
Anand Bagmar
 
PDF
Automating the real-user scenarios across multi-apps, and multi-devices
Anand Bagmar
 
PDF
Visual Validation - The missing tip of the automation pyramid @GoT2022
Anand Bagmar
 
PDF
Design Patterns in Automation
Anand Bagmar
 
PDF
Change Tyres In A Moving Car - Make Functional Test Automation Effective Keynote
Anand Bagmar
 
PDF
Rewrite vs Refactor (AgileIndia 2021)
Anand Bagmar
 
PDF
Next Generation Functional & Visual Testing powered by AI
Anand Bagmar
 
PDF
The Best Test Automation Framework is...
Anand Bagmar
 
PDF
Eradicate Flaky Tests - AppiumConf 2021
Anand Bagmar
 
PDF
Getting started with Appium 2.0
Anand Bagmar
 
PDF
Visual Validation - The missing tip of the automation pyramid @AgileIndia2020
Anand Bagmar
 
PDF
Selenium Deep Dive
Anand Bagmar
 
PDF
Does your functional automation really add value?
Anand Bagmar
 
PDF
Measuring Coverage From E2E Tests
Anand Bagmar
 
PDF
Getting started with Visual Testing using Applitools - @TPC, Feb2020
Anand Bagmar
 
PDF
Visual validation - The missing tip of the automation pyramid @ QA Symposium
Anand Bagmar
 
PDF
Collaboration - A Taboo!
Anand Bagmar
 
The Path to Autonomous Testing - Anand Bagmar
Anand Bagmar
 
My Journey With Appium @AppiumConf Sept 2024
Anand Bagmar
 
Streamlining End-to-End Testing Automation
Anand Bagmar
 
Eradicate Flaky Tests
Anand Bagmar
 
Automating the real-user scenarios across multi-apps, and multi-devices
Anand Bagmar
 
Visual Validation - The missing tip of the automation pyramid @GoT2022
Anand Bagmar
 
Design Patterns in Automation
Anand Bagmar
 
Change Tyres In A Moving Car - Make Functional Test Automation Effective Keynote
Anand Bagmar
 
Rewrite vs Refactor (AgileIndia 2021)
Anand Bagmar
 
Next Generation Functional & Visual Testing powered by AI
Anand Bagmar
 
The Best Test Automation Framework is...
Anand Bagmar
 
Eradicate Flaky Tests - AppiumConf 2021
Anand Bagmar
 
Getting started with Appium 2.0
Anand Bagmar
 
Visual Validation - The missing tip of the automation pyramid @AgileIndia2020
Anand Bagmar
 
Selenium Deep Dive
Anand Bagmar
 
Does your functional automation really add value?
Anand Bagmar
 
Measuring Coverage From E2E Tests
Anand Bagmar
 
Getting started with Visual Testing using Applitools - @TPC, Feb2020
Anand Bagmar
 
Visual validation - The missing tip of the automation pyramid @ QA Symposium
Anand Bagmar
 
Collaboration - A Taboo!
Anand Bagmar
 
Ad

Recently uploaded (20)

PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PPTX
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
PDF
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Empowering Cloud Providers with Apache CloudStack and Stackbill
ShapeBlue
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Darren Mills The Migration Modernization Balancing Act: Navigating Risks and...
AWS Chicago
 
Meetup Kickoff & Welcome - Rohit Yadav, CSIUG Chairman
ShapeBlue
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
Français Patch Tuesday - Juillet
Ivanti
 
Wojciech Ciemski for Top Cyber News MAGAZINE. June 2025
Dr. Ludmila Morozova-Buss
 
Ad

Test Driven Development via Agile Testing

  • 1. Test  Driven  Development   via   Agile  Tes2ng  
  • 2. What  is  Tes*ng  on  Agile  projects?  
  • 3. Itera&on  0   Itera&on  1   Itera&on  2   Itera&on  3   ..   ..   Itera&on  n   Story  test   Showcase   Showcase   Showcase   analysis  for   IPM   Itera2on  1,   Itera2on  2,   Itera2on  n-­‐1,   Itera2on  1   IPM   IPM   IPM   Test   Support   Support   Support   Itera&on  1   Automa&on   Itera2on  1   Itera2on  2   Itera2on  n-­‐1   Story  tes&ng   -­‐  strategy,   framework   setup,  etc.   Story  test   Itera&on  2   Itera&on  3   Itera&on  n   analysis  for   Story  tes&ng   Story  tes&ng   Story  tes&ng   Itera2on  2   Test   Test   Test   Automa&on   Automa&on   Automa&on   maint.,   maint.,   maint.,   execu&on   execu&on   execu&on   Story  test   Story  test   Story  test   analysis  for   analysis  for   analysis  for   Itera2on  3   Itera2on  4   Itera2on  n+1  
  • 4. Story  planning   and  wri&ng   Showcase   IPM   Automa&on   (execu&on,   QA  kickoff   maintenance)   Agile  Tes2ng     in  an  Itera2on Manual  +   Exploratory   Story  kickoff   Tes&ng   BA  /  QA   Test  Scenario   Volleyball   Wri&ng   Implement  Test   Automa&on  
  • 5. What  makes  Agile  Teams     successful?   Test  Automa2on  
  • 6. What  makes  Agile  Tes*ng   unsuccessful?   Test  Automa2on  
  • 7. The  Test  Pyramid   •  “Succeeding  with  Agile”  –  Mike  Cohn   •  Mar*n  Fowler  –  Test  Pyramid   –  hCp://mar*nfowler.com/bliki/TestPyramid.html  
  • 10. Test  Pyramid  reality   Development  team   Test  Pyramid   QA  team   Test  Pyramid  
  • 11. Test  Pyramid  –  An*  PaCern  
  • 12. Case  Study   •  Mul*ple,  long   running  projects   •  Legacy   applica*ons   •  Integrated  
  • 15. Its  not  what  I   said,  its  what  I   mean!  
  • 18. •  Remove  the  ambiguity   •  Same  visibility  for  all  
  • 20. Evolu*on  of  Test  Frameworks   Behavior   Driven   Development   (BDD)   Op*mized   scripts   Record  &   Playback     Core   Framework  
  • 22. RED   REFACTOR   GREEN  
  • 24. Expected  Func&onality:     The  customer  should  be  able  to  withdraw   money  from  his  account  via  an  ATM  machine  
  • 25. BDD  Example:   Given  the  account  has  balance  of  INR  5000   When  the  customer  requests  INR  1000   Then  the  account  is  debited  by  INR  1000  
  • 26. BDT  Example:   Given  the  account  is  in  credit   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  
  • 27. New  Expected  Func&onality:     The  customer  should  be  able  to  withdraw   money  from  his  account  only  if  his  card  is   valid  
  • 28. BDT  Example  -­‐  updated:   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  
  • 29. Test  specifica*on  styles   Story:  Animal  Submission     As  a  Zoologist   I  want  to  add  a  new  animal  to  the  site   So  that  I  can  share  my  animal  knowledge   with  the  community  
  • 30. Impera*ve  Scenario   Given  I  am  on  the  animal  crea*on  page     When  I  fill  in  Name  with  ‘Alligator’   And  fill  in  Genus  with  ‘Alligator’   And  check  Lay  Eggs   And  click  the  Create  buCon     Then  I  should  see  the  no*ce  ‘Thank  you  for  your  animal   submission!’   And  the  page  should  include  the  animal’s  name,  genus  and   lay’s  eggs   Reference:   hCp://wa*rmelon.com/2010/12/10/cucumber-­‐impera*ve-­‐or-­‐declara*ve-­‐that-­‐is-­‐the-­‐ques*on/  
  • 31. Declara*ve  Scenario   Given  I  am  on  the  animal  crea*on  page     When  I  add  a  new  animal     Then  I  animal  should  be  created  successfully   Reference:   hCp://wa*rmelon.com/2010/12/10/cucumber-­‐impera*ve-­‐or-­‐declara*ve-­‐that-­‐is-­‐the-­‐ques*on/  
  • 32. What  does  this  do  for  me?  
  • 35. How  did  we  accomplish  this?  
  • 37. Given  auc&oneer  creates  a  sale   And  5  items  are  added  to  the   Who  is  doing  the   sale   ac*on?             When  auc&oneer  starts  the   What  is  the  business   sale   func*onality?   And  auc&oneer  sets  a  star*ng   Ac*ons  and   bid  of  5000   verifica*ons  happen   And  buyer_1  bids   implicitly   And  buyer_2  bids   Depicts  a  user  flow     Then  auc&oneer  Sells  the  item   And  buyer_2  wins  the  item  
  • 38. Current  state   Tests  running  on  Hudson  /  Jenkins   Since  1st  test  was  automated   Feature  files   33   Scenarios   65   Smoke  tests  execu*on  *me   15  minutes   Regression  tests  execu*on  *me   45  minutes   Test  case  repository  (manual  +   Cucumber  .feature  files  with   automated)   appropriate  tagging   Project  Management  tool   Mingle  
  • 39. Tools  to  enable  BDD  /  BDT   •  Cucumber   •  JBehave   •  SpecFlow   •  Twist