SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
The dynamic interaction of passed and failed
   requirements during software testing




                Copyrights (c) 2011-2013 Pragmatic
                                                     1
                       Cohesion Consulting
Motivation
• In my professional experience, I have
  repeatedly witnessed systemic issues during
  Software Verification that prompted me to
  develop the model presented in this paper.
• It is my hope that the non-intuitive results
  that the model yields help software
  development team better understand certain
  dynamic behavior embedded in the software
  development process.
                 Copyrights (c) 2011-2013 Pragmatic
                                                      2
                        Cohesion Consulting
Requirements Statuses
• We are interested in 2 simple sets of
  requirements. All requirements within each
  set share one of the following statuses:
  – The first one represents requirements that have
    been implemented i.e. requirements for which the
    development team has created actual software
    code. Let’s call this set of requirements ISR.
  – The second one represents requirements that
    have failed testing after they were implemented
    by the development team. Let’s call this second
    set of requirements FSR.
                  Copyrights (c) 2011-2013 Pragmatic
                                                       3
                         Cohesion Consulting
Requirement States Probabilities
• Let’s call SFR the probability that a
  requirement that has been implemented fails
  testing. When this failure happens the
  requirement becomes part of the FSR set
  otherwise it remains in the ISR set.
• Let’s call SFXR the probability that a failed
  requirement gets fixed. When the fix takes
  place, the requirement is no longer part of the
  FSR set but it moves into the ISR set.
                 Copyrights (c) 2011-2013 Pragmatic
                                                      4
                        Cohesion Consulting
Requirement States Probabilities
• The following probability constraints exist:
   0 <= SFR <= 1
   0 <= SFXR <=1
• We can derive a probability transition matrix that
  captures the possible transitions of a requirement
  from one set to the other:
   From ISR to ISR, probability = 1-SFR
   From ISR to FSR, probability = SFR
   From FSR to ISR, probability = SFXR
   From FSR to FSR, probability = 1-SFXR


                      Copyrights (c) 2011-2013 Pragmatic
                                                           5
                             Cohesion Consulting
Transition probability matrix
Let M be the transition probability matrix,
M=
                              To ISR                      To FSR

           From ISR 1-SFR                            SFR

           From FSR SFXR                             1-SFXR




                             Copyrights (c) 2011-2013 Pragmatic
                                                                   6
                                    Cohesion Consulting
Two-Step Transition probabilities
• The following question is particularly
  interesting:
  – given the transition probability matrix M and the
    fact that a requirement has been added to the ISR
    set, what is the probability that this same
    requirement will be in the ISR set two transitions
    in the future?



                   Copyrights (c) 2011-2013 Pragmatic
                                                         7
                          Cohesion Consulting
Two-Step Transition probabilities
• The problem is not as obvious as it seems;
  here is is why:
  – When a Requirement enters set ISR it has a SFR
    probability of being moved to set FSR and a 1-SFR
    probability of staying in ISR. Once in FSR, it has a
    SFXR probability of moving into ISR and a 1-SFXR
    probability of staying in FSR.
  – We can represent the possible paths with the
    following tree

                   Copyrights (c) 2011-2013 Pragmatic
                                                           8
                          Cohesion Consulting
Two-Step Transition probabilities
                                ISR      P(ISR,ISR,ISR) = (1-SFR).(1-SFR)
                   1-SFR


                  ISR
                    SFR
          1-SFR
                                 FSR      P(ISR,ISR,FSR) = (1-SFR).SFR



    ISR
                                ISR      P(ISR,FSR,ISR) = SFR.SFXR
          SFR       SFXR

                  FSR

                  1-SFXR
                                FSR      P(ISR,FSR,FSR) = SFR.(1-SFXR)


                        Copyrights (c) 2011-2013 Pragmatic
                                                                            9
                               Cohesion Consulting
Two-Step Transition probabilities
• So the probability that a Requirement that
  started in ISR is in ISR after two transitions is:
   P(ISR,ISR,ISR) + P(ISR,FSR,ISR) = (1-SFR).(1-SFR) +
    SFR.SFRX
