SlideShare a Scribd company logo
SOFTWARE QUALITY ASSURANCE
TEST TECHNIQUES




          Seminar: Oana FEIDI
          Quality Manager – Continental Automotive
PREVIEW
 the   problem …
        very large or infinite number of test scenarios
                            +
        finite amount of time
                            =
        impossible to test everything


 the   solution …
    Software test techniques exist to reduce the number of tests to be
     run whilst still providing sufficient coverage of the system under test
BLACK-BOX VS. WHITE-BOX

                       Test cases derived from specifications




   The focus is not the design, nor the implementation
                                      The focus is on the logic of implementation
EQUIVALENCE PARTITION
   create partitions of the input and output values of the component
   each partition shall contain a set or range of values, chosen such
    that all values can reasonably expected to be treated by the
    component in the same way
   both valid and invalid values are partitioned in this way


   For each test case specify:
        Input to the component
        Partition exercised
        The expected outcome of the test case



   Test completeness criteria: test at least one input/output pair
    for each equivalence partition
EQUIVALENCE PARTITION
   Values between 0 and 15 : not achieved
   Values between 16 and 50 : partially achieved
   Values between 51 and 85 : largely achieved
   Values between 86 and 100 : fully achieved

           Variable                Equivalence partition   Value
           percentage value        EP1: 0 ≤ x ≤ 15         10
           (valid)
                                   EP2: 16 ≤ x ≤ 50        33
                                   EP3: 51 ≤ x ≤ 85        80
                                   EP4: 86 ≤ x ≤ 100       100
           percentage value        EP5: x < 0              -5
           (invalid)
                                   EP6: x > 100            150
                                   EP7: x no integer       1,5
                                   EP8: x non numeric      spice
BOUNDARY ANALYSIS
   refinement of equivalence partitioning for which each edge
    of an equivalence class is a representative element of the
    class
   invalid-input elements are found just beyond the ends

   For each test case specify:
         the input(s) to the component
         the partition boundaries exercised

         The expected outcome of the test case




   Test completeness criteria: test at least one input/output
    pair for each equivalence partition and the “borders”
    between the equivalence partitions
BOUNDARY ANALYIS
   Values between 0 and 15 : not achieved
   Values between 16 and 50 : partially achieved
   Values between 51 and 85 : largely achieved
   Values between 86 and 100 : fully achieved

           Variable                Equivalence partition   Value
           percentage value        EP1: 0 ≤ x ≤ 15         0, 15
           (valid)
                                   EP2: 16 ≤ x ≤ 50        16, 50
                                   EP3: 51 ≤ x ≤ 85        51, 85
                                   EP4: 86 ≤ x ≤ 100       86, 100
           percentage value        EP5: x < 0              -1
           (invalid)
                                   EP6: x > 100            101
                                   EP7: x no integer       1,5
                                   EP8: x non numeric      spice
EXERCISE 1
   Use equivalence partition and boundary analysis to
    identify the values that have to be tested for the
    following specification:

     Up until 500 € value of goods, there is no rebate. From
      500 up to 1000 €, there is a 2,5% rebate. Over 1000 up
      to 5000 € there is a 5,0% rebate, above this an 8,5%
      rebate applies
     Up to a weight of 11 kg, sending it by normal mail will
      cost 6 €, sending it by express mail costs 12 €. Up until
      a weight of 30 kg shipping cost is 11 € (normal) and 18
      € (express). Above 30 kg shipping cost are 17 and 25 €,
      respectively.
STATE TRANSITION TESTING
   use a model of the states the component may occupy,
    transitions between those states, the events which cause
    those transitions, and the actions which may result from
    those transitions
   the model shall comprise states, transitions, events, actions
    and their relationships

   For each test case specify:
        the starting state of the component
        the input(s) to the component
        the expected outputs from the component

        the expected final state



   Test completeness criteria: 100% of the state transition
    diagram
