behaviour driven development

56
BDD the journey @BartSzul c

Upload: future-processing

Post on 26-Jun-2015

102 views

Category:

Technology


1 download

DESCRIPTION

Prezentacja Bartosza Szulca w ramach Quality Meetup #2. O inicjatywie: http://qualityexcites.pl/quality-meetup/archiwalne-spotkania/

TRANSCRIPT

Page 1: Behaviour Driven Development

BDDthe journey

@BartSzulc

Page 2: Behaviour Driven Development

?

@BartSzulc

Page 3: Behaviour Driven Development

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

@BartSzulc

Page 5: Behaviour Driven Development

@BartSzulc

Page 6: Behaviour Driven Development

Start

@BartSzulc

Page 7: Behaviour Driven Development

Test Automation!

@BartSzulc

Page 8: Behaviour Driven Development

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

so much test automationvery Agile Tester,

so happy

@BartSzulc

Page 10: Behaviour Driven Development

Benefit?

@BartSzulc

Page 11: Behaviour Driven Development

NOPE

@BartSzulc

Page 12: Behaviour Driven Development

??

@BartSzulc

Page 13: Behaviour Driven Development

@BartSzulc

Page 14: Behaviour Driven Development

@BartSzulc

Page 15: Behaviour Driven Development

Is every possible scenario an acceptance scenario?

@BartSzulc

Page 16: Behaviour Driven Development

Should I avoid complex scenarios? How detailed

should they be?

@BartSzulc

Page 17: Behaviour Driven Development

Are acceptance tests the only tests?

@BartSzulc

Page 18: Behaviour Driven Development

Is BDD a testing framework you should use for all your tests?

@BartSzulc

Page 19: Behaviour Driven Development

Where does the idea of automation come from?

BDD?

@BartSzulc

Page 20: Behaviour Driven Development

@BartSzulc

Page 21: Behaviour Driven Development

Pivot

@BartSzulc

Page 22: Behaviour Driven Development

Interact with business

@BartSzulc

Page 23: Behaviour Driven Development

I can be business analyst!I can help refine requirements!I can help understand complexity!

@BartSzulc

Page 24: Behaviour Driven Development

so much business understandingvery Agile Tester,

so happy

@BartSzulc

Page 25: Behaviour Driven Development

Benefit?

@BartSzulc

Page 26: Behaviour Driven Development

NOPE

@BartSzulc

Page 27: Behaviour Driven Development

???

@BartSzulc

Page 28: Behaviour Driven Development

Let’s play chinese whispers

@BartSzulc

Page 29: Behaviour Driven Development

@BartSzulc

Page 30: Behaviour Driven Development

Variation

@BartSzulc

Page 31: Behaviour Driven Development

Interact with developers

@BartSzulc

Page 32: Behaviour Driven Development

Developers understand what is needed!Development is driven through examples!Clearly you create solid development team!

@BartSzulc

Page 33: Behaviour Driven Development

so much driven workvery development team, so productive and lean

@BartSzulc

Page 34: Behaviour Driven Development

Benefit?

@BartSzulc

Page 35: Behaviour Driven Development

NOPE

@BartSzulc

Page 36: Behaviour Driven Development

???

@BartSzulc

Page 37: Behaviour Driven Development

Wishful thinking Wasteful requirements

@BartSzulc

Page 38: Behaviour Driven Development

@BartSzulc

Page 39: Behaviour Driven Development

Pivot

@BartSzulc

Page 40: Behaviour Driven Development

INTERACT WITH EVERYONE!

@BartSzulc

Page 41: Behaviour Driven Development

BDD

@BartSzulc

Page 42: Behaviour Driven Development

BehaviourDD

@BartSzulc

Page 43: Behaviour Driven Development

BDrivenDevelopment

@BartSzulc

Page 44: Behaviour Driven Development

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

so much INTERACTION and COMMUNICATIONvery Agile Tester,

so happy

@BartSzulc

Page 46: Behaviour Driven Development

Benefit?

@BartSzulc

Page 47: Behaviour Driven Development

YES

@BartSzulc

Page 48: Behaviour Driven Development

@BartSzulc

Page 49: Behaviour Driven Development

even More Benefits!

@BartSzulc

Page 50: Behaviour Driven Development

@BartSzulc

Page 51: Behaviour Driven Development

@BartSzulc

Page 52: Behaviour Driven Development

Recap

@BartSzulc

Page 53: Behaviour Driven Development

Discuss the idea

@BartSzulc

Page 54: Behaviour Driven Development

Do the dry-run

@BartSzulc

Page 55: Behaviour Driven Development

Improve

@BartSzulc

Page 56: Behaviour Driven Development

End