SlideShare a Scribd company logo
SIGiST
                     Specialist Interest Group in
                     Software Testing 21 Jun 2011




                          Thompson
                          information
                          Systems
                                                1
Photo credit: Axel Rouvin,Consulting Ltd Commons.
                           Flickr, Creative
SIGiST
                                                                          Specialist Interest Group in
                                                                          Software Testing 21 Jun 2011



                          What is Risk?
                              Lightning Talk




                          Neil Thompson
       Thompson information Systems Consulting Ltd
         Some of this material courtesy of, or co-developed with,           ©Thompson
                                                                             information
v1.0     Paul Gerrard and (on another occasion) Testing Solutions Group      Systems
                                                                             Consulting Ltd         2
Risk is... Bad Things which may (or
                                                                SIGiST
may not) happen                                          Specialist Interest Group in
                                                         Software Testing 21 Jun 2011




                          BAD THINGS WHICH
                          COULD HAPPEN, AND
                          LIKELIHOOD OF EACH




                      N      E
                      W     S

                                     CONSEQUENCE OF
                                      EACH BAD THING
                                    WHICH COULD HAPPEN



                                                           ©Thompson
• If the bad thing happens, then becomes “Issue”             information
                                                            Systems
                                                            Consulting Ltd         3
The simple way to “quantify” risk                                SIGiST
                                                          Specialist Interest Group in
                                                          Software Testing 21 Jun 2011



          LIKELIHOOD                  risk EXPOSURE =
        (“probability”)               likelihood
          of bad thing    3   6   9   x
             occurring                consequence
                          2   4   6
                          1   2   3
                                      CONSEQUENCE (impact)
                                               if bad thing
                                                does occur

 • This is how most people quantify risk (though true
   quantification is notoriously difficult)
 • “Probability” is (properly) a number between 0 & 1`
 • Adding gives same rank as multiplying, but less
   differentiation                                                                  4
Does risk have any other dimensions?                         SIGiST
                                                      Specialist Interest Group in
                                                      Software Testing 21 Jun 2011




  • In addition to likelihood and consequence...
  • Undetectability:
    – difficulty of seeing a bad thing if it does happen
    – eg insidious database corruption
  • Urgency:
    – advisability of looking for / preventing some bad
      things before other bad things
    – eg lack of requirements stability
  • Both the above make a risk worse
  • Any others?

                                                                                5
Different types of software risk                                     SIGiST
                                                              Specialist Interest Group in
                                                              Software Testing 21 Jun 2011


 Eg:
 • supplier may                     Project
     deliver late
 • key staff may leave              risk
                                    may
                                              may
                                    cause
                                              cause
 Eg:
 • configuration management         Process
     may install wrong version of
     product                        risk
                                    may
                                    cause             may
 Eg:                                                  cause
 • specifications may contain       Product
     defects
 • software may contain faults      risk                        ©Thompson
                                                                  information
                                                                 Systems
                                                                 Consulting Ltd         6
The “iron triangle” is really a tunable
                                                                 SIGiST
tetrahedron?                                              Specialist Interest Group in
                                                          Software Testing 21 Jun 2011




                                         Quality




               Quality                  Scope
                                                   Cost


                                                           Quality

 Scope

                          Time            Time                       Cost
best pair to
                         Scope             Cost
fine-tune
                 Risk            Time                       ©Thompson
                                                              information
                                                             Systems
                                                             Consulting Ltd         7
Risk on the Value Flow ScoreCard                                                          SIGiST
                                                                                    Specialist Interest Group in
                                                                                    Software Testing 21 Jun 2011
                                   SIX VIEWPOINTS of what stakeholders want

              Supplier   Process    Product     Customer   Financial   Improvement &
                                                                       Infrastructure


Objectives                                                                                   WHY we
                                                                                             do things

Threats to    Project    Process    Product Project         Project      Process
success       risk       risk       risk    risk            risk         risk


Measures
                                                                                             WHAT
                                                                                             (will
                                                                                             constitute
Targets                                                                                      success)

                                                                                             HOW to
Initiatives                                                                                  do things
                                                                                             well
                                                                                        ©Thompson
                                                                                          information
                                                                                         Systems
                                                                                         Consulting Ltd       8
Product Risk dimensions for testing                                     SIGiST
                                                                 Specialist Interest Group in
                                                                 Software Testing 21 Jun 2011

                                               MAGNITUDE =
                                               likelihood
                                         125
                                       100     x
                                     75        consequence
LIKELIHOOD                          50
                                               x
(probability)                                  testability
of bad thing    5   10 15 20 25
   occurring    4   8   12 16 20
                3   6   9 12 15                   TESTABILITY (how feasible /
                                                           convenient it is to
                2   4   6 8 10                          test against this risk)

                1   2   3   4   5
                                         CONSEQUENCE (impact)
                                                  if bad thing
                                                   does occur


 • This new three-way view is useful when
                                                                  © Thompson
   prioritising risks for testing                                   information
                                                                    Systems
                                                                    Consulting Ltd         9
Brief digression: we really mean
                                                                                                                              SIGiST
“uncertainty”!                                                                                                       Specialist Interest Group in
                                                                                                                     Software Testing 21 Jun 2011


 Decision theory, different situations under which decisions are made…

               Certainty                   Risk                               Uncertainty


Alternatives   A B C                      A B C                                     A B C unknown!

Consequences   a   b   c        a1         b1                  c1             a1          b1                   c1

                                     a2         b2                  c2             a2          b2                   c2

                                                     b3                  c3                         b3                   c3

Probability                                               b4                                             b4

of each                      p(a1), p(a2), p(b1), p(b2), p(b3), p(b4),              ?,   ?,    ?,    ?,       ?,    ?,
consequence                  p(c1), p(c2), p(c3)                                    ?,   ?,    ?


                                           known                                         unknown
• In software risk, we can only estimate the probabilities!                                                               ©Thompson
                                                                                                                            information      10
• And... we don’t really know all the alternatives!                                                                        Systems
                                                                                                                           Consulting Ltd
Each step in software lifecycle is
                                                                                                                                   SIGiST
  threatened by risk                                                                                                        Specialist Interest Group in
                                                                                                                            Software Testing 21 Jun 2011

                                                                                                            validation
                                                   DEVELOPMENT                     TEST                     testing
                                                      MODEL                       MODEL
                                        simplification
                                                                                 Acceptance Test                AT
                               REAL                      Requirements            Analysis & Design           Execution
                               WORLD
                                                                                      verification testing
   DEV MODEL           TEST MODEL
   (expected)         (ver’d / val’d)     refinement         Functional
                                                                                      System Test                  ST
                                          with risk of       Specification            Analysis & Design         Execution

                                          distortion
REAL
WORLD                                                              Technical            Integration Test              IT
(desired)                                                          Design               Analysis & Design          Execution


after
SOFTWARE TESTING:
A CRAFTSMAN’S
APPROACH            SOFTWARE
                                                                             Module         Component Test              CT
Paul Jorgensen      (observed)
                                                                             Spec           Analysis & Design        Execution

So:
• remember overlapping models                                                  programming SOFTWARE
                                                                                                    ©Thompson
                                                                                                      information
• need both verification & validation                                          with risk of bugs     Systems
                                                                                                     Consulting Ltd                                 11
Product risks have a cause-effect
                                                                                                                           SIGiST
chain                                                                                                               Specialist Interest Group in
                                                                                                                    Software Testing 21 Jun 2011

                      DEVELOPMENT                                          TEST
                         MODEL                                            MODEL
       simplification
REAL                         Requirements
WORLD                                                                                                               Consequence:
                                                                                                                    impact of risk
                                                                                                                    becoming issue

           refinement              Functional
           with risk of            Specification                                              Failure:              Knock-on
                                                                                              an incorrect result
           distortion                                                                                               Effects
                                                                                              Error:
                                                                                              amount by which
                                            Technical
                                                                                              result is incorrect
                                            Design

                                                                    Fault:
Mistake:                                                            an incorrect step,
                                                                                            Anomaly:
a human action that                                Module           process or data
produces an             Defect:                    Spec             definition in a         an unexpected result
incorrect result                                                    computer program        during testing
                        incorrect results
(eg in spec-            in specifications                           (ie executable
writing,                                                            software)
program-
coding)
                                    programming
                                    with risk of bugs                  SOFTWARE
                                                                                                                      ©Thompson
                                                                                                                        information
Likelihood of making mistakes, of defects causing faults, of faults causing failures, etc                              Systems
                                                                                                                       Consulting Ltd       12
Product Risk factors                                        SIGiST
                                                     Specialist Interest Group in
                                                     Software Testing 21 Jun 2011



• Consequence is usually seen in terms of potential
  impact on the business:
   – direct financial (loss of profit, regulatory fines etc)
   – indirect financial (eg reputation damage)
   – frequency of use of the malfunctioning part/aspect of the
     system
• Likelihood is more associated with technical factors:
   –   complexity of the part/aspect of the system
   –   newness, degree to which changed
   –   historical bugginess
   –   etc etc
   –   and frequency of use, again!                   © Thompson
                                                        information
                                                        Systems
                                                        Consulting Ltd        13
More about quantification difficulties           SIGiST
                                          Specialist Interest Group in
                                          Software Testing 21 Jun 2011



• In addition to the difficulty assessing all the
  things which could possibly go wrong, and their
  likelihoods...
• Consequences are also difficult to calculate
• And...
• Humans often have emotional / irrational biases
  in matters of risk


                                            ©Thompson
                                              information
                                             Systems
                                             Consulting Ltd       14
So, what does all this mean for
                                                                                                            SIGiST
testing?                                                                                             Specialist Interest Group in
                                                                                                     Software Testing 21 Jun 2011

                      DEVELOPMENT                                                   TEST
                         MODEL                                                     MODEL
                                                                                            2. Brainstorm /
                                                                                               workshop:
REAL                         Requirements                                                   • things which could
WORLD                                                      1b. Prioritise:                     go wrong, whether
                                                           • test items                        or not in spec
                                  Functional
                                  Specification            • features to be                 • their likelihood &
                                                             tested                            consequences
1a. Risk-assess:                                           • test basis
• the importance                         Technical
                                                             elements etc
                                         Design
                                                                                            TEST CONDITIONS
  of each                                                  • GRADE coverage                   come from both
  part/aspect                                     Module                                      1&2
  of the system                                   Spec
                                                                                                  Consequence:
• the likelihood                                                                                  impact of risk
                                                                                                  becoming issue
  of risks here                                                        SOFTWARE
                                                                                                       ©Thompson
                                                                                                         information
Likelihood of making mistakes, of defects causing faults, of faults causing failures, etc               Systems
                                                                                                        Consulting Ltd       15
What do I mean by GRADE test
                                                                                     SIGiST
coverage?                                                                     Specialist Interest Group in
                                                                              Software Testing 21 Jun 2011


Test Coverage                                                  Source: Testing Solutions Group
&
Effort Even distribution



           X                         X
                                Random / spurious priorities        Risk-graded




                    Riskiness
                                                                    (but avoid using this
                                                                    as an excuse to omit
                                                                    some things
                                                                    completely!)
  Also NB, risk information carries through
  the test process, to prioritise:
  • defects & anomalies
  • retests
  • regression tests                                                            ©Thompson
                                                                                  information
                                                                                 Systems
                                                                                 Consulting Ltd       16
References & acknowledgements                                                              SIGiST
•   James Bach: Heuristic Risk-Based Testing, Troubleshooting RBT,           Specialist Interest Group in
                                                                             Software Testing 21 Jun 2011
    etc (www.satisfice.com)
•   Paul Gerrard: various presentations & papers (www.gerrardconsulting.com), leading to...
•   ...Paul Gerrard & Neil Thompson: Risk-Based E-Business Testing (Artech House 2002)
•   Neil Thompson: Risk Mitigation Trees – Review test handovers with stakeholders
    (EuroSTAR 2004)
•   Chris Comey & Testing Solutions Group: Risk Based Assurance & Acceptance
    (www.testing-solutions.com)
Associated topics
Decision-making & risk:
• Terje Aven: Foundations of Risk Analysis – a Knowledge and Decision-oriented
   Perspective (Wiley 2003)

Wider risk management:
• Tom DeMarco & Timothy Lister: Waltzing with Bears – Managing Risk on Software
   Projects (Dorset House 2003)

Psychology & philosophy of risk:
• Dan Gardner: Risk – the Science and Politics of Fear (Virgin books 2008)
• (Edited by) Tim Lewens: Risk – Philosophical Perspectives (Routledge 2007)
                                                                                        ©Thompson
Models in testing:                                                           information
                                                                             Systems
• Paul Jorgensen: Software Testing – a Craftsman’s Approach (CRC Press 1995) Consulting Ltd           17

More Related Content

PPTX
ALIA NLS7 Career Planning Workshop Contributed Slides
PPTX
Bipedestación
PDF
Honda Civic Coupe USC Presentation
PPTX
Tissues
PPT
Presentatie Han Mesters - Cultuur 2.1
PPTX
Thriller seqeunce pitch
PPTX
The Case History of Noronha Advogados - Brazil's Global Law Firm
PPTX
Streaming architecture zx_dec2015
ALIA NLS7 Career Planning Workshop Contributed Slides
Bipedestación
Honda Civic Coupe USC Presentation
Tissues
Presentatie Han Mesters - Cultuur 2.1
Thriller seqeunce pitch
The Case History of Noronha Advogados - Brazil's Global Law Firm
Streaming architecture zx_dec2015

Viewers also liked (12)

PDF
TCI_DangerousDegrees_print
PPT
Directing report
PPSX
Sejutakaos Presentation (MY)
PDF
02. TCI Carbon
ODP
Yii Framework - Do we really need another php framework?
PPTX
Computer lab Under Construction
PPTX
Preparation for Fortnue
PPTX
Absolute Lies
DOCX
Value-Inspired Testing - renovating Risk-Based Testing, & innovating with Eme...
PDF
13. TCI Climate Smart Super 2013
PPTX
Assets for Bangladeshi People
PPTX
Bangladesh Growth Map
TCI_DangerousDegrees_print
Directing report
Sejutakaos Presentation (MY)
02. TCI Carbon
Yii Framework - Do we really need another php framework?
Computer lab Under Construction
Preparation for Fortnue
Absolute Lies
Value-Inspired Testing - renovating Risk-Based Testing, & innovating with Eme...
13. TCI Climate Smart Super 2013
Assets for Bangladeshi People
Bangladesh Growth Map
Ad

Similar to What is Risk? - lightning talk for software testers (2011) (20)

PPSX
The Science of Software Testing - Experiments, Evolution & Emergence (2011)
PPSX
Risk and Testing (2003)
PPTX
Value-Inspired Testing - renovating Risk-Based Testing, & innovating with Eme...
PPTX
Fundamentals of testing
PPTX
Fundamentals of testing
PPTX
01 fundamentals of testing
PPTX
Testing implementasi 1
PDF
Fundamentals of testing (1)
PDF
5 Quality
PDF
Lean qa enabling quality through tools and technology lean quality assurance ...
PPTX
ISTQBCH1 Manual Testing.pptx
PPT
NGTEST_Presentation
PPT
NG_TEST_SR_Presentation
PPT
NG_TEST_Presentation_0510
PPT
Se lect13 btech
PPT
Se lect12 btech
PPTX
Software systems context
PDF
Wagster
PDF
Wagster
PPTX
Quality & Reliability in Software Engineering
The Science of Software Testing - Experiments, Evolution & Emergence (2011)
Risk and Testing (2003)
Value-Inspired Testing - renovating Risk-Based Testing, & innovating with Eme...
Fundamentals of testing
Fundamentals of testing
01 fundamentals of testing
Testing implementasi 1
Fundamentals of testing (1)
5 Quality
Lean qa enabling quality through tools and technology lean quality assurance ...
ISTQBCH1 Manual Testing.pptx
NGTEST_Presentation
NG_TEST_SR_Presentation
NG_TEST_Presentation_0510
Se lect13 btech
Se lect12 btech
Software systems context
Wagster
Wagster
Quality & Reliability in Software Engineering
Ad

More from Neil Thompson (14)

PPSX
Six schools, three cultures of testing: future-proof by shifting left, down, ...
PPSX
Test Data, Information, Knowledge, Wisdom: past, present & future of standing...
DOCX
From 'Fractal How' to Emergent Empowerment (2013 article)
PPSX
Risk-Based Testing - Designing & managing the test process (2002)
PPSX
'Best Practices' & 'Context-Driven' - Building a bridge (2003)
PPSX
Risk Mitigation Trees - Review test handovers with stakeholders (2004)
PPSX
ROI at the bug factory - Goldratt & throughput (2004)
PPSX
Feedback-focussed process improvement (2006)
PPSX
Thinking tools - From top motors through s'ware proc improv't to context-driv...
PPSX
Holistic Test Analysis & Design (2007)
PPSX
Value Flow ScoreCards - For better strategies, coverage & processes (2008)
PPSX
Value Flow Science - Fitter lifecycles from lean balanced scorecards (2011)
PPSX
Memes & Fitness Landscapes - analogies of testing with sci evol (2011)
PPSX
Testing as Value Flow Mgmt - organise your toolbox (2012)
Six schools, three cultures of testing: future-proof by shifting left, down, ...
Test Data, Information, Knowledge, Wisdom: past, present & future of standing...
From 'Fractal How' to Emergent Empowerment (2013 article)
Risk-Based Testing - Designing & managing the test process (2002)
'Best Practices' & 'Context-Driven' - Building a bridge (2003)
Risk Mitigation Trees - Review test handovers with stakeholders (2004)
ROI at the bug factory - Goldratt & throughput (2004)
Feedback-focussed process improvement (2006)
Thinking tools - From top motors through s'ware proc improv't to context-driv...
Holistic Test Analysis & Design (2007)
Value Flow ScoreCards - For better strategies, coverage & processes (2008)
Value Flow Science - Fitter lifecycles from lean balanced scorecards (2011)
Memes & Fitness Landscapes - analogies of testing with sci evol (2011)
Testing as Value Flow Mgmt - organise your toolbox (2012)

Recently uploaded (20)

PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation theory and applications.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
A Presentation on Artificial Intelligence
PDF
Approach and Philosophy of On baking technology
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation theory and applications.pdf
Unlocking AI with Model Context Protocol (MCP)
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Encapsulation_ Review paper, used for researhc scholars
Chapter 3 Spatial Domain Image Processing.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Mobile App Security Testing_ A Comprehensive Guide.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Building Integrated photovoltaic BIPV_UPV.pdf
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
A Presentation on Artificial Intelligence
Approach and Philosophy of On baking technology
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Digital-Transformation-Roadmap-for-Companies.pptx

What is Risk? - lightning talk for software testers (2011)

  • 1. SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 Thompson information Systems 1 Photo credit: Axel Rouvin,Consulting Ltd Commons. Flickr, Creative
  • 2. SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 What is Risk? Lightning Talk Neil Thompson Thompson information Systems Consulting Ltd Some of this material courtesy of, or co-developed with, ©Thompson information v1.0 Paul Gerrard and (on another occasion) Testing Solutions Group Systems Consulting Ltd 2
  • 3. Risk is... Bad Things which may (or SIGiST may not) happen Specialist Interest Group in Software Testing 21 Jun 2011 BAD THINGS WHICH COULD HAPPEN, AND LIKELIHOOD OF EACH N E W S CONSEQUENCE OF EACH BAD THING WHICH COULD HAPPEN ©Thompson • If the bad thing happens, then becomes “Issue” information Systems Consulting Ltd 3
  • 4. The simple way to “quantify” risk SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 LIKELIHOOD risk EXPOSURE = (“probability”) likelihood of bad thing 3 6 9 x occurring consequence 2 4 6 1 2 3 CONSEQUENCE (impact) if bad thing does occur • This is how most people quantify risk (though true quantification is notoriously difficult) • “Probability” is (properly) a number between 0 & 1` • Adding gives same rank as multiplying, but less differentiation 4
  • 5. Does risk have any other dimensions? SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 • In addition to likelihood and consequence... • Undetectability: – difficulty of seeing a bad thing if it does happen – eg insidious database corruption • Urgency: – advisability of looking for / preventing some bad things before other bad things – eg lack of requirements stability • Both the above make a risk worse • Any others? 5
  • 6. Different types of software risk SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 Eg: • supplier may Project deliver late • key staff may leave risk may may cause cause Eg: • configuration management Process may install wrong version of product risk may cause may Eg: cause • specifications may contain Product defects • software may contain faults risk ©Thompson information Systems Consulting Ltd 6
  • 7. The “iron triangle” is really a tunable SIGiST tetrahedron? Specialist Interest Group in Software Testing 21 Jun 2011 Quality Quality Scope Cost Quality Scope Time Time Cost best pair to Scope Cost fine-tune Risk Time ©Thompson information Systems Consulting Ltd 7
  • 8. Risk on the Value Flow ScoreCard SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 SIX VIEWPOINTS of what stakeholders want Supplier Process Product Customer Financial Improvement & Infrastructure Objectives WHY we do things Threats to Project Process Product Project Project Process success risk risk risk risk risk risk Measures WHAT (will constitute Targets success) HOW to Initiatives do things well ©Thompson information Systems Consulting Ltd 8
  • 9. Product Risk dimensions for testing SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 MAGNITUDE = likelihood 125 100 x 75 consequence LIKELIHOOD 50 x (probability) testability of bad thing 5 10 15 20 25 occurring 4 8 12 16 20 3 6 9 12 15 TESTABILITY (how feasible / convenient it is to 2 4 6 8 10 test against this risk) 1 2 3 4 5 CONSEQUENCE (impact) if bad thing does occur • This new three-way view is useful when © Thompson prioritising risks for testing information Systems Consulting Ltd 9
  • 10. Brief digression: we really mean SIGiST “uncertainty”! Specialist Interest Group in Software Testing 21 Jun 2011 Decision theory, different situations under which decisions are made… Certainty Risk Uncertainty Alternatives A B C A B C A B C unknown! Consequences a b c a1 b1 c1 a1 b1 c1 a2 b2 c2 a2 b2 c2 b3 c3 b3 c3 Probability b4 b4 of each p(a1), p(a2), p(b1), p(b2), p(b3), p(b4), ?, ?, ?, ?, ?, ?, consequence p(c1), p(c2), p(c3) ?, ?, ? known unknown • In software risk, we can only estimate the probabilities! ©Thompson information 10 • And... we don’t really know all the alternatives! Systems Consulting Ltd
  • 11. Each step in software lifecycle is SIGiST threatened by risk Specialist Interest Group in Software Testing 21 Jun 2011 validation DEVELOPMENT TEST testing MODEL MODEL simplification Acceptance Test AT REAL Requirements Analysis & Design Execution WORLD verification testing DEV MODEL TEST MODEL (expected) (ver’d / val’d) refinement Functional System Test ST with risk of Specification Analysis & Design Execution distortion REAL WORLD Technical Integration Test IT (desired) Design Analysis & Design Execution after SOFTWARE TESTING: A CRAFTSMAN’S APPROACH SOFTWARE Module Component Test CT Paul Jorgensen (observed) Spec Analysis & Design Execution So: • remember overlapping models programming SOFTWARE ©Thompson information • need both verification & validation with risk of bugs Systems Consulting Ltd 11
  • 12. Product risks have a cause-effect SIGiST chain Specialist Interest Group in Software Testing 21 Jun 2011 DEVELOPMENT TEST MODEL MODEL simplification REAL Requirements WORLD Consequence: impact of risk becoming issue refinement Functional with risk of Specification Failure: Knock-on an incorrect result distortion Effects Error: amount by which Technical result is incorrect Design Fault: Mistake: an incorrect step, Anomaly: a human action that Module process or data produces an Defect: Spec definition in a an unexpected result incorrect result computer program during testing incorrect results (eg in spec- in specifications (ie executable writing, software) program- coding) programming with risk of bugs SOFTWARE ©Thompson information Likelihood of making mistakes, of defects causing faults, of faults causing failures, etc Systems Consulting Ltd 12
  • 13. Product Risk factors SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 • Consequence is usually seen in terms of potential impact on the business: – direct financial (loss of profit, regulatory fines etc) – indirect financial (eg reputation damage) – frequency of use of the malfunctioning part/aspect of the system • Likelihood is more associated with technical factors: – complexity of the part/aspect of the system – newness, degree to which changed – historical bugginess – etc etc – and frequency of use, again! © Thompson information Systems Consulting Ltd 13
  • 14. More about quantification difficulties SIGiST Specialist Interest Group in Software Testing 21 Jun 2011 • In addition to the difficulty assessing all the things which could possibly go wrong, and their likelihoods... • Consequences are also difficult to calculate • And... • Humans often have emotional / irrational biases in matters of risk ©Thompson information Systems Consulting Ltd 14
  • 15. So, what does all this mean for SIGiST testing? Specialist Interest Group in Software Testing 21 Jun 2011 DEVELOPMENT TEST MODEL MODEL 2. Brainstorm / workshop: REAL Requirements • things which could WORLD 1b. Prioritise: go wrong, whether • test items or not in spec Functional Specification • features to be • their likelihood & tested consequences 1a. Risk-assess: • test basis • the importance Technical elements etc Design TEST CONDITIONS of each • GRADE coverage come from both part/aspect Module 1&2 of the system Spec Consequence: • the likelihood impact of risk becoming issue of risks here SOFTWARE ©Thompson information Likelihood of making mistakes, of defects causing faults, of faults causing failures, etc Systems Consulting Ltd 15
  • 16. What do I mean by GRADE test SIGiST coverage? Specialist Interest Group in Software Testing 21 Jun 2011 Test Coverage Source: Testing Solutions Group & Effort Even distribution X X Random / spurious priorities Risk-graded Riskiness (but avoid using this as an excuse to omit some things completely!) Also NB, risk information carries through the test process, to prioritise: • defects & anomalies • retests • regression tests ©Thompson information Systems Consulting Ltd 16
  • 17. References & acknowledgements SIGiST • James Bach: Heuristic Risk-Based Testing, Troubleshooting RBT, Specialist Interest Group in Software Testing 21 Jun 2011 etc (www.satisfice.com) • Paul Gerrard: various presentations & papers (www.gerrardconsulting.com), leading to... • ...Paul Gerrard & Neil Thompson: Risk-Based E-Business Testing (Artech House 2002) • Neil Thompson: Risk Mitigation Trees – Review test handovers with stakeholders (EuroSTAR 2004) • Chris Comey & Testing Solutions Group: Risk Based Assurance & Acceptance (www.testing-solutions.com) Associated topics Decision-making & risk: • Terje Aven: Foundations of Risk Analysis – a Knowledge and Decision-oriented Perspective (Wiley 2003) Wider risk management: • Tom DeMarco & Timothy Lister: Waltzing with Bears – Managing Risk on Software Projects (Dorset House 2003) Psychology & philosophy of risk: • Dan Gardner: Risk – the Science and Politics of Fear (Virgin books 2008) • (Edited by) Tim Lewens: Risk – Philosophical Perspectives (Routledge 2007) ©Thompson Models in testing: information Systems • Paul Jorgensen: Software Testing – a Craftsman’s Approach (CRC Press 1995) Consulting Ltd 17