SlideShare ist ein Scribd-Unternehmen logo
1 von 20
Downloaden Sie, um offline zu lesen
Do you know the
   “Potency” of your test cases?

T Ashok
ash@stagsoftware.com

   in.linkedin.com/in/AshokSTAG
   ash_thiru

Webinar: Jan 19, 2012, 1430-1530 IST
Potency is ...


        “the strength of the drug, as measured by the
        amount needed to produce a certain response”.
                                                              Dictionary definition.




        ...associated with efficacy of an entity, the ability or
        capacity to achieve or bring about a particular result.




© 2012. STAG Software Private Limited. All rights reserved.                           2
Affected area


                            Drug(s)



                                                         Ability to
                                                        get to target    The ‘Bug’




© 2012. STAG Software Private Limited. All rights reserved.                             3
Affected area

                                                                                            Where is the target?
                            Drug(s)



                                                         Ability to
                                                        get to target                         The ‘Bug’

                                                                                            Who is the target?

                Is it strong enough?




                                                                        Have I developed immunity?




© 2012. STAG Software Private Limited. All rights reserved.                                                        4
Affected area

                                                                                              Where is the target?
                            Drug(s)                                                            Requirements, Features,
                                                                                               Modules, Components.
                                                                                               Subsystems we looking in..
                                                         Ability to
                                                        get to target                            The ‘Bug’

                                                                                              Who is the target?
                                                                                               What types of defects
                Is it strong enough?                                                           are we looking for?
                Drugs ≈ Test cases
                How “strong” are
                the test cases?
                                                                        Have I developed immunity?
                                                                        Over time, some parts of the
                                                                        system “harden”. Implies that
                                                                        issues may not be there.

© 2012. STAG Software Private Limited. All rights reserved.                                                                 5
Potency is about :

                                                                                                “Area”
   The least number of test cases with the ability                                                                      Use case
   to target specific types of defects in specific                                                                      Feature
   areas to ensure “clean software”.                                                                 Entity             Subsystem
                                                                                                                        Module
                                                                                        e   t
                                                                                  t arg                                 Screen, API ...
                                                                             to
             “Drug”                                                    ere
                                                                  Wh



              Test Cases                                Potency   Wh
                                                                        o t                     “Bug”
                                                                            o     targ
                                                                                         et?



                                                                                                      PDT
                                                                                                Potential Defect Type




                                                                                          Immunity
                                                                                          Resistant to bugs
                                                                                          i.e. hardened entities
© 2012. STAG Software Private Limited. All rights reserved.                                                                               6
How “Potent”? The Typical Approach
                                                                                                                        Requirements
                                                                                                “Area”
                                                                                                                        traceability
                                                                                                                        “External area
                                                                                                                        that I am
                                                                                                     Entity             covering”

                                                                                        e   t
                                                                                  t arg                                 Code
                                                                             to
             “Drug”                                                    ere                                              coverage
                                                                  Wh                                                    “Internal area
                                                                                                                        that I am

              Test Cases                                Potency   Wh
                                                                                                                        covering”

                                                                        o t                     “Bug”
                                                                            o     targ
                                                                                         et?



                                                                                                      PDT
                      ?                                                           ?             Potential Defect Type




                                                                                          Immunity

                                                                             ?            Resistant to bugs
                                                                                          i.e. hardened entities
© 2012. STAG Software Private Limited. All rights reserved.                                                                              7
How “Potent”? The Typical Approach
                                                                                                                         Requirements
                                                                                                 “Area”
                                                                                                                         traceability
   The least number of test cases with the ability
                                                                                                                         “External area
   to target specific types of defects in specific                                                                       that I am
   areas to ensure “clean software”.                                                                  Entity             covering”

                                                                                         e   t
                                                                                   t arg                                 Code
                                                                              to
             “Drug”                                                     ere                                              coverage
                                                                   Wh                                                    “Internal area
                                                                                                                         that I am

              Test Cases                                Potency    Wh
                                                                                                                         covering”

                                                                         o t                     “Bug”
                                                                             o     targ
                                                                                          et?



                                                                                                       PDT
                      ?                                                            ?             Potential Defect Type


                                  Typically based on experience.
                                             Trust me!
                                                                                           Immunity

                                                                              ?            Resistant to bugs
                                                                                           i.e. hardened entities