• All other similar two-step transition
  probabilities can be calculated by M2



                    Copyrights (c) 2011-2013 Pragmatic
                                                          10
                           Cohesion Consulting
Two-Step Transition probabilities

M2 =
                       To ISR                                  To FSR


   From ISR (1-SFR).(1-SRF)+SFR.SFXR            (1-SFR).SFR+SRF.(1-SFXR)


  From FSR SFXR.(1-SFR)+(1-SFXR).SFXR           SFXR.SFR+(1-SFXR).(1-SFXR)




                          Copyrights (c) 2011-2013 Pragmatic
                                                                             11
                                 Cohesion Consulting
Steady State Analysis
• We are interested in knowing in the long run,
  the probability P1 that any given requirement
  will be in the ISR set. The probability that such
  requirement will be in the FSR set is P2=1-P1.
• Markov chains can help us solve this problem
  by calculating the Steady State probabilities of
  Matrix M:
  P1 = SFXR/(SFR+SFXR) [e1]
  P2 =1- SFXR/(SFR+SFXR) [e2]
                  Copyrights (c) 2011-2013 Pragmatic
                                                       12
                         Cohesion Consulting
Steady State Analysis- Example 1
• if:
   P1 = SFXR/(SFR+SFXR) [e1]
• Then P1 = 0.5 = 50% when SFR = SFXR.
• This implies that even if there is a low
  probability that a requirement that has been
  implemented fails testing (SFR); if an equally
  low fixing rate takes place, given sufficient
  time, a requirement gets closer and closer to
  having a 50% chance of being in the set that
  failed testing!
                  Copyrights (c) 2011-2013 Pragmatic
                                                       13
                         Cohesion Consulting
Steady State Analysis – Example 2
• Let’s look at another illustration:
  – P1 is the probability of having in the long run, a
    non-failed requirement. Let’s say that we want P1
    to be 90%. If we know that an implemented
    requirement has an SFR=20% probability of failing
    testing then what should SFXR (the rate at which
    failed requirements are fixed) be to assure
    P1=90%?



                   Copyrights (c) 2011-2013 Pragmatic
                                                        14
                          Cohesion Consulting
Steady State Analysis – Example 2
• From [e1] we can say that:
  [e1] -> 0.9 = SFXR/(0.2+SFXR)
  [e1] -> 0.9.(0.2+SFXR) = SFXR
  [e1] -> 0.18 + 0.9.SFXR = SFXR
  [e1] -> 0.18/(1-0.9) = SFXR
  [e1] -> SFXR = 1.8 > 1 which is impossible!




                  Copyrights (c) 2011-2013 Pragmatic
                                                       15
                         Cohesion Consulting
Steady State Analysis – Example 2
• If SFXR was equal to its maximum value of
  100% then the maximum value of P1 can only
  be 1/(1+0.2) = 83.3%=P1
• This result shows that there is a clear upper
  bound to the probability that in the long run a
  requirement will not fail testing given the
  value of SFR. SFR is the probability that a given
  requirement that has just been implemented
  fails testing.
                  Copyrights (c) 2011-2013 Pragmatic
                                                       16
                         Cohesion Consulting
Steady State Analysis – Example 2
• The only way to achieve P1 = 90% when SFXR
  = 100% is to decrease SFR from 20% so that:
  0.9 = 1/(SFR+1)
  SFR + 1 = 1/0.9
  SFR = 1/0.9 – 1
  SFR = 11.11%
• This lower value of SFR implies a better quality
  of software code that properly implements
  more requirements.
                  Copyrights (c) 2011-2013 Pragmatic
                                                       17
                         Cohesion Consulting
Transient Analysis
• It is possible to graph the values of P1 and P2
  over several transitions, this is called transient
  analysis.
• Transient analysis can show how fast the
  steady states values for P1 and P2 are
  reached.
