Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Mészáros Márton www.meza.hu@vsbmezaBDBDDDBeer Driven Behaviour Driven Development DemistifiedThe Guardianwww.guardian.co.uk
Miért nem sörözünk már?www.meza.hu | @vsbmezaA BDD kialakulásaMi, es mi nem a BDD?Mikor fáj?Mikor jó?
BDD - A kezdetekwww.meza.hu | @vsbmezaDAN NORTH@tastapod"A test class SHOULD dosomething!""Lets replace JUnit withJBehave!...
BDD - A kezdetekwww.meza.hu | @vsbmezaCHRIS MATTS@PapaChrisMatts“But that’s just likeanalysis.”commitment-thebook.com
BDD - A kezdetekwww.meza.hu | @vsbmezaLIZ KEOGH@lunivore"BDD and TDD aren’tactually about makingsure that somethingworks w...
BDD - A kezdetekwww.meza.hu | @vsbmezaVALLÁSOK
BDD - Vallásokwww.meza.hu | @vsbmezaBDD = rspecBDD = CucumberBDD = JBehaveBDD = simulating user interactionBDD = acceptanc...
BDD - Tévhitekwww.meza.hu | @vsbmezaBDD != ESZKOZOKBDD != TDDBDD != TESZTELÉS
BDD - Tévhitekwww.meza.hu | @vsbmeza"A BDD lelke a bizonytalanság és atudatlanság - nem a példákmegtalálása, hanem az olya...
BDD - Tévhitekwww.meza.hu | @vsbmezaGiven Fred has bought a microwaveAnd the microwave cost £100When we refund the microwa...
BDD - Tévhitekwww.meza.hu | @vsbmezaGiven a contextWhen an event happensThen an outcoume should occur
BDD - Tévhitekwww.meza.hu | @vsbmezaGiven Fred has bought a microwaveAnd the microwave cost £100When we refund the microwa...
BDD - Mikor fáj?www.meza.hu | @vsbmezaMikor fáj?
BDD - Mikor fáj?www.meza.hu | @vsbmezaScenario: logging inGiven I am an internet userWhen I navigate to http://www.faceboo...
BDD - Mikor fáj?www.meza.hu | @vsbmezaScenario: entering the pubGiven I am a thirsty ladWhen I stand in front of a pubAnd ...
BDD - Mikor fáj?www.meza.hu | @vsbmezaScenario: successful submissionGiven Im on the animal creation pageWhen I fill in Na...
BDD - Mikor fáj?www.meza.hu | @vsbmezaScenario: buying beerGiven I am at the barWhen I ask for a KobanyaiAnd select Consis...
BDD - Mikor fáj?www.meza.hu | @vsbmezaImaperatívHogyan?
BDD - Mikor faj?www.meza.hu | @vsbmezaDeklaratívMit és miért?
BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: drink beerGiven I am a thirsty lad wanting beer...
BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: In-progressGiven I visit the fixtures pageWhen ...
BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: Signed in User can Preview comment before posti...
BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: drink beerGiven I am a thirsty lad wanting beer...
BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: drink beerGiven I am a thirsty ladWhen I drink ...
BDD - Mikor jó?www.meza.hu | @vsbmezaImperatívDeklaratívCHUNK UP
BDD - Mikor jó?www.meza.hu | @vsbmezaUIPAGEAUTHENTICATIONBUSINESS
BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: logging inGiven I am an internet userWhen I navigate to http://www.facebook...
BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: read my friends updatesGiven I am a logged in facebook userWhen I look at m...
BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: successful submissionGiven Im on the animal creation pageWhen I fill in Nam...
BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: successful submissionGiven Im on the animal creation pageWhen I add a new a...
BDD - Mikor jó?www.meza.hu | @vsbmezaE/3
BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: read my friends updatesGiven I am a logged in facebook userAnd there is ano...
BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: read my friends updatesGiven Fred is a logged in facebook userAnd George is...
BDD - Konkluzio?www.meza.hu | @vsbmezaBDD = Kommunikáció es felfedezésChunk up!E/3
BDD - Kérdések?www.meza.hu@vsbmeza
Upcoming SlideShare
Loading in …5
×