STATE TRANSITION TESTING
   Start           push
                   pop                                                       Start
 init




           push               push                                                   init
 Empty            Filled               Full
           pop                pop                                            Empty
 delete




                                                           delete                           push


                                                       Filled                               End
    End
                                push                                         pop
                                          pop            push

                     Filled                   Filled                Full                    Empty

                                                                           pop

                                                                    Filled

                                                          State transition tree
EXERCISE 2
   Create the test transition
    tree for the ATM diagram
   Identify the unique paths
    to achieve 100%
    completeness criteria
DECISION TABLE
   Decision Table
           A decision table is a tabular form that presents a set of conditions and their
            corresponding actions.


   Condition Stubs
           Condition stubs describe the conditions or factors that will affect the decision or
            policy. They are listed in the upper section of the decision table.


   Action Stubs
           Action stubs describe, in the form of statements, the possible policy actions or
            decisions. They are listed in the lower section of the decision table.


   Rules
           Rules describe which actions are to be taken under a specific combination of
            conditions. They are specified by first inserting different combinations of
            condition attribute values and then putting X's in the appropriate columns of the
            action section of the table.
DECISION TABLE METHODOLOGY
1. Identify Conditions &   Find the data attribute each condition tests and all of the attribute's
Values                     values.

2. Compute Max             Multiply the number of values for each condition data attribute by
Number of Rules            each other.

3. Identify Possible       Determine each independent action to be taken for the decision or
Actions                    policy.

4. Enter All Possible      Fill in the values of the condition data attributes in each numbered
Rules                      rule column.

5. Define Actions for      For each rule, mark the appropriate actions with an X in the
each Rule                  decision table.

6. Verify the Policy       Review completed decision table with end-users.


7. Simplify the Table      Eliminate and/or consolidate rules to reduce the number of
                           columns.
EXAMPLE
   A marketing company wishes to construct a decision
    table to decide how to treat clients according to three
    characteristics: Gender, City Dweller, and age group: A
    (under 30), B (between 30 and 60), C (over 60). The
    company has four products (W, X, Y and Z) to test
    market.
        Product W will appeal to female city dwellers.
        Product X will appeal to young females.

        Product Y will appeal to Male middle aged shoppers who do
         not live in cities.
        Product Z will appeal to all but older females.
EXAMPLE
                                                                     3. Identify Possible Actions:
1. Identify Conditions & Values
                                  2. Compute Maximum                               W
• gender: M, F
                                  Number of Rules:                                 X
• city dweller: Y, N
                                        2 x 2 x 3 = 12                             Y
• age group: A, B, C
                                                                                   Z

                                             1   2   3   4   5   6     7   8   9    10   11   12

                                  Gender     F   M   F   M   F   M     F   M F      M    F    M
     4. Enter All Possible        City       Y   Y   N N     Y   Y     N N Y        Y    N    N
         Rules                    Age        A   A   A   A   B   B     B   B   C C       C    C


                                         1   2   3   4   5   6   7    8    9   10   11   12

                                  W      X               X                 X
                                  X      X       X
       5. Define Actions          Y                                   X
          for each Rule           Z      X   X   X   X   X   X   X    X        X         X
EXAMPLE
       Simplify the Table
         rules 2, 4, 6, 8, 10, 12 have the same action pattern
         rules 2, 6 and 10 have two of the three condition values (gender and city
          dweller) identical and all three of the values of the non- identical value (age)
          are covered, so they can be condensed into a single column 2
         The rules 4 and 12 have identical action pattern, but they cannot be
          combined because the indifferent attribute "Age" does not have all its values
          covered in these two columns. Age group B is missing
                Conditions
                Gender         F   M    F   M    F   F    M   F    F   M
                City           Y   Y    N   N    Y   N    N   Y    N   N
                Age            A   -    A   A    B   B    B   C    C   C
                Actions
                W                  X             X            X
                X              X        X
                Y                                         X
                Z              X   X    X   X    X   X    X            X
                               1   2    3   4    5   6    7   8    9   10