• Transient analysis can also show instability in
  P1 and P2 values over several transitions due
  to higher values of SFR and SFRX (see
  examples 4 and 5 in subsequent slides).
                   Copyrights (c) 2011-2013 Pragmatic
                                                        18
                          Cohesion Consulting
Transient Analysis – Example 1
• SFR = 10% and SFXR = 50%




                Copyrights (c) 2011-2013 Pragmatic
                                                     19
                       Cohesion Consulting
Transient Analysis – Example 2
• SFR = 10% and SFXR = 10%




                Copyrights (c) 2011-2013 Pragmatic
                                                     20
                       Cohesion Consulting
Transient Analysis – Example 3
• SFR = 10% and SFXR = 1%




                Copyrights (c) 2011-2013 Pragmatic
                                                     21
                       Cohesion Consulting
Transient Analysis – Example 4
• SFR = 90% and SFXR = 90%




                Copyrights (c) 2011-2013 Pragmatic
                                                     22
                       Cohesion Consulting
Transient Analysis – Example 5
• SFR = 75% and SFXR = 100%




               Copyrights (c) 2011-2013 Pragmatic
                                                    23
                      Cohesion Consulting
For Comments and Questions contact didier@pragmaticohesion.com


                      Copyrights (c) 2011-2013 Pragmatic
                                                                 24
                             Cohesion Consulting

Contenu connexe

Similaire à The dynamic interaction of passed and failed requirements during software testing

TAROT2013 Testing School - Gilles Perrouin presentation
TAROT2013 Testing School -  Gilles Perrouin presentationTAROT2013 Testing School -  Gilles Perrouin presentation
TAROT2013 Testing School - Gilles Perrouin presentationHenry Muccini
 
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee ApproachModular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee ApproachRaffi Khatchadourian
 
Position Recognition of Node Duplication Attacks in Wireless Network
Position Recognition of Node Duplication Attacks in Wireless NetworkPosition Recognition of Node Duplication Attacks in Wireless Network
Position Recognition of Node Duplication Attacks in Wireless NetworkIRJET Journal
 
LORA in a Campus Reliability and Stability Testing.pptx
LORA in a Campus Reliability and Stability Testing.pptxLORA in a Campus Reliability and Stability Testing.pptx
LORA in a Campus Reliability and Stability Testing.pptxAliSalman110
 
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...Alejandro Salado
 
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...ijwmn
 
Impromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and otherImpromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and otherHarshit Srivastava
 

Similaire à The dynamic interaction of passed and failed requirements during software testing (9)

TAROT2013 Testing School - Gilles Perrouin presentation
TAROT2013 Testing School -  Gilles Perrouin presentationTAROT2013 Testing School -  Gilles Perrouin presentation
TAROT2013 Testing School - Gilles Perrouin presentation
 
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee ApproachModular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
Modular Reasoning about Aspect-Oriented Programs: A Rely-Guarantee Approach
 
Ibs gurgaon-8 th ncm
Ibs gurgaon-8 th ncmIbs gurgaon-8 th ncm
Ibs gurgaon-8 th ncm
 
1 untitled 1
1 untitled 11 untitled 1
1 untitled 1
 
Position Recognition of Node Duplication Attacks in Wireless Network
Position Recognition of Node Duplication Attacks in Wireless NetworkPosition Recognition of Node Duplication Attacks in Wireless Network
Position Recognition of Node Duplication Attacks in Wireless Network
 
LORA in a Campus Reliability and Stability Testing.pptx
LORA in a Campus Reliability and Stability Testing.pptxLORA in a Campus Reliability and Stability Testing.pptx
LORA in a Campus Reliability and Stability Testing.pptx
 
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
Assessing the Impacts of Uncertainty Propagation to System Requirements by Ev...
 
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
A QUANTITATIVE ANALYSIS OF HANDOVER TIME AT MAC LAYER FOR WIRELESS MOBILE NET...
 
Impromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and otherImpromptu ideas in respect of v2 v and other
Impromptu ideas in respect of v2 v and other
 

Plus de Pragmatic Cohesion Consulting, LLC

