a test pyramid heresy - a fresh look at test automation strategies

34
@wakaleo 1 A fresh look at test automation strategies The Testing Pyramid Heresy John Ferguson Smart http://johnfergusonsmart.com

Upload: john-ferguson-smart-limited

Post on 28-Jan-2018

214 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo 1

A fresh look at test automation strategiesThe Testing Pyramid Heresy

John Ferguson Smart http://johnfergusonsmart.com

Page 2: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

John Ferguson

Smart

John Ferguson Smart

“I help teams of smart people learn to work together more efficiently,

to deliver better software sooner”

2

https://johnfergusonsmart.com

Page 3: A Test Pyramid Heresy - a fresh look at test automation strategies

https://johnfergusonsmart.com

“Test Automation is like any other tool It’s either a benefit or a hazard”

3

Page 4: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

How much are your tests worth?

4

Weekly cost vs

weekly savings$0

$20,000

$40,000

$60,000

$80,000

$100,000

$120,000

$140,000

$160,000

$180,000

1/09/2015 1/10/2015 1/11/2015 1/12/2015

Test0suite0cost0vs0savings0(per0week)

Cost0saved0par0week Test0suite0cost0per0week

Team cost is constant

Time saved increases with the number of executed tests

Page 5: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

How much are your tests worth?

5

$0

$200,000

$400,000

$600,000

$800,000

$1,000,000

$1,200,000

1/09/2015 1/10/2015 1/11/2015 1/12/2015

What0is0your0test0suite0worth?

Test0suite0ROI Test0suite0cost

Cumulated cost vs

cumulated savings

Cumulated value should increase faster than cumulated cost

Page 6: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

Now factor in high maintenance

6

20-40%Typical maintenance overhead for poorly-written test suites

Page 7: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

Now factor in high maintenance

7

Number of tests

Main

tena

nce

over

head

Page 8: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

$0$50,000

$100,000$150,000$200,000$250,000$300,000$350,000$400,000$450,000$500,000

1/09/2015 1/10/2015 1/11/2015 1/12/2015 1/01/2016

What0is0your0test0suite0worth?

Test0suite0cost Test0suite0ROI

Now factor in high maintenance

8

High-maintenance costs reduce the number of tests a team can write

High maintenance costs can cause your test suite to lose value

Page 9: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

Enter the Testing Pyramid

9

Page 10: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

…or the Testing Ice-cream cone

10

Page 11: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

In other words…

11

Don’t use a web test where a service or unit test could do the same job.

Page 12: A Test Pyramid Heresy - a fresh look at test automation strategies

12

Page 13: A Test Pyramid Heresy - a fresh look at test automation strategies

13

“All models are wrong, but some are useful.”

- George Box

Page 14: A Test Pyramid Heresy - a fresh look at test automation strategies

14

Page 15: A Test Pyramid Heresy - a fresh look at test automation strategies

15

The Testing Pyramid is about how a test is implemented.

But is this the best way to classify our tests?

Page 16: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

Developer TestsQA TestsBusiness Tests

Tests come from different sources

16

Page 17: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

Developer TestsQA TestsBusiness Tests

Tests come from different sources

17

Page 18: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

Developer TestsQA TestsBusiness Tests

Tests come from different sources

18

Page 19: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

Developer TestsQA TestsBusiness Tests

Tests come from different sources

19

Page 20: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

DemonstrateDescribeDiscover

Tests have different roles

20

Page 21: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

DemonstrateDescribeDiscover

Tests have different roles

21

Page 22: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

Test (activities) that discover

22

Example Mapping

Impact Mapping

Feature Mapping

Page 23: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

DemonstrateDescribeDiscover

Tests have different roles

23

Page 24: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

Test (activities) that describe

24

Page 25: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

Test (activities) that describe

25

Page 26: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

DemonstrateDescribeDiscover

Tests have different roles

26

Page 27: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo

https://johnfergusonsmart.com

Example and Feature Mapping

Tests have different roles

27

Dis

cove

r

Describe

Demonstrate

Impact Mapping

Executable specifications

Performance testsFunctional tests

Unit tests

Regression tests

Page 28: A Test Pyramid Heresy - a fresh look at test automation strategies

28

A new testing quadrant

Page 29: A Test Pyramid Heresy - a fresh look at test automation strategies

29

A new testing quadrant

Page 30: A Test Pyramid Heresy - a fresh look at test automation strategies

30

A new testing quadrant

Page 31: A Test Pyramid Heresy - a fresh look at test automation strategies

31

A new testing quadrant

Page 32: A Test Pyramid Heresy - a fresh look at test automation strategies

32

A new testing quadrant

Page 33: A Test Pyramid Heresy - a fresh look at test automation strategies

33

Goldilocks Test Suites

Page 34: A Test Pyramid Heresy - a fresh look at test automation strategies

@wakaleo 34

Questions?

John Ferguson Smart http://johnfergusonsmart.com