© 2012. STAG Software Private Limited. All rights reserved.                                                                               8
Assessing Potency
                                                                                                                            Requirements
                                                                                                    “Area”
                                                                                                                            traceability
   The least number of test cases with the ability
                                                                                                                            “External area
   to target specific types of defects in specific                                                                          that I am
   areas to ensure “clean software”.                                                                     Entity             covering”

                                                                                            e   t
                                                                                      t arg                                 Code
                                                                                 to
                                                                           ere                                              coverage
                                                                      Wh
               “Drug”
                                                                                                                            “Internal area
                                                                                                                            that I am

              Test Cases                                Potency        Wh
                                                                                                                            covering”

                                                                            o t                     “Bug”
                                                                                o     targ
                                                                                             et?

                                                                                                                            Fault Coverage
          Countability                                                                                    PDT               “What PDTs
          “Proving sufficiency of test cases”                                                       Potential Defect Type   uncovered by
                                                                                                                            test cases”
          Conformance:Robustness
          “Distribution of +Ve/-Ve test cases”                Test case
                                                              immunity                        Immunity
          Levelization                                        “No defect yield                Resistant to bugs
          “Optimal targeting”                                 from test cases”
                                                                                              i.e. hardened entities
© 2012. STAG Software Private Limited. All rights reserved.                                                                                  9
HBT : Hypothesis Based Testing
 A Quick Introduction        Personal, scientific test methodology.
                                                               SIX stage methodology powered by
                                                               EIGHT disciplines of thinking (STEMTM).




                                         Setup                    Hypothesize
                                  Cleanliness Criteria        Potential Defect Types

      SUT
                                                                   Nine Stage
                               Cleanliness Assessment
                                                              Defect Removal Filter




                                                                    Click here to know more about HBT.
                                                                    http://stagsoftware.com/blog?p=570


© 2012. STAG Software Private Limited. All rights reserved.                                              10
Targeting...


         should satisfy                                                impeded by
                                              Cleanliness Criteria

                                                                     Potential Defect
        Entity under test
                                                                          Types

                                                                             Fault
       Requirements                                 Test Cases               traceability
       traceability                                                          “test for what”
       “what to test”




     It is necessary for test cases to be purposeful/goal-focused.
     Tracing test cases to requirement is a necessary condition for this, but not sufficient!
     Two way tracing i.e. Requirements + FAULT makes this sufficient.


© 2012. STAG Software Private Limited. All rights reserved.                                    11
Snapshot of Defect Hypothesis

                                                                          Views
                                            Error injection                Fault proneness                       Failure


                                       What kinds of erroneous data   What kind of issues could data   What kinds of bad data can be
                   Data
                                            may be injected?                     cause?                        generated?


                                      What conditions/values can be   How can conditions be messed     What can be incorrect results
             Business Logic
                                               missed?                            up?                  when conditions are combined?
Aspects




                                       How can we setup incorrect     How can structure mess up the     What kinds of structure can
                Structure
                                             “structure”?                       behavior?                yield incorrect results?


                                      What is incorrect environment     How can resources in the         How can environment be
             Environment
                                                  setup?              environment cause problems?             messed up?


                                       In what ways can we use the    What kinds of usage may be be       What can be poor usage
                  Usage
                                           entity interestingly?            inherently faulty?                 experience?




© 2012. STAG Software Private Limited. All rights reserved.                                                                            12
Fault Coverage - “What                                              PDT’s uncovered by test cases”


                    Fault                                         Fault
                 traceability                                  traceability
                                                                                       Test for what?
          PDT1                    R1                     TC1            PDT1
          PDT2                    R2                     TC2            PDT2
          PDT3                    R3                     TC3            PDT3
          ...                     ...                    ...            ...
          PDTn                    Rm                     TCi            PDTn
                                        Requirements
                                         traceability                                  What to test?




       Do the test cases for a given entity have the ability
       to detect specific types of defects?


