conquering the single largest challenge facing today's testers copy

59
1 Conquering the Single Largest Challenge Facing Today’s Testers Justin Hunter CEO of Hexawise

Upload: hexawise

Post on 04-Jul-2015

1.266 views

Category:

Technology


4 download

DESCRIPTION

Presentation given by Justin Hunter (CEO of Hexawise) at the QAI Conference in Bangalore, December, 2012.

TRANSCRIPT

Page 1: Conquering the single largest challenge facing today's testers copy

1

Conquering the Single Largest Challenge Facing Today’s Testers

Justin HunterCEO of Hexawise

Page 2: Conquering the single largest challenge facing today's testers copy

2

Too Much to Test

&

Not Enough Time to Test It All

The Challenge

Page 3: Conquering the single largest challenge facing today's testers copy

3

Testing is still in its infancy.

Other industries have spent decades and billions of dollars

learning to solve our #1 problem.

We’d be insane not to learn from them.

My Main Message

Page 4: Conquering the single largest challenge facing today's testers copy

4

1. What Happened?

2. Avoidable?

3. Practical Implications

Part I. “Maps Mayhem”

Page 5: Conquering the single largest challenge facing today's testers copy

5

1. Does this Stuff Really Work?

2. Adoption Trends

Part II. Making it Real

Page 6: Conquering the single largest challenge facing today's testers copy

Here...Most Careers

Time

Page 7: Conquering the single largest challenge facing today's testers copy

Time

Here...Scott’s Career

Page 8: Conquering the single largest challenge facing today's testers copy

Time

Here...Scott’s Career

Page 9: Conquering the single largest challenge facing today's testers copy

Here...Even worse...

9 / 10

Page 10: Conquering the single largest challenge facing today's testers copy

10

2nd to Go (He’s also Amazing)

Page 11: Conquering the single largest challenge facing today's testers copy

Here...Nightmare Worsens

123,000

Page 12: Conquering the single largest challenge facing today's testers copy

Here...CEO’s Apology Letter

“We are extremely sorry...”“While we’re improving Maps,

you can try alternatives... like

Bing, MapQuest and Waze, or

use Google or Nokia maps...”

Page 13: Conquering the single largest challenge facing today's testers copy

13

Everyday Fails (Cont.)

Page 14: Conquering the single largest challenge facing today's testers copy

14http://www.itsagadget.com/2012/09/apple-google-maps-ios-6.html

Missing Details

Page 15: Conquering the single largest challenge facing today's testers copy

15

Squiggly Roads

http://www.fastcompany.com/3003446/apple-reportedly-fires-their-maps-man

Page 17: Conquering the single largest challenge facing today's testers copy

17http://machineslikeus.com/news/get-lost-apple-maps-road-nowhere

In the water

Page 18: Conquering the single largest challenge facing today's testers copy

18

Missing water

Page 19: Conquering the single largest challenge facing today's testers copy

19http://theamazingios6maps.tumblr.com/page/6

Water Turned into Beaches

Page 20: Conquering the single largest challenge facing today's testers copy

20http://theamazingios6maps.tumblr.com/page/4

Melted Streets

Page 21: Conquering the single largest challenge facing today's testers copy

21

http://www.crowdsourcing.org/images/resized//editorial_19902_780x0_proportion.jpg?1349379876

Social Media Mockery...

Page 22: Conquering the single largest challenge facing today's testers copy

22

http://blogs.telegraph.co.uk/technology/micwright/100007771/apple-moronic-new-maps-this-is-turning-into-a-disaster/

Even Mocked by These Guys!

Page 23: Conquering the single largest challenge facing today's testers copy

23

http://www.businessinsider.com/google-maps-apple-maps-2012-10

Impact to Sales?

Page 24: Conquering the single largest challenge facing today's testers copy

24

In Fairness to those Involved

- Extreme Complexity - Unimaginably Large Scope - Highly Visible Mistakes - Google Had a Huge Head Start

http://img.photobucket.com/albums/v40/Dragonrider1227/chainsawsonfire.jpg

Page 25: Conquering the single largest challenge facing today's testers copy

25

Could this have been Avoided?

Imminent DisasterSometimes it’s just better to grab a beer and watch...

Page 26: Conquering the single largest challenge facing today's testers copy

26

I. More Smart Testers

This man, Harry Robinson, is a genius.

He helped lead testing for Google Maps.

IMO, he’d be a bargain to Apple at $1 million / year.

http://model-based-testing.info/2012/03/12/interview-with-harry-robinson/

Page 27: Conquering the single largest challenge facing today's testers copy

27

II. Using Smart Test Design

6 browser choices

x 3 options x 2 options x 2 options x 2 options

x 4 options x 2 options x 3 options x 2 options

x 2 options = 13,824 possible tests...

...13,824 possible tests x 4 options x 4 options x 4 options

= 884,736 possible tests...

...884,736 possible tests x 5 optionsx 2 optionsx 2 optionsx 2 optionsx 2 optionsx 4 optionsx 2 optionsx 2 optionsx 2 optionsx 4 optionsx 2 optionsx 2 optionsx 2 options

72,477,573,120 possible tests

This single web page could be tested with

25

Page 28: Conquering the single largest challenge facing today's testers copy

First, users input details of an application to be tested...

TM

28

What things Vary? / How?

Page 29: Conquering the single largest challenge facing today's testers copy

Next, users create tests that will cover interactions of every valid pair of values in as few tests as possible.