BLACK BOX - SUMMARY
   Equivalence partition
           create partitions of the input and output values of the component
           each partition shall contain a set or range of values, chosen such that all
            values can reasonably expected to be treated by the component in the same
            way
           both valid and invalid values are partitioned in this way

   Boundary Analysis
           refinement of equivalence partitioning for which each edge of an equivalence
            class is a representative element of the class
           invalid-input elements are found just beyond the ends

   State Transition Testing
           use a model of the states the component may occupy, transitions between
            those states, the events which cause those transitions, and the actions which
            may result from those transitions
           the model shall comprise states, transitions, events, actions and their
            relationships
CONCLUSIONS
   Advantages of Black Box Testing
       more effective on larger units of code than glass box
        testing
       tester needs no knowledge of implementation, including
        specific programming languages
       tester and programmer are independent of each other

       tests are done from a user's point of view

       will help to expose any ambiguities or inconsistencies in
        the specifications
       test cases can be designed as soon as the
        specifications are complete
CONCLUSIONS
   Disadvantages of Black Box Testing
       only a small number of possible inputs can actually be
        tested, to test every possible input stream would take
        nearly forever
       without clear and concise specifications, test cases are
        hard to design
       there may be unnecessary repetition of test inputs if the
        tester is not informed of test cases the programmer has
        already tried
       may leave many program paths untested

       cannot be directed toward specific segments of code which
        may be very complex (and therefore more error prone)
       most testing related research has been directed toward
        glass box testing
THANK YOU!

More Related Content

Viewers also liked

verification and validation
verification and validationverification and validation
verification and validationDinesh Pasi
 
Equivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysisEquivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysis
niharika5412
 
Boundary value analysis
Boundary value analysisBoundary value analysis
Boundary value analysis
Vadym Muliavka
 
Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT TalksMykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
Vadym Muliavka
 
Quality Improvement Methods
Quality Improvement MethodsQuality Improvement Methods
Quality Improvement Methods
Abdalla Ibrahim
 
liquid crystal display
liquid crystal displayliquid crystal display
liquid crystal displayDinesh Pasi
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principlessaurabhshertukde
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testingOana Feidi
 
Quality Improvement Project Guide
Quality Improvement Project GuideQuality Improvement Project Guide
Quality Improvement Project Guideprimary
 
Quality improvement
Quality improvementQuality improvement
Quality improvementAhmad Thanin
 

Viewers also liked (14)

verification and validation
verification and validationverification and validation
verification and validation
 
Verification & Validation
Verification & ValidationVerification & Validation
Verification & Validation
 
Presentation
PresentationPresentation
Presentation
 
Equivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysisEquivalence partinioning and boundary value analysis
Equivalence partinioning and boundary value analysis
 
Boundary value analysis
Boundary value analysisBoundary value analysis
Boundary value analysis
 
Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT TalksMykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
Mykhailo Zarai "Be careful when dealing with C++" at Rivne IT Talks
 
Software design
Software designSoftware design
Software design
 
Quality Improvement Methods
Quality Improvement MethodsQuality Improvement Methods
Quality Improvement Methods
 
liquid crystal display
liquid crystal displayliquid crystal display
liquid crystal display
 
Design concepts and principles
Design concepts and principlesDesign concepts and principles
Design concepts and principles
 
Black & White Box testing
Black & White Box testingBlack & White Box testing
Black & White Box testing
 
Whitebox testing
Whitebox testingWhitebox testing
Whitebox testing
 
Quality Improvement Project Guide
Quality Improvement Project GuideQuality Improvement Project Guide
Quality Improvement Project Guide
 
Quality improvement
Quality improvementQuality improvement
Quality improvement
 

Similar to Test techniques