Applying the integrative propositional analysis (ipa) to the ebmm – triads
Applying the integrative propositional analysis (ipa) to the ebmm – triadsApplying the integrative propositional analysis (ipa) to the ebmm – triads
Applying the integrative propositional analysis (ipa) to the ebmm – triadsPragmatic Cohesion Consulting, LLC
 
Comparing four major organizational cultures and the challenges faced when tr...
Comparing four major organizational cultures and the challenges faced when tr...Comparing four major organizational cultures and the challenges faced when tr...
Comparing four major organizational cultures and the challenges faced when tr...Pragmatic Cohesion Consulting, LLC
 
Framework for assessing business analysts situational awareness
Framework for assessing business analysts situational awarenessFramework for assessing business analysts situational awareness
Framework for assessing business analysts situational awarenessPragmatic Cohesion Consulting, LLC
 
The dynamics of cohesive and inconsistent project requirements and how they i...
The dynamics of cohesive and inconsistent project requirements and how they i...The dynamics of cohesive and inconsistent project requirements and how they i...
The dynamics of cohesive and inconsistent project requirements and how they i...Pragmatic Cohesion Consulting, LLC
 
Creating queuing system simulations with enterprise architect sysml parametri...
Creating queuing system simulations with enterprise architect sysml parametri...Creating queuing system simulations with enterprise architect sysml parametri...
Creating queuing system simulations with enterprise architect sysml parametri...Pragmatic Cohesion Consulting, LLC
 
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...Pragmatic Cohesion Consulting, LLC
 
The non intuitive impact of software defects on development efforts time esti...
The non intuitive impact of software defects on development efforts time esti...The non intuitive impact of software defects on development efforts time esti...
The non intuitive impact of software defects on development efforts time esti...Pragmatic Cohesion Consulting, LLC
 
Balancing software project drivers a rational quantitative approach
Balancing software project drivers   a rational quantitative approachBalancing software project drivers   a rational quantitative approach
Balancing software project drivers a rational quantitative approachPragmatic Cohesion Consulting, LLC
 
Effective Listening - a cornerstone of effective business analysis
Effective Listening - a cornerstone of effective business analysisEffective Listening - a cornerstone of effective business analysis
Effective Listening - a cornerstone of effective business analysisPragmatic Cohesion Consulting, LLC
 
About the benefits and pitfalls of relying on analytical methods
About the benefits and pitfalls of relying on analytical methodsAbout the benefits and pitfalls of relying on analytical methods
About the benefits and pitfalls of relying on analytical methodsPragmatic Cohesion Consulting, LLC
 
Deductive, inductive, and abductive reasoning and their application in trans...
Deductive, inductive, and abductive reasoning and their application in  trans...Deductive, inductive, and abductive reasoning and their application in  trans...
Deductive, inductive, and abductive reasoning and their application in trans...Pragmatic Cohesion Consulting, LLC
 
34,000 delicious Food and Beverage combinations for your holidays!
34,000 delicious Food and Beverage combinations for your holidays!34,000 delicious Food and Beverage combinations for your holidays!
34,000 delicious Food and Beverage combinations for your holidays!Pragmatic Cohesion Consulting, LLC
 
Business analysis and business framework driven projects - Example of the Mic...
Business analysis and business framework driven projects - Example of the Mic...Business analysis and business framework driven projects - Example of the Mic...
Business analysis and business framework driven projects - Example of the Mic...Pragmatic Cohesion Consulting, LLC
 

Plus de Pragmatic Cohesion Consulting, LLC (20)

Applying the integrative propositional analysis (ipa) to the ebmm – triads
Applying the integrative propositional analysis (ipa) to the ebmm – triadsApplying the integrative propositional analysis (ipa) to the ebmm – triads
Applying the integrative propositional analysis (ipa) to the ebmm – triads
 
Viewers locations usa - 30000
Viewers locations usa - 30000Viewers locations usa - 30000
Viewers locations usa - 30000
 
