Behaviour Driven Development
-
Upload
future-processing -
Category
Technology
-
view
102 -
download
1
description
Transcript of Behaviour Driven Development
![Page 1: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/1.jpg)
BDDthe journey
@BartSzulc
![Page 2: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/2.jpg)
?
@BartSzulc
![Page 3: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/3.jpg)
Story: Account Holder withdraws cash As an Account HolderI want to withdraw cash from an ATMSo that I can get money when the bank is closed Scenario 1: Account has sufficient fundsGiven the account balance is \$100 And the card is valid And the machine contains enough moneyWhen the Account Holder requests \$20Then the ATM should dispense \$20 And the account balance should be \$80 And the card should be returned Scenario 2: Account has insufficient fundsGiven the account balance is \$10 And the card is valid And the machine contains enough moneyWhen the Account Holder requests \$20Then the ATM should not dispense any money And the ATM should say there are insufficient funds And the account balance should be \$20 And the card should be returned Scenario 3: Card has been disabledGiven the card is disabledWhen the Account Holder requests \$20Then the ATM should retain the cardAnd the ATM should say the card has been retained Scenario 4: The ATM has insufficient funds
@BartSzulc
![Page 4: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/4.jpg)
@BartSzulc
![Page 5: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/5.jpg)
@BartSzulc
![Page 6: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/6.jpg)
Start
@BartSzulc
![Page 7: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/7.jpg)
Test Automation!
@BartSzulc
![Page 8: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/8.jpg)
I can be developer!I can use fancy tools!I can build my own superb frameworks!I’m on the hype wagon!
@BartSzulc
![Page 9: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/9.jpg)
so much test automationvery Agile Tester,
so happy
@BartSzulc
![Page 10: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/10.jpg)
Benefit?
@BartSzulc
![Page 11: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/11.jpg)
NOPE
@BartSzulc
![Page 12: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/12.jpg)
??
@BartSzulc
![Page 13: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/13.jpg)
@BartSzulc
![Page 14: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/14.jpg)
@BartSzulc
![Page 15: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/15.jpg)
Is every possible scenario an acceptance scenario?
@BartSzulc
![Page 16: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/16.jpg)
Should I avoid complex scenarios? How detailed
should they be?
@BartSzulc
![Page 17: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/17.jpg)
Are acceptance tests the only tests?
@BartSzulc
![Page 18: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/18.jpg)
Is BDD a testing framework you should use for all your tests?
@BartSzulc
![Page 19: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/19.jpg)
Where does the idea of automation come from?
BDD?
@BartSzulc
![Page 20: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/20.jpg)
@BartSzulc
![Page 21: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/21.jpg)
Pivot
@BartSzulc
![Page 22: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/22.jpg)
Interact with business
@BartSzulc
![Page 23: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/23.jpg)
I can be business analyst!I can help refine requirements!I can help understand complexity!
@BartSzulc
![Page 24: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/24.jpg)
so much business understandingvery Agile Tester,
so happy
@BartSzulc
![Page 25: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/25.jpg)
Benefit?
@BartSzulc
![Page 26: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/26.jpg)
NOPE
@BartSzulc
![Page 27: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/27.jpg)
???
@BartSzulc
![Page 28: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/28.jpg)
Let’s play chinese whispers
@BartSzulc
![Page 29: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/29.jpg)
@BartSzulc
![Page 30: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/30.jpg)
Variation
@BartSzulc
![Page 31: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/31.jpg)
Interact with developers
@BartSzulc
![Page 32: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/32.jpg)
Developers understand what is needed!Development is driven through examples!Clearly you create solid development team!
@BartSzulc
![Page 33: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/33.jpg)
so much driven workvery development team, so productive and lean
@BartSzulc
![Page 34: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/34.jpg)
Benefit?
@BartSzulc
![Page 35: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/35.jpg)
NOPE
@BartSzulc
![Page 36: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/36.jpg)
???
@BartSzulc
![Page 37: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/37.jpg)
Wishful thinking Wasteful requirements
@BartSzulc
![Page 38: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/38.jpg)
@BartSzulc
![Page 39: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/39.jpg)
Pivot
@BartSzulc
![Page 40: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/40.jpg)
INTERACT WITH EVERYONE!
@BartSzulc
![Page 41: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/41.jpg)
BDD
@BartSzulc
![Page 42: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/42.jpg)
BehaviourDD
@BartSzulc
![Page 43: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/43.jpg)
BDrivenDevelopment
@BartSzulc
![Page 44: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/44.jpg)
I can help understand what business wants!I can help drive development of the need!I can assure the need is delivered!
@BartSzulc
![Page 45: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/45.jpg)
so much INTERACTION and COMMUNICATIONvery Agile Tester,
so happy
@BartSzulc
![Page 46: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/46.jpg)
Benefit?
@BartSzulc
![Page 47: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/47.jpg)
YES
@BartSzulc
![Page 48: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/48.jpg)
@BartSzulc
![Page 49: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/49.jpg)
even More Benefits!
@BartSzulc
![Page 50: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/50.jpg)
@BartSzulc
![Page 51: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/51.jpg)
@BartSzulc
![Page 52: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/52.jpg)
Recap
@BartSzulc
![Page 53: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/53.jpg)
Discuss the idea
@BartSzulc
![Page 54: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/54.jpg)
Do the dry-run
@BartSzulc
![Page 55: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/55.jpg)
Improve
@BartSzulc
![Page 56: Behaviour Driven Development](https://reader033.fdocuments.in/reader033/viewer/2022052311/558c4894d8b42ae0768b45ef/html5/thumbnails/56.jpg)
End