Introduction to particle swarm optimization
Introduction to particle swarm optimizationIntroduction to particle swarm optimization
Introduction to particle swarm optimization
Mrinmoy Majumder
 
Comprehensive analysis on unit economics.
Comprehensive analysis on unit economics.Comprehensive analysis on unit economics.
Comprehensive analysis on unit economics.
thecommentboxers
 
Week 3 Lecture 11 Regression Analysis Regression analy.docx
Week 3 Lecture 11 Regression Analysis Regression analy.docxWeek 3 Lecture 11 Regression Analysis Regression analy.docx
Week 3 Lecture 11 Regression Analysis Regression analy.docx
cockekeshia
 
How to use statistica for rsm study
How to use statistica for rsm studyHow to use statistica for rsm study
How to use statistica for rsm study
Wan Nor Nadyaini Wan Omar
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
bhushan Nehete
 
Operators in java
Operators in javaOperators in java
Operators in java
Madishetty Prathibha
 
Probability Distributions for Discrete Variables
Probability Distributions for Discrete VariablesProbability Distributions for Discrete Variables
Probability Distributions for Discrete Variables
getyourcheaton
 
Introduction To Taguchi Method
Introduction To Taguchi MethodIntroduction To Taguchi Method
Introduction To Taguchi Method
Ramon Balisnomo
 
Iterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop workingIterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop working
Neeru Mittal
 
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning BasicsDeep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
Jason Tsai
 
Article Critique Is genetic testing right for you and your f.docx
Article Critique Is genetic testing right for you and your f.docxArticle Critique Is genetic testing right for you and your f.docx
Article Critique Is genetic testing right for you and your f.docx
fredharris32
 
analysis part 02.pptx
analysis part 02.pptxanalysis part 02.pptx
analysis part 02.pptx
efrembeyene4
 
Programming algorithms and flowchart.ppt
Programming algorithms and flowchart.pptProgramming algorithms and flowchart.ppt
Programming algorithms and flowchart.ppt
VictorMorcillo1
 
Static characteristics in mechanical measurements & metrology
Static characteristics in mechanical measurements & metrologyStatic characteristics in mechanical measurements & metrology
Static characteristics in mechanical measurements & metrologyChirag Solanki
 
1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inferenceDev Pandey
 
REGRESSION ANALYSISPlease refer to chapter 3 of the textbook fo.docx
REGRESSION ANALYSISPlease refer to chapter 3 of  the textbook fo.docxREGRESSION ANALYSISPlease refer to chapter 3 of  the textbook fo.docx
REGRESSION ANALYSISPlease refer to chapter 3 of the textbook fo.docx
debishakespeare
 

Similar to Test techniques (20)

Blackbox
BlackboxBlackbox
Blackbox
 
Introduction to particle swarm optimization
Introduction to particle swarm optimizationIntroduction to particle swarm optimization
Introduction to particle swarm optimization
 
Blackbox
BlackboxBlackbox
Blackbox
 
Comprehensive analysis on unit economics.
Comprehensive analysis on unit economics.Comprehensive analysis on unit economics.
Comprehensive analysis on unit economics.
 
Week 3 Lecture 11 Regression Analysis Regression analy.docx
Week 3 Lecture 11 Regression Analysis Regression analy.docxWeek 3 Lecture 11 Regression Analysis Regression analy.docx
Week 3 Lecture 11 Regression Analysis Regression analy.docx
 
Serial correlation
Serial correlationSerial correlation
Serial correlation
 
How to use statistica for rsm study
How to use statistica for rsm studyHow to use statistica for rsm study
How to use statistica for rsm study
 
Heteroskedasticity
HeteroskedasticityHeteroskedasticity
Heteroskedasticity
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
 
Operators in java
Operators in javaOperators in java
Operators in java
 
Probability Distributions for Discrete Variables
Probability Distributions for Discrete VariablesProbability Distributions for Discrete Variables
Probability Distributions for Discrete Variables
 