Viewers locations outside USA - 30000
Viewers locations outside USA - 30000Viewers locations outside USA - 30000
Viewers locations outside USA - 30000
 
Comparing four major organizational cultures and the challenges faced when tr...
Comparing four major organizational cultures and the challenges faced when tr...Comparing four major organizational cultures and the challenges faced when tr...
Comparing four major organizational cultures and the challenges faced when tr...
 
Obstacles to effective knowledge elicitation
Obstacles to effective knowledge elicitationObstacles to effective knowledge elicitation
Obstacles to effective knowledge elicitation
 
Viewers locations in the USA
Viewers locations in the USAViewers locations in the USA
Viewers locations in the USA
 
Viewers locations outside the USA
Viewers locations outside the USAViewers locations outside the USA
Viewers locations outside the USA
 
Framework for assessing business analysts situational awareness
Framework for assessing business analysts situational awarenessFramework for assessing business analysts situational awareness
Framework for assessing business analysts situational awareness
 
The dynamics of cohesive and inconsistent project requirements and how they i...
The dynamics of cohesive and inconsistent project requirements and how they i...The dynamics of cohesive and inconsistent project requirements and how they i...
The dynamics of cohesive and inconsistent project requirements and how they i...
 
Creating queuing system simulations with enterprise architect sysml parametri...
Creating queuing system simulations with enterprise architect sysml parametri...Creating queuing system simulations with enterprise architect sysml parametri...
Creating queuing system simulations with enterprise architect sysml parametri...
 
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
Agile scope creep and the Golden Ratio – Balancing Project Flexibility and Co...
 
The non intuitive impact of software defects on development efforts time esti...
The non intuitive impact of software defects on development efforts time esti...The non intuitive impact of software defects on development efforts time esti...
The non intuitive impact of software defects on development efforts time esti...
 
Balancing software project drivers a rational quantitative approach
Balancing software project drivers   a rational quantitative approachBalancing software project drivers   a rational quantitative approach
Balancing software project drivers a rational quantitative approach
 
M theory for business analysts - 11 dimensions of empowerment
M theory for business analysts - 11 dimensions of empowermentM theory for business analysts - 11 dimensions of empowerment
M theory for business analysts - 11 dimensions of empowerment
 
Effective Listening - a cornerstone of effective business analysis
Effective Listening - a cornerstone of effective business analysisEffective Listening - a cornerstone of effective business analysis
Effective Listening - a cornerstone of effective business analysis
 
About the benefits and pitfalls of relying on analytical methods
About the benefits and pitfalls of relying on analytical methodsAbout the benefits and pitfalls of relying on analytical methods
About the benefits and pitfalls of relying on analytical methods
 
Deductive, inductive, and abductive reasoning and their application in trans...
Deductive, inductive, and abductive reasoning and their application in  trans...Deductive, inductive, and abductive reasoning and their application in  trans...
Deductive, inductive, and abductive reasoning and their application in trans...
 
34,000 delicious Food and Beverage combinations for your holidays!
34,000 delicious Food and Beverage combinations for your holidays!34,000 delicious Food and Beverage combinations for your holidays!
34,000 delicious Food and Beverage combinations for your holidays!
 
Business analysis compass mapping to the iiba babok v2
Business analysis compass mapping to the iiba babok v2Business analysis compass mapping to the iiba babok v2
Business analysis compass mapping to the iiba babok v2
 
Business analysis and business framework driven projects - Example of the Mic...
Business analysis and business framework driven projects - Example of the Mic...Business analysis and business framework driven projects - Example of the Mic...
Business analysis and business framework driven projects - Example of the Mic...
 

Dernier

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 

Dernier (20)

Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 