(1) Browser = “Opera” tested with (2) View = “Satellite?” Covered.(1) Mode of Transport = “Walk” tested with (2) Show Photos = “Y”? Covered.(1) Avoid Toll Roads = “Y” tested with (2) Show Traffic = “Y (Live)” ? Covered.

(1) Browser = IE6 tested with (2) Distance in = KM and (3) Zoom in = “Y” ? That is a 3-way interaction. It might not be covered in these 35 tests. See next page.

29

Highest priority test set?

Page 30: Conquering the single largest challenge facing today's testers copy

% Coverage by Number of Tests100%

90%

80%

70%

60%

50%

40%

30%

20%

10%

2 4 7 9 11 14 16 18 21 23 25 28

Every test plan has a finite number of valid combinations of parameter values (involving, in this case, 2 parameter values). The chart below shows, at each point in the test plan, what percentage of the total possible number of relevant combinations have been covered.

In this set of test cases, as in most, there is a significant decreasing marginal return.

30

Highest priority 10 tests 20?

Page 31: Conquering the single largest challenge facing today's testers copy

Testing each feature to “see if it works” is not enough.

Page 32: Conquering the single largest challenge facing today's testers copy

32

Every pair of test inputs get tested in at least one test!

Page 33: Conquering the single largest challenge facing today's testers copy

33

ThreeImplications

Page 34: Conquering the single largest challenge facing today's testers copy

34

1. Bad software

quality can bring disaster to

anyone.

Page 35: Conquering the single largest challenge facing today's testers copy

35

2.Smart, skilled,

empowered testers are essential.

Page 36: Conquering the single largest challenge facing today's testers copy

36

3.Pairwise and

combinatorial testing helps test systems

BOTH more thoroughly

Page 37: Conquering the single largest challenge facing today's testers copy

37

3.Pairwise and

combinatorial testing helps test systems

BOTH more thoroughly AND more quickly.

Page 38: Conquering the single largest challenge facing today's testers copy

38

1) Harry Robinson testing

2) Pairwise testing case studies

For more info, Google / Bing:

Page 39: Conquering the single largest challenge facing today's testers copy

39

1. Does this Stuff Really Work?

2. Adoption Trends

II. Making it Real

Page 40: Conquering the single largest challenge facing today's testers copy

40

Why Pairwise?

Page 41: Conquering the single largest challenge facing today's testers copy

41

How do Tools Design Tests?

They don’t.

You do!

Page 42: Conquering the single largest challenge facing today's testers copy

42

Endemic Problems

1. Repetition

2. Gaps in Coverage

Page 43: Conquering the single largest challenge facing today's testers copy

43

Pilots, Drivers, & Testers

“Look at the person to your left.

Look at the person to your right.”

You’re, no doubt, fine. It’s them.

Page 44: Conquering the single largest challenge facing today's testers copy

44

Pilots, Drivers, & Testers

“Look at the person to your left.

Look at the person to your right.”

You’re OK. It’s them.

Page 45: Conquering the single largest challenge facing today's testers copy

45

Things that Vary

How they Vary

Page 46: Conquering the single largest challenge facing today's testers copy

46

A

09

I

C

A

V

B

10

R

E

B

I

C

L

C

B

A

Variables

Page 47: Conquering the single largest challenge facing today's testers copy

A

09

I

C

A

V

B

10

R

E

B

I

C

L

C

B

A

Page 48: Conquering the single largest challenge facing today's testers copy

A

09

I

C

A

V

B

10

R

E

B

I

C

L

C

B

A

Page 49: Conquering the single largest challenge facing today's testers copy

After 5Hexawise

Tests

A

09

I

C

A

V

B

10

R

E

B

I

C

L

C

B

A

Page 50: Conquering the single largest challenge facing today's testers copy

After 10Hexawise

Tests

A

09

I

C

A

V

B

10

R

E

B

I

C

L

C

B

A

Page 51: Conquering the single largest challenge facing today's testers copy

After 13Hexawise

Tests

A

09

I

C

A

V

B

10

R

E

B

I

C

L

C

B

A

Page 52: Conquering the single largest challenge facing today's testers copy

I

C

V

B

10

E

B

I

C

L

B

C

A

After 13ManualTests

AA

R

09

There were many, many pairs of values (in red) that the 13 manual tests had not tested together.

Manual test case selection

Page 53: Conquering the single largest challenge facing today's testers copy

Without Hexawise With Hexawise

126 testsincomplete coveragewasteful repetition

13 testscomplete coverage

variation, not repetition

Page 54: Conquering the single largest challenge facing today's testers copy

54

So What?

Page 55: Conquering the single largest challenge facing today's testers copy

Time

Here...Adoption Trends

Page 56: Conquering the single largest challenge facing today's testers copy

56

Source: Conservatively interpreted data from several dozen recent pilot projects. Time savings are often significantly larger than 40% and will almost always exceed 30%.

Faster Test Creation

Page 57: Conquering the single largest challenge facing today's testers copy

57

More Defects Found / Hour

Source: Empirical study of average benefits 10 software testing projects published in IEEE Computer magazine in 2009: “Combinatorial Software Testing” Rick Kuhn, Raghu Kacker, Yu Lei, Justin Hunter. Results of individual projects will differ.

Page 58: Conquering the single largest challenge facing today's testers copy

58

Faster Test Creation

Source: Empirical study of average benefits 10 software testing projects published in IEEE Computer magazine in 2009: “Combinatorial Software Testing” Rick Kuhn, Raghu Kacker, Yu Lei, Justin Hunter. Results of individual projects will differ.

Page 59: Conquering the single largest challenge facing today's testers copy

59

Thank You!

(BTW did this topic make your “Top 3” list?)