Introduction To Taguchi Method
Introduction To Taguchi MethodIntroduction To Taguchi Method
Introduction To Taguchi Method
 
Iterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop workingIterative control structures, looping, types of loops, loop working
Iterative control structures, looping, types of loops, loop working
 
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning BasicsDeep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
 
Article Critique Is genetic testing right for you and your f.docx
Article Critique Is genetic testing right for you and your f.docxArticle Critique Is genetic testing right for you and your f.docx
Article Critique Is genetic testing right for you and your f.docx
 
analysis part 02.pptx
analysis part 02.pptxanalysis part 02.pptx
analysis part 02.pptx
 
Programming algorithms and flowchart.ppt
Programming algorithms and flowchart.pptProgramming algorithms and flowchart.ppt
Programming algorithms and flowchart.ppt
 
Static characteristics in mechanical measurements & metrology
Static characteristics in mechanical measurements & metrologyStatic characteristics in mechanical measurements & metrology
Static characteristics in mechanical measurements & metrology
 
1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference1192012 155942 f023_=_statistical_inference
1192012 155942 f023_=_statistical_inference
 
REGRESSION ANALYSISPlease refer to chapter 3 of the textbook fo.docx
REGRESSION ANALYSISPlease refer to chapter 3 of  the textbook fo.docxREGRESSION ANALYSISPlease refer to chapter 3 of  the textbook fo.docx
REGRESSION ANALYSISPlease refer to chapter 3 of the textbook fo.docx
 

More from Oana Feidi

Root cause analysis
Root cause analysisRoot cause analysis
Root cause analysisOana Feidi
 
Testcase definition
Testcase definitionTestcase definition
Testcase definitionOana Feidi
 
Reviews checklists
Reviews checklistsReviews checklists
Reviews checklistsOana Feidi
 
Test management
Test managementTest management
Test managementOana Feidi
 
Testcase definition
Testcase definitionTestcase definition
Testcase definitionOana Feidi
 
Reviews checklists
Reviews checklistsReviews checklists
Reviews checklistsOana Feidi
 
Problematriunghiului
ProblematriunghiuluiProblematriunghiului
ProblematriunghiuluiOana Feidi
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introductionOana Feidi
 
Reviews Checklists
Reviews ChecklistsReviews Checklists
Reviews ChecklistsOana Feidi
 

More from Oana Feidi (15)

Spice
SpiceSpice
Spice
 
Root cause analysis
Root cause analysisRoot cause analysis
Root cause analysis
 
Testcase definition
Testcase definitionTestcase definition
Testcase definition
 
Reviews checklists
Reviews checklistsReviews checklists
Reviews checklists
 
Spice
SpiceSpice
Spice
 
Test management
Test managementTest management
Test management
 
Testcase definition
Testcase definitionTestcase definition
Testcase definition
 
Reviews checklists
Reviews checklistsReviews checklists
Reviews checklists
 
Problematriunghiului
ProblematriunghiuluiProblematriunghiului
Problematriunghiului
 
Spice
SpiceSpice
Spice
 
Test Management introduction
Test Management introductionTest Management introduction
Test Management introduction
 
Whitebox
WhiteboxWhitebox
Whitebox
 
Testcase
TestcaseTestcase
Testcase
 
Testcase
TestcaseTestcase
Testcase
 
Reviews Checklists
Reviews ChecklistsReviews Checklists
Reviews Checklists
 

Recently uploaded

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
DhatriParmar
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 

Recently uploaded (20)

The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
The Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptxThe Diamond Necklace by Guy De Maupassant.pptx
The Diamond Necklace by Guy De Maupassant.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 

