SlideShare une entreprise Scribd logo
1  sur  20
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!

Contenu connexe

En vedette

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 analysisniharika5412
 
Boundary value analysis
Boundary value analysisBoundary value analysis
Boundary value analysisVadym 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 TalksVadym Muliavka
 
Quality Improvement Methods
Quality Improvement MethodsQuality Improvement Methods
Quality Improvement MethodsAbdalla 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
 
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
 

En vedette (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
 

Similaire à Test techniques

Introduction to particle swarm optimization
Introduction to particle swarm optimizationIntroduction to particle swarm optimization
Introduction to particle swarm optimizationMrinmoy 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.docxcockekeshia
 
Probability Distributions for Discrete Variables
Probability Distributions for Discrete VariablesProbability Distributions for Discrete Variables
Probability Distributions for Discrete Variablesgetyourcheaton
 
Introduction To Taguchi Method
Introduction To Taguchi MethodIntroduction To Taguchi Method
Introduction To Taguchi MethodRamon 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 workingNeeru 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 BasicsJason 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.docxfredharris32
 
analysis part 02.pptx
analysis part 02.pptxanalysis part 02.pptx
analysis part 02.pptxefrembeyene4
 
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.docxdebishakespeare
 

Similaire à 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
 
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
 
06
0606
06
 

Plus de 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
 

Plus de 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
 

Dernier

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 

Dernier (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 

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