© 2012. STAG Software Private Limited. All rights reserved.                                             13
Levelization- “Optimal                                       targeting”
 Staged “Filtration”

                                                                            Objective          Issues

                                                                           That user expectations are met
  L9       End user value                                                  User flows, experience

                                                                           That it deploys well in the real environment
  L8       Clean Deployment                                                Compatibility, migration
                                                                           That the stated attributes are met
  L7       Attributes met                                                  Performance, security, volume, load...
                                                                           That it does not mess up the environment
  L6       Environment cleanliness                                         Resource leaks, Compatibility...

                                                                           That end-to-end flows work correctly
  L5       Flow correctness                                                Business flow conditions, Linkages
                                                                           That the functional behaviour is correct
  L4       Behaviour correctness                                           Functionality

  L3       Structural integrity                                            That the internal structure is robust
                                                                           Internal structural issues
                                                                           That the user interface is clean
  L2       Input interface cleanliness                                     UI issues

                                                                           That inputs are handled well
  L1       Input cleanliness
                                                                           Input data handling

© 2012. STAG Software Private Limited. All rights reserved.                                                           14
Countability - “Proving                                        sufficiency of test cases”


         Entity
                                                  Behaviour                   Stimuli
       under test
                                       Conditions govern behaviour      Input (data) is Stimuli
                                       Outcome is Test Scenarios        Outcome is Test Cases




         Inputs                                    Conditions         Outputs           If #conditions & values for




                   }
                                                                         1              each conditions are know,
                                                                C4                      then #scenarios
              i1                                                          2             can be proved to be
                                                          C2
                                                                          3             sufficient.
              i2                            C1
                                                                          4             For each scenario, knowing
                                                          C3                            #values for each input
              i3                                                          5             can prove sufficiency of
                                                                                        test cases.




© 2012. STAG Software Private Limited. All rights reserved.                                                          15
Conformance:Robustness- “Distribution of +ve/-ve test cases”


    L9

    ...                                                                    How do the test cases distribute?

    L3
                                                                           Note at higher levels test cases
                                                                           progressively become conformance
    L2
                                                                           oriented?
    L1

            +ve test cases

            -ve test cases




                                                              What do you think the ratio depends on?

© 2012. STAG Software Private Limited. All rights reserved.                                                    16
Test Case Immunity - “No                                     defect yield from test cases”



       Analysis of ‘defect type trends’ over ‘time’ by ‘entity under test’ helps us
       understand “what type of defects” are not present in “what entities”.


       Example:
       1. As product matures, certain types of defects become harder to uncover. Say
       at Level-1 where the focus is on data validation issues, at later builds these
       kinds of issues do not surface. This kinda implies that “the system has
       developed immunity for this type of defect”.

       2. Continuing from (1), it may be plausible that one of the entities may still
       continue to have data validation type of issues.
       Hence the phrase “entity under test” in ‘defect type trends’ over ‘time’ by
       ‘entity under test’.




© 2012. STAG Software Private Limited. All rights reserved.                                   17
Summarising...
                                                                                                                             Requirements
                                                                                                     “Area”
                                                                                                                             traceability
   The least number of test cases with the ability
                                                                                                                             “External area
   to target specific types of defects in specific                                                                           that I am
   areas to ensure “clean software”.                                                                      Entity             covering”

                                                                                            e   t
                                                                                      t arg                                  Code
                                                                                 to
                                                                           ere                                               coverage
                                                                      Wh
               “Drug”
                                                                                                                             “Internal area
                                                                                                                             that I am

              Test Cases                                Potency        Wh
                                                                                                                             covering”

                                                                            o t                      “Bug”
                                                                                o     targ
                                                                                             et?

                                                                                                                             Fault Coverage
          Countability                                                                                     PDT               “What PDTs
          “Proving sufficiency of test cases”                                                        Potential Defect Type   uncovered by
                                                                                                                             test cases”
          Conformance:Robustness
          “Distribution of +Ve/-Ve test cases”                Test case
                                                              immunity                              Immunity
          Levelization                                        “No defect yield                      Resistant to bugs
          “Optimal targeting”                                 from test cases”
                                                                                                    i.e. hardened entities