BDD demisztifikálva

1,326 views

Published on

Mészáros Márton, Test Consultant, The Guardian napilap

  • Be the first to comment

  • Be the first to like this

BDD demisztifikálva

  1. 1. Mészáros Márton www.meza.hu@vsbmezaBDBDDDBeer Driven Behaviour Driven Development DemistifiedThe Guardianwww.guardian.co.uk
  2. 2. Miért nem sörözünk már?www.meza.hu | @vsbmezaA BDD kialakulásaMi, es mi nem a BDD?Mikor fáj?Mikor jó?
  3. 3. BDD - A kezdetekwww.meza.hu | @vsbmezaDAN NORTH@tastapod"A test class SHOULD dosomething!""Lets replace JUnit withJBehave!"JBehave RBehave RSpecCucumber
  4. 4. BDD - A kezdetekwww.meza.hu | @vsbmezaCHRIS MATTS@PapaChrisMatts“But that’s just likeanalysis.”commitment-thebook.com
  5. 5. BDD - A kezdetekwww.meza.hu | @vsbmezaLIZ KEOGH@lunivore"BDD and TDD aren’tactually about makingsure that somethingworks well. They’reabout uncovering theparts you don’tunderstand; the partsthat are hard, and thegaps."
  6. 6. BDD - A kezdetekwww.meza.hu | @vsbmezaVALLÁSOK
  7. 7. BDD - Vallásokwww.meza.hu | @vsbmezaBDD = rspecBDD = CucumberBDD = JBehaveBDD = simulating user interactionBDD = acceptance criteriaBDD = TDDBDD = Behat
  8. 8. BDD - Tévhitekwww.meza.hu | @vsbmezaBDD != ESZKOZOKBDD != TDDBDD != TESZTELÉS
  9. 9. BDD - Tévhitekwww.meza.hu | @vsbmeza"A BDD lelke a bizonytalanság és atudatlanság - nem a példákmegtalálása, hanem az olyanpéldák felfedezése, amiket nemtalálunk."Liz Keogh
  10. 10. BDD - Tévhitekwww.meza.hu | @vsbmezaGiven Fred has bought a microwaveAnd the microwave cost £100When we refund the microwaveThen Fred should be refunded £100Example uesd by: Liz Keogh
  11. 11. BDD - Tévhitekwww.meza.hu | @vsbmezaGiven a contextWhen an event happensThen an outcoume should occur
  12. 12. BDD - Tévhitekwww.meza.hu | @vsbmezaGiven Fred has bought a microwaveAnd the microwave cost £100When we refund the microwaveThen Fred should be refunded £100Example uesd by: Liz Keogh
  13. 13. BDD - Mikor fáj?www.meza.hu | @vsbmezaMikor fáj?
  14. 14. BDD - Mikor fáj?www.meza.hu | @vsbmezaScenario: logging inGiven I am an internet userWhen I navigate to http://www.facebook.comAnd I click the field "username"And I enter "boring@large.com"And I click the field "password"And I enter "correct horse battery staple"And I click the button "Log In"Then I see "Whats on your mind" on the page
  15. 15. BDD - Mikor fáj?www.meza.hu | @vsbmezaScenario: entering the pubGiven I am a thirsty ladWhen I stand in front of a pubAnd I hold the door handleAnd I push it downAnd I push the doorAnd I step into the pubAnd I push the door backAnd I let go of the doorThen I am in the pub
  16. 16. BDD - Mikor fáj?www.meza.hu | @vsbmezaScenario: successful submissionGiven Im on the animal creation pageWhen I fill in Name with AlligatorAnd select Phylum as ChordataAnd fill in Animal Class with SauropsidaAnd fill in Order with CrocodiliaAnd fill in Family with AlligatoridaeAnd fill in Genus with AlligatorAnd check Lay EggsAnd click the Create buttonThen I should see the notice Thank you for your animalsubmission!And the page should include the animals name, phylum,animal class, order, family, and genus
  17. 17. BDD - Mikor fáj?www.meza.hu | @vsbmezaScenario: buying beerGiven I am at the barWhen I ask for a KobanyaiAnd select Consistency as LiquidAnd fill in Type with AlcoholAnd fill in Color with YellowAnd fill in Family with BeerAnd fill in Manufactor with DreherAnd check 0.5 bottleAnd open the capThen I should hear the hiss of the gasAnd the bottle should include the Kobanyai
  18. 18. BDD - Mikor fáj?www.meza.hu | @vsbmezaImaperatívHogyan?
  19. 19. BDD - Mikor faj?www.meza.hu | @vsbmezaDeklaratívMit és miért?
  20. 20. BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: drink beerGiven I am a thirsty lad wanting beerWhen I walk into the pubAnd ask for a beerAnd pay for a beerThen I should be served beerAnd should drink beerAnd my thirst should vanish
  21. 21. BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: In-progressGiven I visit the fixtures pageWhen a game is in progressThen I should see the current score of thatmatchAnd I should see the current match time
  22. 22. BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: Signed in User can Preview comment before postingWhen I typed some text in the text boxThen I should see the preview in the preview paneAnd close the preview box
  23. 23. BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: drink beerGiven I am a thirsty lad wanting beerWhen I walk into the pubAnd drink a beerThen my thirst should disappear
  24. 24. BDD - Mikor fáj?www.meza.hu | @vsbmezaImperatív, vagy Deklaratív?Scenario: drink beerGiven I am a thirsty ladWhen I drink a beerThen my thirst should disappear
  25. 25. BDD - Mikor jó?www.meza.hu | @vsbmezaImperatívDeklaratívCHUNK UP
  26. 26. BDD - Mikor jó?www.meza.hu | @vsbmezaUIPAGEAUTHENTICATIONBUSINESS
  27. 27. BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: logging inGiven I am an internet userWhen I navigate to http://www.facebook.comAnd I click the field "username"And I enter "boring@large.com"And I click the field "password"And I enter "correct horse battery staple"And I click the button "Log In"Then I see "Whats on your mind" on the page
  28. 28. BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: read my friends updatesGiven I am a logged in facebook userWhen I look at my news feedThen I should be able to read myfriends updates
  29. 29. BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: successful submissionGiven Im on the animal creation pageWhen I fill in Name with AlligatorAnd select Phylum as ChordataAnd fill in Animal Class with SauropsidaAnd fill in Order with CrocodiliaAnd fill in Family with AlligatoridaeAnd fill in Genus with AlligatorAnd check Lay EggsAnd click the Create buttonThen I should see the notice Thank you for your animalsubmission!And the page should include the animals name, phylum,animal class, order, family, and genus
  30. 30. BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: successful submissionGiven Im on the animal creation pageWhen I add a new animalThen I should see the page for mynewly created animalAnd the notice Thank you for youranimal submission!
  31. 31. BDD - Mikor jó?www.meza.hu | @vsbmezaE/3
  32. 32. BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: read my friends updatesGiven I am a logged in facebook userAnd there is another registered userAnd that user is a friend of meWhen I look at the other persons profileThen I should be able to see his feed
  33. 33. BDD - Mikor jó?www.meza.hu | @vsbmezaScenario: read my friends updatesGiven Fred is a logged in facebook userAnd George is a registered facebook userAnd George is a friend of FredWhen Fred looks at Georges profileThen Fred should be able to see Georges feed
  34. 34. BDD - Konkluzio?www.meza.hu | @vsbmezaBDD = Kommunikáció es felfedezésChunk up!E/3
  35. 35. BDD - Kérdések?www.meza.hu@vsbmeza

×