agile testing - anztb_ivory_devs&testers.pdf · 2015-05-27 · bdd atdd tdd 13. 14. 15 we can...

39

Upload: others

Post on 26-Jun-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run
Page 2: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

2

Page 3: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

3

Page 4: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

4

Page 5: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

5

Page 6: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

6

Page 7: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

7

Page 8: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

8

Page 9: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

9

Page 10: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Quick of feature behaviour

Determines the Acceptance Criteria for

a user story

Business

Reps Developer

Tester

10

Page 11: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

11

Page 12: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

12

Page 13: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

BDD

ATDD TDD

13

Page 14: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

14

Page 15: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

15

We can embed examples into the

scenarios

Page 16: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Add a Test

Run the

Test

Test

Fails

NO CODE

YET

Run the

Test

Test

Passes

Write

CODEREFACTOR

CODE

16

Page 17: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Colin wants a fast car?

17

Page 18: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Excellent – so we all agree then….I’m glad we’re on the same page….18

Page 19: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Write

Requirements

Write the Code

Design the

System

Specify the

SystemTest the

SpecificationBuild System

Acceptance

Testing

Integration

Testing

System Testing

Component Testing

Reviews

Walkthroughs

Inspections

Inspections

Static Analysis

Shared vision of a feature is accomplished through formal reviews.Poor Quality

Inconsistent

Redundant

19

Page 20: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Excellent – so we all agree then….I’m glad we’re on the same page…20

Page 21: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

21

Page 22: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

22

Page 23: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

How will we delete?

Is it consistent with

other ways of

deleting? What

happens to the

deleted item?

23

Page 24: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

24

Page 25: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

25

Page 26: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

“As a frequent book buyer,

I want strong passwords

so that my credit card

information remains secure”.

26

Page 27: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

The aim is to gain a better understanding of what Brian wants and that we

all understand what is meant by ‘strong passwords’. (recall ‘fast car’ )

27

Page 28: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

28

Page 29: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

29

Page 30: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

30

Page 31: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

31

Page 32: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

After many conversations, the whole team have come up with a shared

understanding of the acceptance criteria.

32

Page 33: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Data Expected Result Expected Message

IsThis$AGood11 Pass

AAbbCC11 Fail No Special Characters

$$$bbb111 Fail No Upper Case

AAA%% Fail No Lower Case

AAAA%%%%bbbbb Fail No numbers

Aa9ab$ Fail Too Short

In this case the team have come up with real examples of inputs and outputs to gain this shared understanding of the acceptance criteria

33

Page 34: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Coder (Developer) Business Analyst Tester

34

Page 35: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

35

Page 36: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

36

Page 37: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run

Agile Atlas User Stories

Driving development with tests: ATDD and TDD Elisabeth

Hendrickson

Lean-Agile Acceptance Test-Driven Development, Ken Pugh

Agile Testing , Crispin and Gregory

More Agile Testing , Crispin and Gregory

Bridging the Communication Gap, Gojko Adzic

Specification by Example, Gojko Adzic

Test-Driven Development By Example, Kent Beck

37

Page 38: Agile Testing - ANZTB_Ivory_Devs&Testers.pdf · 2015-05-27 · BDD ATDD TDD 13. 14. 15 We can embed examples into the scenarios. Add a Test Run the Test Test Fails NO CODE YET Run