© 2012. STAG Software Private Limited. All rights reserved.                                                                                   18
Results

    Discovery of missing test cases




    Assess the quality of test cases statically




    Improved confidence, able to convince customer about effectiveness logically




© 2012. STAG Software Private Limited. All rights reserved.                       19
Thank you!



     Connect with us...
            @stagsoft
            blog.stagsoftware.com




                                                                                            Covered in detail in
                                                                                            “Effective review of test cases”
                                                                                            A HBT series workshop
                                                                                            www.cleansoft.in
                                                                       A division of STAG


  HBT is the intellectual property of STAG Software Private Limited.
  STEMTM is the trademark of STAG Software Private Limited.

© 2012. STAG Software Private Limited. All rights reserved.                                                        www.stagsoftware.com

Weitere ähnliche Inhalte

Andere mochten auch

Which test cases to automate
Which test cases to automateWhich test cases to automate
Which test cases to automatesachxn1
 
Guideto Successful Application Test Automation
Guideto Successful Application Test AutomationGuideto Successful Application Test Automation
Guideto Successful Application Test Automationaimshigh7
 
Object Oriented Programming with Java
Object Oriented Programming with JavaObject Oriented Programming with Java
Object Oriented Programming with JavaJussi Pohjolainen
 
Agile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated TestingAgile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated TestingDimitri Ponomareff
 

Andere mochten auch (9)

HBT - A Revolutionary Approach to Testing Software
HBT - A Revolutionary Approach to Testing SoftwareHBT - A Revolutionary Approach to Testing Software
HBT - A Revolutionary Approach to Testing Software
 
Form and structure of test case MATTERS!
Form and structure of test case MATTERS!Form and structure of test case MATTERS!
Form and structure of test case MATTERS!
 
STAG Software - Presentation
STAG Software - PresentationSTAG Software - Presentation
STAG Software - Presentation
 
Risk based approach
Risk based approachRisk based approach
Risk based approach
 
Which test cases to automate
Which test cases to automateWhich test cases to automate
Which test cases to automate
 
Webinar - 'Test Case Immunity’- Optimize testing
Webinar - 'Test Case Immunity’- Optimize testing Webinar - 'Test Case Immunity’- Optimize testing
Webinar - 'Test Case Immunity’- Optimize testing
 
Guideto Successful Application Test Automation
Guideto Successful Application Test AutomationGuideto Successful Application Test Automation
Guideto Successful Application Test Automation
 
Object Oriented Programming with Java
Object Oriented Programming with JavaObject Oriented Programming with Java
Object Oriented Programming with Java
 
Agile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated TestingAgile Testing Framework - The Art of Automated Testing
Agile Testing Framework - The Art of Automated Testing
 

Mehr von STAG Software Private Limited

Application Scenarios of "doSmartQA -Smart Probing Assistant"
Application Scenarios of "doSmartQA -Smart Probing Assistant"Application Scenarios of "doSmartQA -Smart Probing Assistant"
Application Scenarios of "doSmartQA -Smart Probing Assistant"STAG Software Private Limited
 