The dynamic interaction of passed and failed requirements during software testing

  • 1. The dynamic interaction of passed and failed requirements during software testing Copyrights (c) 2011-2013 Pragmatic 1 Cohesion Consulting
  • 2. Motivation • In my professional experience, I have repeatedly witnessed systemic issues during Software Verification that prompted me to develop the model presented in this paper. • It is my hope that the non-intuitive results that the model yields help software development team better understand certain dynamic behavior embedded in the software development process. Copyrights (c) 2011-2013 Pragmatic 2 Cohesion Consulting
  • 3. Requirements Statuses • We are interested in 2 simple sets of requirements. All requirements within each set share one of the following statuses: – The first one represents requirements that have been implemented i.e. requirements for which the development team has created actual software code. Let’s call this set of requirements ISR. – The second one represents requirements that have failed testing after they were implemented by the development team. Let’s call this second set of requirements FSR. Copyrights (c) 2011-2013 Pragmatic 3 Cohesion Consulting
  • 4. Requirement States Probabilities • Let’s call SFR the probability that a requirement that has been implemented fails testing. When this failure happens the requirement becomes part of the FSR set otherwise it remains in the ISR set. • Let’s call SFXR the probability that a failed requirement gets fixed. When the fix takes place, the requirement is no longer part of the FSR set but it moves into the ISR set. Copyrights (c) 2011-2013 Pragmatic 4 Cohesion Consulting
  • 5. Requirement States Probabilities • The following probability constraints exist: 0 <= SFR <= 1 0 <= SFXR <=1 • We can derive a probability transition matrix that captures the possible transitions of a requirement from one set to the other: From ISR to ISR, probability = 1-SFR From ISR to FSR, probability = SFR From FSR to ISR, probability = SFXR From FSR to FSR, probability = 1-SFXR Copyrights (c) 2011-2013 Pragmatic 5 Cohesion Consulting
  • 6. Transition probability matrix Let M be the transition probability matrix, M= To ISR To FSR From ISR 1-SFR SFR From FSR SFXR 1-SFXR Copyrights (c) 2011-2013 Pragmatic 6 Cohesion Consulting
  • 7. Two-Step Transition probabilities • The following question is particularly interesting: – given the transition probability matrix M and the fact that a requirement has been added to the ISR set, what is the probability that this same requirement will be in the ISR set two transitions in the future? Copyrights (c) 2011-2013 Pragmatic 7 Cohesion Consulting
  • 8. Two-Step Transition probabilities • The problem is not as obvious as it seems; here is is why: – When a Requirement enters set ISR it has a SFR probability of being moved to set FSR and a 1-SFR probability of staying in ISR. Once in FSR, it has a SFXR probability of moving into ISR and a 1-SFXR probability of staying in FSR. – We can represent the possible paths with the following tree Copyrights (c) 2011-2013 Pragmatic 8 Cohesion Consulting
  • 9. Two-Step Transition probabilities ISR P(ISR,ISR,ISR) = (1-SFR).(1-SFR) 1-SFR ISR SFR 1-SFR FSR P(ISR,ISR,FSR) = (1-SFR).SFR ISR ISR P(ISR,FSR,ISR) = SFR.SFXR SFR SFXR FSR 1-SFXR FSR P(ISR,FSR,FSR) = SFR.(1-SFXR) Copyrights (c) 2011-2013 Pragmatic 9 Cohesion Consulting
  • 10. Two-Step Transition probabilities • So the probability that a Requirement that started in ISR is in ISR after two transitions is: P(ISR,ISR,ISR) + P(ISR,FSR,ISR) = (1-SFR).(1-SFR) + SFR.SFRX • All other similar two-step transition probabilities can be calculated by M2 Copyrights (c) 2011-2013 Pragmatic 10 Cohesion Consulting
  • 11. Two-Step Transition probabilities M2 = To ISR To FSR From ISR (1-SFR).(1-SRF)+SFR.SFXR (1-SFR).SFR+SRF.(1-SFXR) From FSR SFXR.(1-SFR)+(1-SFXR).SFXR SFXR.SFR+(1-SFXR).(1-SFXR) Copyrights (c) 2011-2013 Pragmatic 11 Cohesion Consulting
  • 12. Steady State Analysis • We are interested in knowing in the long run, the probability P1 that any given requirement will be in the ISR set. The probability that such requirement will be in the FSR set is P2=1-P1. • Markov chains can help us solve this problem by calculating the Steady State probabilities of Matrix M: P1 = SFXR/(SFR+SFXR) [e1] P2 =1- SFXR/(SFR+SFXR) [e2] Copyrights (c) 2011-2013 Pragmatic 12 Cohesion Consulting
  • 13. Steady State Analysis- Example 1 • if: P1 = SFXR/(SFR+SFXR) [e1] • Then P1 = 0.5 = 50% when SFR = SFXR. • This implies that even if there is a low probability that a requirement that has been implemented fails testing (SFR); if an equally low fixing rate takes place, given sufficient time, a requirement gets closer and closer to having a 50% chance of being in the set that failed testing! Copyrights (c) 2011-2013 Pragmatic 13 Cohesion Consulting
  • 14. Steady State Analysis – Example 2 • Let’s look at another illustration: – P1 is the probability of having in the long run, a non-failed requirement. Let’s say that we want P1 to be 90%. If we know that an implemented requirement has an SFR=20% probability of failing testing then what should SFXR (the rate at which failed requirements are fixed) be to assure P1=90%? Copyrights (c) 2011-2013 Pragmatic 14 Cohesion Consulting
  • 15. Steady State Analysis – Example 2 • From [e1] we can say that: [e1] -> 0.9 = SFXR/(0.2+SFXR) [e1] -> 0.9.(0.2+SFXR) = SFXR [e1] -> 0.18 + 0.9.SFXR = SFXR [e1] -> 0.18/(1-0.9) = SFXR [e1] -> SFXR = 1.8 > 1 which is impossible! Copyrights (c) 2011-2013 Pragmatic 15 Cohesion Consulting
  • 16. Steady State Analysis – Example 2 • If SFXR was equal to its maximum value of 100% then the maximum value of P1 can only be 1/(1+0.2) = 83.3%=P1 • This result shows that there is a clear upper bound to the probability that in the long run a requirement will not fail testing given the value of SFR. SFR is the probability that a given requirement that has just been implemented fails testing. Copyrights (c) 2011-2013 Pragmatic 16 Cohesion Consulting
  • 17. Steady State Analysis – Example 2 • The only way to achieve P1 = 90% when SFXR = 100% is to decrease SFR from 20% so that: 0.9 = 1/(SFR+1) SFR + 1 = 1/0.9 SFR = 1/0.9 – 1 SFR = 11.11% • This lower value of SFR implies a better quality of software code that properly implements more requirements. Copyrights (c) 2011-2013 Pragmatic 17 Cohesion Consulting
  • 18. Transient Analysis • It is possible to graph the values of P1 and P2 over several transitions, this is called transient analysis. • Transient analysis can show how fast the steady states values for P1 and P2 are reached. • Transient analysis can also show instability in P1 and P2 values over several transitions due to higher values of SFR and SFRX (see examples 4 and 5 in subsequent slides). Copyrights (c) 2011-2013 Pragmatic 18 Cohesion Consulting
  • 19. Transient Analysis – Example 1 • SFR = 10% and SFXR = 50% Copyrights (c) 2011-2013 Pragmatic 19 Cohesion Consulting
  • 20. Transient Analysis – Example 2 • SFR = 10% and SFXR = 10% Copyrights (c) 2011-2013 Pragmatic 20 Cohesion Consulting
  • 21. Transient Analysis – Example 3 • SFR = 10% and SFXR = 1% Copyrights (c) 2011-2013 Pragmatic 21 Cohesion Consulting
  • 22. Transient Analysis – Example 4 • SFR = 90% and SFXR = 90% Copyrights (c) 2011-2013 Pragmatic 22 Cohesion Consulting
  • 23. Transient Analysis – Example 5 • SFR = 75% and SFXR = 100% Copyrights (c) 2011-2013 Pragmatic 23 Cohesion Consulting
  • 24. For Comments and Questions contact didier@pragmaticohesion.com Copyrights (c) 2011-2013 Pragmatic 24 Cohesion Consulting