29
Th14 - How Much Testing is Enough? Achieving the Optimum Balance 2 december 2010

Edwin Van Loon - How Much Testing is Enough - EuroSTAR 2010

Embed Size (px)

DESCRIPTION

EuroSTAR Software Testing Conference 2010 presentation on How Much Testing is Enough by Edwin Van Loon . See more at: http://conference.eurostarsoftwaretesting.com/past-presentations/

Citation preview

Page 1: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Th14 - How Much Testing is Enough?Achieving the Optimum Balance

2 december 2010

Page 2: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Introduction

Page 3: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Agenda

• Introduction

• Test improvement based on ECL*

• Identify current position

• Define goal: Next position

• Define and implement measures

* Economic Conformance Level

Page 4: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Agenda

• Introduction

• Test improvement based on ECL

• Identify current position

• Define goal: Next position

• Define and implement measures

Page 5: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

The question is:How to convince the project/organisation of the added value of testing?

Page 6: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Inspired by Joseph Juran

• Lived from 1904 - 2008

• One of the two Quality gurus

• Specialized in managing quality

• Pioneer of Six sigma

• The Lean approach

• Founder of the pareto principle

Page 7: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Six sigma

Measure

Analyse

Improve

Control

Define

Page 8: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Jurans curveC

os

ts

ECL

Internal and External failure costs

Prevention and Appraisal costs

Total costs

Page 9: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Agenda

• Introduction

• Test improvement based on ECL

• Identify current position

• Define goal: Next position

• Define and implement measures

Page 10: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Six sigma approach

• Define -> Improvement goals

• Measure -> current process & establish metrics

• Analyse -> problems and causes within process

• Improve -> by identifying and piloting solutions

• Control -> by standardization and monitoring

Page 11: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

TMM

1. Initial

2. Managed

-Test policy and strategy-Test planning-Test monitoring and control-Test design and execution-Test environment

3. Integration

-Test organisation-Test training program-Test life cycle and integration-Non-functional testing-Peer reviews

4. Management and measurement

-Test management-Software Quality evaluation-Advanced peer reviews

5. Optimisation

-Defect prevention-Test process optimisation-Quality control

Corrective

Detective

Preventive

Page 12: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

2. Definegoal:Next

Position

3. Defineand

ImplementMeasures

1. IdentifyCurrentPosition

Reach the balance

E.Improve

D. Analyse

B. Measure

F.Control

C. Define

Detailed

A. DefineGlobal

Measure

Analyse

Improve

Control

Define

Page 13: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Agenda

• Introduction

• Traditional test improvement

• Test improvement based on ECL

• Identify current position

• Define goal: Next position

• Define and implement measures

Page 14: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

So

ftw

are

Qu

ali

ty C

os

ts

ECL

Software quality Maturity levels

Corrective

costs

Preventive and

Detective costs

Total costs on

software quality

Reactive Passive Balanced (Over)Active

Page 15: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Quality measures

Corrective

• Measures taken to correct the failure itself, damage and

reduce the cost/damage of failures

• Measurement: Categories the failures on cost:

• Effort needed to correct the failure +

• Cost needed to correct the loss of image +

• Financial damage (downtime, lost of turnover)

Detective

• Measures taken to detect the failures, before going live

• Cost: Effort needed and other costs to find the bugs

• Benefit: Corrective cost saved on the bugs

Preventive

• Measure taken to prevent failures/bugs

• Cost: Effort needed to prevent the bugs

• Benefit: Corrective cost saved on the bugs

Page 16: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Calculation

Corrective = Detective + Preventive

Corrective:

• # of issues * average corrective costs

• Direct costs to correct the issues

• Costs on non productive employees

• Financial costs

(lost of image, extra letters to be sended,

lost of turnover, wrong calculations, etc.)

Detective and preventive:

• # of issues prevented/detected * costs per issue

To be calculated per TEST TYPE and

issue CATEGORY !

Page 17: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Example

* Defect Detection Percentage

Start

N<8 AND

MAN=TRUE

M>6 OR

L<65

Einde

Statement coverage (SC)

Condition coverage (CC)

Decision coverage (DC)

Modified Condition/decision coverage (MCDC)

Multiple Condition/decision coverage (MCC)

# Average DDP*

2 25 – 55 %

3 60 – 80 %

3 60 – 80 %

4 80 – 85 %

16 90 – 95 %

Page 18: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Agenda

• Introduction

• Test improvement based on ECL

• Identify current position

• Define goal: Next position

• Define and implement measures

Page 19: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Optimizing the balanceS

oft

wa

re Q

ua

lity

Co

sts

Reactive Passive Balanced (Over)Active

Page 20: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Optimizing the balance

Move towards optimum via

• Increasing/decreasing test coverage

• Introduction of extra test measures or reduction of

test measures

• Introduction/reduction of preventive measures:

• Configuration management

• Requirement management

• Change/release management

• Other measures

Page 21: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Optimizing the efficiency

Reactive Passive Balanced (Over)Active

Page 22: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Optimizing the efficiency

Being more efficient in quality management by

• Detecting bugs in an earlier stage

• Testautomation

• Reducing the time needed to detect the bugs by:

• Selecting more efficient test specification techniques

• Reduce the number of test deliverables

(or content of test deliverables)

• Increase the re-usability of testware

• Decrease the time needed to maintain testware.

• Optimising the cooperation between the testtypes and

involved parties

Page 23: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Real life Example

Current position:

• Corrective about 7,5 FTE (inclusive correction)

• Detective/Preventive: 2 FTE + 1 FTE = 3 FTE

Additional problems:

• No overall process documentation available

• Large number of „Technical‟ failures during system test

• Large number of minor releasesPassive

Page 24: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Optimisation suggestions

Some of the suggestions:

• Formalising the review process

(based on evaluations)

• Introduction of UAT regression testing

(including process descriptions)

• Formalising Unit testing

• “ Informalising”/Reducing System testing

• Reducing number of releases

Pragmatic and tailor made

Page 25: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Expected results

• Higher testcoverage

• Reduction of number of changes and issues

• Reduction of number of production failures

• Reduction of test execution costs

• Reduction of time needed for breaking in new employees

Expected:

Detective/Preventive: + 0,5 FTE = 3,5 FTE

Corrective: - 2,0 FTE = 5,5 FTE

Difference: + 1,5 FTE

Page 26: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Reconsidering the Boehm curve

Page 27: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Summarizing

• Collect metrics on quality

• Monitor the efficiency and effectiveness of

measures

• Steps to be taken

• Identify current position

• Define goal: next position

• Define and Implement measures

Prove the added value of testing

Page 28: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Sharing the experience

• Company/project culture has to be leading

• The success of test automation depends on the

tool, but also on the approach

• Testing less can also be effective

• Optimizing is measuring (using metrics)

• Quality is not only testing

• Being an added value is being proactive and

pragmatic

Page 29: Edwin Van Loon -  How Much Testing is Enough - EuroSTAR 2010

Questions