rekard edgren - curing our binary disease - eurostar 2012

20
Rikard Edgren, Qamcom Research & Technology Curing Our Binary Disease www.eurostarconferences.com @esconfs #esconfs

Upload: eurostar-software-testing-conference

Post on 23-Jun-2015

81 views

Category:

Technology


2 download

DESCRIPTION

EuroSTAR Software Testing Conference 2012 presentation on Curing Our Binary Disease by Rekard Edgren. See more at: http://conference.eurostarsoftwaretesting.com/past-presentations/

TRANSCRIPT

Page 1: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Rikard Edgren, Qamcom Research & Technology

Curing Our Binary Disease

www.eurostarconferences.com

@esconfs

#esconfs

Page 2: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Curing Our Binary

Disease

EUROSTAR 6-NOV-12 rikard.edgren@qam

com.se

Good testing is about investigating

the whole shEbang

Page 3: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

A SITUATION I was sitting with the test management software on the screen,

and a scribbled requirements document in his hand.

“Verify that…”

“Pass/Fail”

Many testers don’t provide useful information, because they aren’t allowed to.

The binary disease limits our thinking.

Page 4: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Agenda

Page 5: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

tools-to-

theories Tools shape our theories

Tools shape acceptance of theories

Software testing is a lot about computers

Most software is made for people...

Our theories are way too computeresque

They don’t capture what’s important Gerd Gigerenzer

Page 6: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Pass/Fail

Addiction You feel good when ending a test with Pass or Fail

Tests are constructed so Pass/Fail can be used

You reduce the value of requirements documents by insisting everything must be verifiable

You count Passes and Fails, but don‘t communicate what is most important

You haven‘t heard of serendipity

Status reporting is easy since counting Pass/Fail is the essence

Reality isn’t binary, we can communicate noteworthy information

we don’t know everything in advance

Page 7: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Pass/Fail REHAB Do some deviations when executing tests

Look at some more places than what is stated in the Expected Results field

Write the occasional test idea using the word "investigate"

Put the numbers in smaller font in your status report

Observe the software without a hypothesis to falsify

You can ask richer questions than: Is this correct or not? You can learn things, and grow as tester.

See it as your daily medicine; eventually any Pass/Fail usage will seem ridiculous

Page 8: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Coverage

Obsession 50% test coverage can mean

* we have found so many serious bugs that further testing is pointless

* we are running late because testers insist on investigating things they aren’t explicitly told to look for

* we have run the 50 most difficult test ideas, and we believe we will finish on schedule

* we have run the 50 easy tests on input data, and look forward to the results from the radically different test ideas

* we have run the first half, in alphabetical order, and are not really sure what we are doing

* we have investigated the 50 most important test ideas, and believe the implicit coverage is enough to go Beta

* we are halfway through, but have found a lot of things that are more important to test than our original assumptions

Page 9: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Coverage

Obsession A coverage model is useful to get ideas

Not useful as a metric of completion

A model can help you find important things, but a percentage number might not include things that are important

Information about the system is more important than information about the model of the system (Emilsson)

Page 10: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Metrics Tumor Should have at least 80% code coverage on unit tests

=> peer reviewed and accepted

2% better defect detection percentage

=> conversation with support people

95% Pass on test cases

=> means nothing at all

Measurements can’t judge what is important;

reality is impossible to aggregate;

metrics are dangerous.

Page 11: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Sick Test Design

Techniques The techniques that usually are taught are old,

they are based in computer science and ideas about everything being known in advance

They try to solve the impossibility of complete testing, and disregard what is common, error-prone, popular, risky, changed…

They don’t capture what is important

Page 12: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012
Page 13: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Capabilities

Failure Mode

Models

Data

Surroundings

White-

box

Product History

Actual software

Technologies

Competitors

Purpose

Image

Business

Knowledge

Legal

aspects

Creative Ideas

Internal

Collections

You

Project

Background

Information

Objectives

Risks

Test Artifacts

Debt

Conversations

Context Analysis

Many

Deliverables

Tools

Quality Characteristics

Fears

Usage

Scenarios

Field Information

Users

Public

Collections

Standards

References

Searching

Page 14: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

We are humans It’s not only that software is made for humans, by humans

We are making new, unique things; providing value

Humans are superior to machines at:

* understanding what’s important

* judgment

* separating right from wrong

* dealing with the inevitable unknown

Do your best, collaborate, learn to understand

what is important

Page 15: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Liberation To set all testers free, you should start with yourself

First step is acknowledgement

Next steps are your own, but will include thinking in new ways

Might involve helping others trusting testers

Ask stakeholders: What do you really want to know? – three or four times if necessary.

Page 16: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Noteworthy

information We should communicate

– benefits

– problems

– tips and suggestions

– opportunities

– risks and fears

– killed rumors

We should establish confidence

This is difficult to aggregate!

Page 17: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Communication Do we know how to communicate the essence fast?

We must train analyzing and communication (for testing!)

We need more words, and better metaphors – serendipity

– saturation

– quality has many faces

– things connected to life, not machines

– your appropriate words that build confidence and trust

A shared customized quality model can help

Page 18: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012
Page 19: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

GOING FORWARD My steps are lighter since I cured myself

Testing isn’t easy

If you make it easy, you lose the best parts

The next generation’s thinking testers

Life isn’t about ticking off check boxes

It is much richer…

Page 20: Rekard Edgren - Curing Our Binary Disease - EuroSTAR 2012

Questions ???

References: – Adaptive Thinking (Gigerenzer)

– Software Testing is a Social Science (Kaner)

– The Little Black Book on Test Design (Edgren)

[email protected]

This work is licensed under the Creative Commons Attribution-No Derivative License

http://thetesteye.com/blog/