Setting a clear baseline (How to test an user story #2)
Setting a clear baseline (How to test an user story #2)Setting a clear baseline (How to test an user story #2)
Setting a clear baseline (How to test an user story #2)STAG Software Private Limited
 
Question to Understand (How to test an User Story #1)
Question to Understand (How to test an User Story #1)Question to Understand (How to test an User Story #1)
Question to Understand (How to test an User Story #1)STAG Software Private Limited
 
Deliver Superior Outcomes Using HBT Visualization Tool
Deliver Superior Outcomes Using HBT Visualization ToolDeliver Superior Outcomes Using HBT Visualization Tool
Deliver Superior Outcomes Using HBT Visualization ToolSTAG Software Private Limited
 
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...STAG Software Private Limited
 
Think better using “Descriptive-Prescriptive” Approach
Think better using “Descriptive-Prescriptive” ApproachThink better using “Descriptive-Prescriptive” Approach
Think better using “Descriptive-Prescriptive” ApproachSTAG Software Private Limited
 
Test Process Transformation Protects Product Development Investment
Test Process Transformation Protects Product Development InvestmentTest Process Transformation Protects Product Development Investment
Test Process Transformation Protects Product Development InvestmentSTAG Software Private Limited
 

Mehr von STAG Software Private Limited (20)

Application Scenarios of "doSmartQA -Smart Probing Assistant"
Application Scenarios of "doSmartQA -Smart Probing Assistant"Application Scenarios of "doSmartQA -Smart Probing Assistant"
Application Scenarios of "doSmartQA -Smart Probing Assistant"
 
Choked by technical debt?
Choked by technical debt?Choked by technical debt?
Choked by technical debt?
 
Are your quality metrics insightful?
Are your quality metrics insightful?Are your quality metrics insightful?
Are your quality metrics insightful?
 
Weighed down by automation?
Weighed down by automation?Weighed down by automation?
Weighed down by automation?
 
Covid19 and Clean Code Part 2 - Process & Criteria
Covid19 and Clean Code Part 2 - Process & CriteriaCovid19 and Clean Code Part 2 - Process & Criteria
Covid19 and Clean Code Part 2 - Process & Criteria
 
Seven Thinking Tools to Test Rapidly
Seven Thinking Tools to Test RapidlySeven Thinking Tools to Test Rapidly
Seven Thinking Tools to Test Rapidly
 
How to test less and accomplish more
How to test less and accomplish moreHow to test less and accomplish more
How to test less and accomplish more
 
Is regression hindering your progression?
Is regression hindering your progression?Is regression hindering your progression?
Is regression hindering your progression?
 
The Power of Checklist
The Power of ChecklistThe Power of Checklist
The Power of Checklist
 
The power of checklist
The power of checklist The power of checklist
The power of checklist
 
Design Scientifically (How to test a user story)
Design Scientifically (How to test a user story)Design Scientifically (How to test a user story)
Design Scientifically (How to test a user story)
 
Setting a clear baseline (How to test an user story #2)
Setting a clear baseline (How to test an user story #2)Setting a clear baseline (How to test an user story #2)
Setting a clear baseline (How to test an user story #2)
 
Question to Understand (How to test an User Story #1)
Question to Understand (How to test an User Story #1)Question to Understand (How to test an User Story #1)
Question to Understand (How to test an User Story #1)
 
Language shapes the way you think
Language shapes the way you thinkLanguage shapes the way you think
Language shapes the way you think
 
Deliver Superior Outcomes Using HBT Visualization Tool
Deliver Superior Outcomes Using HBT Visualization ToolDeliver Superior Outcomes Using HBT Visualization Tool
Deliver Superior Outcomes Using HBT Visualization Tool
 
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...
Hypothesis Based Testing – Application and Adaptation for testing Enterprise ...
 
Think better using “Descriptive-Prescriptive” Approach
Think better using “Descriptive-Prescriptive” ApproachThink better using “Descriptive-Prescriptive” Approach
Think better using “Descriptive-Prescriptive” Approach
 
Regression Suite Optimization
Regression Suite OptimizationRegression Suite Optimization
Regression Suite Optimization
 
Reflect and Change
Reflect and ChangeReflect and Change
Reflect and Change
 
Test Process Transformation Protects Product Development Investment
Test Process Transformation Protects Product Development InvestmentTest Process Transformation Protects Product Development Investment
Test Process Transformation Protects Product Development Investment
 

Kürzlich hochgeladen

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 

Kürzlich hochgeladen (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 

Do you know the potency of your test cases?

  • 1. Do you know the “Potency” of your test cases? T Ashok ash@stagsoftware.com in.linkedin.com/in/AshokSTAG ash_thiru Webinar: Jan 19, 2012, 1430-1530 IST
  • 2. Potency is ... “the strength of the drug, as measured by the amount needed to produce a certain response”. Dictionary definition. ...associated with efficacy of an entity, the ability or capacity to achieve or bring about a particular result. © 2012. STAG Software Private Limited. All rights reserved. 2
  • 3. Affected area Drug(s) Ability to get to target The ‘Bug’ © 2012. STAG Software Private Limited. All rights reserved. 3
  • 4. Affected area Where is the target? Drug(s) Ability to get to target The ‘Bug’ Who is the target? Is it strong enough? Have I developed immunity? © 2012. STAG Software Private Limited. All rights reserved. 4
  • 5. Affected area Where is the target? Drug(s) Requirements, Features, Modules, Components. Subsystems we looking in.. Ability to get to target The ‘Bug’ Who is the target? What types of defects Is it strong enough? are we looking for? Drugs ≈ Test cases How “strong” are the test cases? Have I developed immunity? Over time, some parts of the system “harden”. Implies that issues may not be there. © 2012. STAG Software Private Limited. All rights reserved. 5
  • 6. Potency is about : “Area” The least number of test cases with the ability Use case to target specific types of defects in specific Feature areas to ensure “clean software”. Entity Subsystem Module e t t arg Screen, API ... to “Drug” ere Wh Test Cases Potency Wh o t “Bug” o targ et? PDT Potential Defect Type Immunity Resistant to bugs i.e. hardened entities © 2012. STAG Software Private Limited. All rights reserved. 6
  • 7. How “Potent”? The Typical Approach Requirements “Area” traceability “External area that I am Entity covering” e t t arg Code to “Drug” ere coverage Wh “Internal area that I am Test Cases Potency Wh covering” o t “Bug” o targ et? PDT ? ? Potential Defect Type Immunity ? Resistant to bugs i.e. hardened entities © 2012. STAG Software Private Limited. All rights reserved. 7
  • 8. How “Potent”? The Typical Approach Requirements “Area” traceability The least number of test cases with the ability “External area to target specific types of defects in specific that I am areas to ensure “clean software”. Entity covering” e t t arg Code to “Drug” ere coverage Wh “Internal area that I am Test Cases Potency Wh covering” o t “Bug” o targ et? PDT ? ? Potential Defect Type Typically based on experience. Trust me! Immunity ? Resistant to bugs i.e. hardened entities © 2012. STAG Software Private Limited. All rights reserved. 8
  • 9. Assessing Potency Requirements “Area” traceability The least number of test cases with the ability “External area to target specific types of defects in specific that I am areas to ensure “clean software”. Entity covering” e t t arg Code to ere coverage Wh “Drug” “Internal area that I am Test Cases Potency Wh covering” o t “Bug” o targ et? Fault Coverage Countability PDT “What PDTs “Proving sufficiency of test cases” Potential Defect Type uncovered by test cases” Conformance:Robustness “Distribution of +Ve/-Ve test cases” Test case immunity Immunity Levelization “No defect yield Resistant to bugs “Optimal targeting” from test cases” i.e. hardened entities © 2012. STAG Software Private Limited. All rights reserved. 9
  • 10. HBT : Hypothesis Based Testing A Quick Introduction Personal, scientific test methodology. SIX stage methodology powered by EIGHT disciplines of thinking (STEMTM). Setup Hypothesize Cleanliness Criteria Potential Defect Types SUT Nine Stage Cleanliness Assessment Defect Removal Filter Click here to know more about HBT. http://stagsoftware.com/blog?p=570 © 2012. STAG Software Private Limited. All rights reserved. 10
  • 11. Targeting... should satisfy impeded by Cleanliness Criteria Potential Defect Entity under test Types Fault Requirements Test Cases traceability traceability “test for what” “what to test” It is necessary for test cases to be purposeful/goal-focused. Tracing test cases to requirement is a necessary condition for this, but not sufficient! Two way tracing i.e. Requirements + FAULT makes this sufficient. © 2012. STAG Software Private Limited. All rights reserved. 11
  • 12. Snapshot of Defect Hypothesis Views Error injection Fault proneness Failure What kinds of erroneous data What kind of issues could data What kinds of bad data can be Data may be injected? cause? generated? What conditions/values can be How can conditions be messed What can be incorrect results Business Logic missed? up? when conditions are combined? Aspects How can we setup incorrect How can structure mess up the What kinds of structure can Structure “structure”? behavior? yield incorrect results? What is incorrect environment How can resources in the How can environment be Environment setup? environment cause problems? messed up? In what ways can we use the What kinds of usage may be be What can be poor usage Usage entity interestingly? inherently faulty? experience? © 2012. STAG Software Private Limited. All rights reserved. 12
  • 13. Fault Coverage - “What PDT’s uncovered by test cases” Fault Fault traceability traceability Test for what? PDT1 R1 TC1 PDT1 PDT2 R2 TC2 PDT2 PDT3 R3 TC3 PDT3 ... ... ... ... PDTn Rm TCi PDTn Requirements traceability What to test? Do the test cases for a given entity have the ability to detect specific types of defects? © 2012. STAG Software Private Limited. All rights reserved. 13
  • 14. Levelization- “Optimal targeting” Staged “Filtration” Objective Issues That user expectations are met L9 End user value User flows, experience That it deploys well in the real environment L8 Clean Deployment Compatibility, migration That the stated attributes are met L7 Attributes met Performance, security, volume, load... That it does not mess up the environment L6 Environment cleanliness Resource leaks, Compatibility... That end-to-end flows work correctly L5 Flow correctness Business flow conditions, Linkages That the functional behaviour is correct L4 Behaviour correctness Functionality L3 Structural integrity That the internal structure is robust Internal structural issues That the user interface is clean L2 Input interface cleanliness UI issues That inputs are handled well L1 Input cleanliness Input data handling © 2012. STAG Software Private Limited. All rights reserved. 14
  • 15. Countability - “Proving sufficiency of test cases” Entity Behaviour Stimuli under test Conditions govern behaviour Input (data) is Stimuli Outcome is Test Scenarios Outcome is Test Cases Inputs Conditions Outputs If #conditions & values for } 1 each conditions are know, C4 then #scenarios i1 2 can be proved to be C2 3 sufficient. i2 C1 4 For each scenario, knowing C3 #values for each input i3 5 can prove sufficiency of test cases. © 2012. STAG Software Private Limited. All rights reserved. 15
  • 16. Conformance:Robustness- “Distribution of +ve/-ve test cases” L9 ... How do the test cases distribute? L3 Note at higher levels test cases progressively become conformance L2 oriented? L1 +ve test cases -ve test cases What do you think the ratio depends on? © 2012. STAG Software Private Limited. All rights reserved. 16
  • 17. Test Case Immunity - “No defect yield from test cases” Analysis of ‘defect type trends’ over ‘time’ by ‘entity under test’ helps us understand “what type of defects” are not present in “what entities”. Example: 1. As product matures, certain types of defects become harder to uncover. Say at Level-1 where the focus is on data validation issues, at later builds these kinds of issues do not surface. This kinda implies that “the system has developed immunity for this type of defect”. 2. Continuing from (1), it may be plausible that one of the entities may still continue to have data validation type of issues. Hence the phrase “entity under test” in ‘defect type trends’ over ‘time’ by ‘entity under test’. © 2012. STAG Software Private Limited. All rights reserved. 17
  • 18. Summarising... Requirements “Area” traceability The least number of test cases with the ability “External area to target specific types of defects in specific that I am areas to ensure “clean software”. Entity covering” e t t arg Code to ere coverage Wh “Drug” “Internal area that I am Test Cases Potency Wh covering” o t “Bug” o targ et? Fault Coverage Countability PDT “What PDTs “Proving sufficiency of test cases” Potential Defect Type uncovered by test cases” Conformance:Robustness “Distribution of +Ve/-Ve test cases” Test case immunity Immunity Levelization “No defect yield Resistant to bugs “Optimal targeting” from test cases” i.e. hardened entities © 2012. STAG Software Private Limited. All rights reserved. 18
  • 19. Results Discovery of missing test cases Assess the quality of test cases statically Improved confidence, able to convince customer about effectiveness logically © 2012. STAG Software Private Limited. All rights reserved. 19
  • 20. Thank you! Connect with us... @stagsoft blog.stagsoftware.com Covered in detail in “Effective review of test cases” A HBT series workshop www.cleansoft.in A division of STAG HBT is the intellectual property of STAG Software Private Limited. STEMTM is the trademark of STAG Software Private Limited. © 2012. STAG Software Private Limited. All rights reserved. www.stagsoftware.com