Test techniques

  • 1. SOFTWARE QUALITY ASSURANCE TEST TECHNIQUES Seminar: Oana FEIDI Quality Manager – Continental Automotive
  • 2. PREVIEW  the problem … very large or infinite number of test scenarios + finite amount of time = impossible to test everything  the solution … Software test techniques exist to reduce the number of tests to be run whilst still providing sufficient coverage of the system under test
  • 3. BLACK-BOX VS. WHITE-BOX  Test cases derived from specifications  The focus is not the design, nor the implementation  The focus is on the logic of implementation
  • 4. EQUIVALENCE PARTITION  create partitions of the input and output values of the component  each partition shall contain a set or range of values, chosen such that all values can reasonably expected to be treated by the component in the same way  both valid and invalid values are partitioned in this way  For each test case specify:  Input to the component  Partition exercised  The expected outcome of the test case  Test completeness criteria: test at least one input/output pair for each equivalence partition
  • 5. EQUIVALENCE PARTITION  Values between 0 and 15 : not achieved  Values between 16 and 50 : partially achieved  Values between 51 and 85 : largely achieved  Values between 86 and 100 : fully achieved Variable Equivalence partition Value percentage value EP1: 0 ≤ x ≤ 15 10 (valid) EP2: 16 ≤ x ≤ 50 33 EP3: 51 ≤ x ≤ 85 80 EP4: 86 ≤ x ≤ 100 100 percentage value EP5: x < 0 -5 (invalid) EP6: x > 100 150 EP7: x no integer 1,5 EP8: x non numeric spice
  • 6. BOUNDARY ANALYSIS  refinement of equivalence partitioning for which each edge of an equivalence class is a representative element of the class  invalid-input elements are found just beyond the ends  For each test case specify:  the input(s) to the component  the partition boundaries exercised  The expected outcome of the test case  Test completeness criteria: test at least one input/output pair for each equivalence partition and the “borders” between the equivalence partitions
  • 7. BOUNDARY ANALYIS  Values between 0 and 15 : not achieved  Values between 16 and 50 : partially achieved  Values between 51 and 85 : largely achieved  Values between 86 and 100 : fully achieved Variable Equivalence partition Value percentage value EP1: 0 ≤ x ≤ 15 0, 15 (valid) EP2: 16 ≤ x ≤ 50 16, 50 EP3: 51 ≤ x ≤ 85 51, 85 EP4: 86 ≤ x ≤ 100 86, 100 percentage value EP5: x < 0 -1 (invalid) EP6: x > 100 101 EP7: x no integer 1,5 EP8: x non numeric spice
  • 8. EXERCISE 1  Use equivalence partition and boundary analysis to identify the values that have to be tested for the following specification:  Up until 500 € value of goods, there is no rebate. From 500 up to 1000 €, there is a 2,5% rebate. Over 1000 up to 5000 € there is a 5,0% rebate, above this an 8,5% rebate applies  Up to a weight of 11 kg, sending it by normal mail will cost 6 €, sending it by express mail costs 12 €. Up until a weight of 30 kg shipping cost is 11 € (normal) and 18 € (express). Above 30 kg shipping cost are 17 and 25 €, respectively.
  • 9. STATE TRANSITION TESTING  use a model of the states the component may occupy, transitions between those states, the events which cause those transitions, and the actions which may result from those transitions  the model shall comprise states, transitions, events, actions and their relationships  For each test case specify:  the starting state of the component  the input(s) to the component  the expected outputs from the component  the expected final state  Test completeness criteria: 100% of the state transition diagram
  • 10. STATE TRANSITION TESTING Start push pop Start init push push init Empty Filled Full pop pop Empty delete delete push Filled End End push pop pop push Filled Filled Full Empty pop Filled State transition tree
  • 11. EXERCISE 2  Create the test transition tree for the ATM diagram  Identify the unique paths to achieve 100% completeness criteria
  • 12. DECISION TABLE  Decision Table  A decision table is a tabular form that presents a set of conditions and their corresponding actions.  Condition Stubs  Condition stubs describe the conditions or factors that will affect the decision or policy. They are listed in the upper section of the decision table.  Action Stubs  Action stubs describe, in the form of statements, the possible policy actions or decisions. They are listed in the lower section of the decision table.  Rules  Rules describe which actions are to be taken under a specific combination of conditions. They are specified by first inserting different combinations of condition attribute values and then putting X's in the appropriate columns of the action section of the table.
  • 13. DECISION TABLE METHODOLOGY 1. Identify Conditions & Find the data attribute each condition tests and all of the attribute's Values values. 2. Compute Max Multiply the number of values for each condition data attribute by Number of Rules each other. 3. Identify Possible Determine each independent action to be taken for the decision or Actions policy. 4. Enter All Possible Fill in the values of the condition data attributes in each numbered Rules rule column. 5. Define Actions for For each rule, mark the appropriate actions with an X in the each Rule decision table. 6. Verify the Policy Review completed decision table with end-users. 7. Simplify the Table Eliminate and/or consolidate rules to reduce the number of columns.
  • 14. EXAMPLE  A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market.  Product W will appeal to female city dwellers.  Product X will appeal to young females.  Product Y will appeal to Male middle aged shoppers who do not live in cities.  Product Z will appeal to all but older females.
  • 15. EXAMPLE 3. Identify Possible Actions: 1. Identify Conditions & Values 2. Compute Maximum W • gender: M, F Number of Rules: X • city dweller: Y, N 2 x 2 x 3 = 12 Y • age group: A, B, C Z 1 2 3 4 5 6 7 8 9 10 11 12 Gender F M F M F M F M F M F M 4. Enter All Possible City Y Y N N Y Y N N Y Y N N Rules Age A A A A B B B B C C C C 1 2 3 4 5 6 7 8 9 10 11 12 W X X X X X X 5. Define Actions Y X for each Rule Z X X X X X X X X X X
  • 16. EXAMPLE  Simplify the Table  rules 2, 4, 6, 8, 10, 12 have the same action pattern  rules 2, 6 and 10 have two of the three condition values (gender and city dweller) identical and all three of the values of the non- identical value (age) are covered, so they can be condensed into a single column 2  The rules 4 and 12 have identical action pattern, but they cannot be combined because the indifferent attribute "Age" does not have all its values covered in these two columns. Age group B is missing Conditions Gender F M F M F F M F F M City Y Y N N Y N N Y N N Age A - A A B B B C C C Actions W X X X X X X Y X Z X X X X X X X X 1 2 3 4 5 6 7 8 9 10
  • 17. BLACK BOX - SUMMARY  Equivalence partition  create partitions of the input and output values of the component  each partition shall contain a set or range of values, chosen such that all values can reasonably expected to be treated by the component in the same way  both valid and invalid values are partitioned in this way  Boundary Analysis  refinement of equivalence partitioning for which each edge of an equivalence class is a representative element of the class  invalid-input elements are found just beyond the ends  State Transition Testing  use a model of the states the component may occupy, transitions between those states, the events which cause those transitions, and the actions which may result from those transitions  the model shall comprise states, transitions, events, actions and their relationships
  • 18. CONCLUSIONS  Advantages of Black Box Testing  more effective on larger units of code than glass box testing  tester needs no knowledge of implementation, including specific programming languages  tester and programmer are independent of each other  tests are done from a user's point of view  will help to expose any ambiguities or inconsistencies in the specifications  test cases can be designed as soon as the specifications are complete
  • 19. CONCLUSIONS  Disadvantages of Black Box Testing  only a small number of possible inputs can actually be tested, to test every possible input stream would take nearly forever  without clear and concise specifications, test cases are hard to design  there may be unnecessary repetition of test inputs if the tester is not informed of test cases the programmer has already tried  may leave many program paths untested  cannot be directed toward specific segments of code which may be very complex (and therefore more error prone)  most testing related research has been directed toward glass box testing