SlideShare ist ein Scribd-Unternehmen logo
1 von 67
Software Testing
       ISEB Foundation Certificate Course



Principles of Testing


      1 Principles   2 Lifecycle   3 Static testing

     4 Dynamic test
                    5 Management       6 Tools
       techniques
Principles

    1        2   3                      ISEB Foundation Certificate Course

    4        5   6




   Contents
                     Why testing is necessary
                     Fundamental test process
                      Psychology of testing
                 Re-testing and regression testing
                         Expected results
                       Prioritisation of tests
Testing terminology

 s   No generally accepted set of testing
     definitions used world wide
 s   New standard BS 7925-1
      - Glossary of testing terms (emphasis on component
        testing)
      - most recent
      - developed by a working party of the BCS SIGIST
      - adopted by the ISEB
What is a “bug”?
 s   Error: a human action that produces an
     incorrect result
 s   Fault: a manifestation of an error in software
      - also known as a defect or bug
      - if executed, a fault may cause a failure
 s   Failure: deviation of the software from its
     expected delivery or service
      - (found defect)

                       Failure is an event; fault is a state of
                         the software, caused by an error
Error - Fault - Failure
A person makes
   an error ...


                  … that creates a
                    fault in the
                    software ...


                                     … that can cause
                                         a failure
                                       in operation
Reliability versus faults

 s   Reliability: the probability that software will
     not cause the failure of the system for a
     specified time under specified conditions
      - Can a system be fault-free? (zero faults, right first
        time)
      - Can a software system be reliable but still have
        faults?
      - Is a “fault-free” software application always
        reliable?
Why do faults occur in software?

 s   software is written by human beings
      - who know something, but not everything
      - who have skills, but aren’t perfect
      - who do make mistakes (errors)
 s   under increasing pressure to deliver to strict
     deadlines
      - no time to check but assumptions may be wrong
      - systems may be incomplete
 s   if you have ever written software ...
What do software faults cost?

 s   huge sums
      - Ariane 5 ($7billion)
      - Mariner space probe to Venus ($250m)
      - American Airlines ($50m)
 s   very little or nothing at all
      - minor inconvenience
      - no visible or physical detrimental impact
 s   software is not “linear”:
      - small input may have very large effect
Safety-critical systems

 s   software faults can cause death or injury
      - radiation treatment kills patients (Therac-25)
      - train driver killed
      - aircraft crashes (Airbus & Korean Airlines)
      - bank system overdraft letters cause suicide
So why is testing necessary?

   -   because software is likely to have faults
   -   to learn about the reliability of the software
   -   to fill the time between delivery of the software and
       the release date
   -   to prove that the software has no faults
   -   because testing is included in the project plan
   -   because failures can be very expensive
   -   to avoid being sued by customers
   -   to stay in business
Why not just "test everything"?
                           Avr. 4 menus
                           3 options / menu


system has                                     Average: 10 fields / screen
20 screens                                     2 types input / field
                                               (date as Jan 3 or 3/1)
                                               (number as integer or decimal)
                                               Around 100 possible values

       Total for 'exhaustive' testing:
             20 x 4 x 3 x 10 x 2 x 100 = 480,000 tests
       If 1 second per test, 8000 mins, 133 hrs, 17.7 days
       (not counting finger trouble, faults or retest)

     10 secs = 34 wks, 1 min = 4 yrs, 10 min = 40 yrs
Exhaustive testing?

 s   What is exhaustive testing?
     - when all the testers are exhausted
     - when all the planned tests have been executed
     - exercising all combinations of inputs and
       preconditions
 s   How much time will exhaustive testing take?
     - infinite time
     - not much time
     - impractical amount of time
How much testing is enough?

   - it’s never enough
   - when you have done what you planned
   - when your customer/user is happy
   - when you have proved that the system works
     correctly
   - when you are confident that the system works
     correctly
   - it depends on the risks for your system
How much testing?

 s
     It depends on RISK
      - risk of missing important faults
      - risk of incurring failure costs
      - risk of releasing untested or under-tested software
      - risk of losing credibility and market share
      - risk of missing a market window
      - risk of over-testing, ineffective testing
So little time, so much to test ..

 s   test time will always be limited
 s
     use RISK to determine:
      - what to test first
      - what to test most
      - how thoroughly to test each item   }   i.e. where to
                                               place emphasis
      - what not to test (this time)
 s
     use RISK to
      - allocate the time available for testing by
        prioritising testing ...
Most important principle


                Prioritise tests
                   so that,
         whenever you stop testing,
       you have done the best testing
            in the time available.
Testing and quality

 s   testing measures software quality
 s   testing can find faults; when they are
     removed, software quality (and possibly
     reliability) is improved
 s   what does testing test?
      - system function, correctness of operation
      - non-functional qualities: reliability, usability,
        maintainability, reusability, testability, etc.
Other factors that influence testing

 s   contractual requirements
 s   legal requirements
 s   industry-specific requirements
      - e.g. pharmaceutical industry (FDA), compiler
        standard tests, safety-critical or safety-related such
        as railroad switching, air traffic control

                   It is difficult to determine
                 how much testing is enough
                    but it is not impossible
Principles

    1        2   3                      ISEB Foundation Certificate Course

    4        5   6



   Contents
                     Why testing is necessary
                     Fundamental test process
                      Psychology of testing
                 Re-testing and regression testing
                         Expected results
                       Prioritisation of tests
Test Planning - different levels
        Test
       Policy
                     Company level
        Test
      Strategy

     High Level      Project level (IEEE 829)
      High Level
     Test Plan       (one for each project)
      Test Plan

      Detailed       Test stage level (IEEE 829)
       Detailed
        Detailed
      TestDetailed
           Plan      (one for each stage within a project,
       Test Plan
        Test Plan    e.g. Component, System, etc.)
         Test Plan
The test process

      Planning (detailed level)


                                                check
      specification   execution   recording
                                              completion
Test planning

 s   how the test strategy and project test plan
     apply to the software under test
 s   document any exceptions to the test strategy
      - e.g. only one test case design technique needed for
        this functional area because it is less critical
 s   other software needed for the tests, such as
     stubs and drivers, and environment details
 s   set test completion criteria
Test specification

       Planning (detailed level)


                                                check
      specification   execution   recording
                                              completion

       Identify conditions
         Design test cases
                 Build tests
A good test case
                     Finds faults
 s   effective

 s   exemplary
                     Represents others
 s   evolvable
                   Easy to maintain
 s   economic


                 Cheap to use
Test specification

s   test specification can be broken down into three
    distinct tasks:
     1. identify: determine ‘what’ is to be tested (identify
                  test conditions) and prioritise
     2. design:   determine ‘how’ the ‘what’ is to be tested
                  (i.e. design test cases)
     3. build:    implement the tests (data, scripts, etc.)
Task 1: identify conditions
 (determine ‘what’ is to be tested and prioritise)
 s   list the conditions that we would like to test:
      - use the test design techniques specified in the test plan
      - there may be many conditions for each system function or
        attribute
      - e.g.
          • “life assurance for a winter sportsman”
          • “number items ordered > 99”
          • “date = 29-Feb-2004”
 s   prioritise the test conditions
      - must ensure most important conditions are covered
Selecting test conditions
Importance

                             Best set




             $
             First set      Time
Task 2: design test cases
 (determine ‘how’ the ‘what’ is to be tested)
 s   design test input and test data
      - each test exercises one or more test conditions
 s   determine expected results
      - predict the outcome of each test case, what is
        output, what is changed and what is not changed
 s   design sets of tests
      - different test sets for different objectives such as
        regression, building confidence, and finding faults
Designing test cases   Most important
                         test conditions
                         Least important
Importance               test conditions
                         Test cases




                              Time
Task 3: build test cases
 (implement the test cases)
 s   prepare test scripts
      - less system knowledge tester has the more detailed
        the scripts will have to be
      - scripts for tools have to specify every detail
 s   prepare test data
      - data that must exist in files and databases at the start
        of the tests
 s   prepare expected results
      - should be defined before the test is executed
Test execution

      Planning (detailed level)


                                                check
      specification   execution   recording
                                              completion
Execution

 s   Execute prescribed test cases
     - most important ones first
     - would not execute all test cases if
        • testing only fault fixes
        • too many faults found by early test cases
        • time pressure
     - can be performed manually or automated
Test recording

      Planning (detailed level)


                                                check
      specification   execution   recording
                                              completion
Test recording 1
s   The test record contains:
     - identities and versions (unambiguously) of
        • software under test
        • test specifications
s   Follow the plan
     - mark off progress on test script
     - document actual outcomes from the test
     - capture any other ideas you have for new test cases
     - note that these records are used to establish that all test
       activities have been carried out as specified
Test recording 2

 s   Compare actual outcome with expected
     outcome. Log discrepancies accordingly:
      - software fault
      - test fault (e.g. expected results wrong)
      - environment or version fault
      - test run incorrectly
 s   Log coverage levels achieved (for measures
     specified as test completion criteria)
 s   After the fault has been fixed, repeat the
     required test activities (execute, design, plan)
Check test completion

      Planning (detailed level)


                                                check
      specification   execution   recording
                                              completion
Check test completion

 s   Test completion criteria were specified in the
     test plan
 s   If not met, need to repeat test activities, e.g.
     test specification to design more tests

                       Coverage too low

                                            check
specification   execution   recording
                                          completion
                                                       Coverage
                                                       OK
Test completion criteria

 s   Completion or exit criteria apply to all levels
     of testing - to determine when to stop
      - coverage, using a measurement technique, e.g.
         • branch coverage for unit testing
         • user requirements
         • most frequently used transactions
      - faults found (e.g. versus expected)
      - cost or time
Governs the
Comparison of tasks
                                 quality of tests

  Planning       Intellectual
                  one-off
 Specification    activity                  Good to
                                activity   automate
   Execute                     repeated
                             many times
  Recording                     Clerical
Principles

    1        2   3                      ISEB Foundation Certificate Course

    4        5   6


   Contents
                     Why testing is necessary
                     Fundamental test process
                      Psychology of testing
                 Re-testing and regression testing
                         Expected results
                       Prioritisation of tests
Why test?

 s   build confidence
 s   prove that the software is correct
 s   demonstrate conformance to requirements
 s   find faults
 s   reduce costs
 s   show system meets user needs
 s   assess the software quality
Confidence
Confidence
                   Fault found
                   Faults found




                                    Time

    No faults found = confidence?
Assessing software quality             You think
                                      you are here




                 Many      High       Few
                                      Few
                 Faults              Faults
                                     Faults

Low                                                  High
        Software Quality


                  Few       Test      Few
                 Faults    Quality   Faults

      You may
       be here

                            Low
A traditional testing approach

 s   Show that the system:
     - does what it should
     - doesn't do what it shouldn't
             Goal:         show working
             Success: system works

     Fastest achievement: easy test cases

                            Result: faults left in
A better testing approach

  s   Show that the system:
      - does what it shouldn't
      - doesn't do what it should
             Goal:         find faults
              Success: system fails

      Fastest achievement: difficult test cases

                              Result: fewer faults left in
The testing paradox

       Purpose of testing: to find faults
      Finding faults destroys confidence
     Purpose of testing: destroy confidence


     Purpose of testing: build confidence

         The best way to build confidence
               is to try to destroy it
Who wants to be a tester?

 s   A destructive process
 s   Bring bad news (“your baby is ugly”)
 s   Under worst time pressure (at the end)
 s   Need to take a different view, a different
     mindset (“What if it isn’t?”, “What could go
     wrong?”)
 s   How should fault information be
     communicated (to authors and managers?)
Tester’s have the right to:
   -   accurate information about progress and changes
   -   insight from developers about areas of the software
   -   delivered code tested to an agreed standard
   -   be regarded as a professional (no abuse!)
   -   find faults!
   -   challenge specifications and test plans
   -   have reported faults taken seriously (unreproducible)
   -   make predictions about future fault levels
   -   improve your own testing process
Testers have responsibility to:

   - follow the test plans, scripts etc. as documented
   - report faults objectively and factually (no abuse!)
   - check tests are correct before reporting s/w faults
   - remember it is the software, not the programmer,
     that you are testing
   - assess risk objectively
   - prioritise what you report
   - communicate the truth
Independence

s   Test your own work?
     - find 30% - 50% of your own faults
     - same assumptions and thought processes
     - see what you meant or want to see, not what is there
     - emotional attachment
         • don’t want to find faults
         • actively want NOT to find faults
Levels of independence

 s   None: tests designed by the person who wrote
     the software
 s   Tests designed by a different person
 s   Tests designed by someone from a different
     department or team (e.g. test team)
 s   Tests designed by someone from a different
     organisation (e.g. agency)
 s   Tests generated by a tool (low quality tests?)
Principles

    1        2   3                     ISEB Foundation Certificate Course

    4        5   6



        Contents

                     Why testing is necessary
                     Fundamental test process
                      Psychology of testing
                 Re-testing and regression testing
                         Expected results
                       Prioritisation of tests
Re-testing after faults are fixed

 s   Run a test, it fails, fault reported
 s   New version of software with fault “fixed”
 s   Re-run the same test (i.e. re-test)
      - must be exactly repeatable
      - same environment, versions (except for the software
         which has been intentionally changed!)
      - same inputs and preconditions
 s   If test now passes, fault has been fixed
     correctly - or has it?
Re-testing (re-running failed tests)
                        New faults introduced by the first
                       fault fix not found during re-testing


                                                     x

                                   x
                   x



                                                      x
                        
 Fault now fixed
                            Re-test to check
Regression test

 s   to look for any unexpected side-effects

                                            x

                             x
                 x



                                            x
                     
                         Can’t guarantee
                         to find them all
Regression testing 1

 s   misnomer: "anti-regression" or "progression"
 s   standard set of tests - regression test pack
 s   at any level (unit, integration, system,
     acceptance)
 s   well worth automating
 s   a developing asset but needs to be maintained
Regression testing 2

 s   Regression tests are performed
     - after software changes, including faults fixed
     - when the environment changes, even if application
       functionality stays the same
     - for emergency fixes (possibly a subset)
 s   Regression test suites
     - evolve over time
     - are run often
     - may become rather large
Regression testing 3

 s   Maintenance of the regression test pack
     - eliminate repetitive tests (tests which test the same
       test condition)
     - combine test cases (e.g. if they are always run
       together)
     - select a different subset of the full regression suite
       to run each time a regression test is needed
     - eliminate tests which have not found a fault for a
       long time (e.g. old fault fix tests)
Regression testing and automation
s   Test execution tools (e.g. capture replay) are
    regression testing tools - they re-execute tests
    which have already been executed
s   Once automated, regression tests can be run as
    often as desired (e.g. every night)
s   Automating tests is not trivial (generally takes 2
    to 10 times longer to automate a test than to run
    it manually
s   Don’t automate everything - plan what to
    automate first, only automate if worthwhile
Principles

    1        2   3                      ISEB Foundation Certificate Course

    4        5   6


    Contents

                     Why testing is necessary
                     Fundamental test process
                      Psychology of testing
                 Re-testing and regression testing
                         Expected results
                       Prioritisation of tests
Expected results

 s   Should be predicted in advance as part of the
     test design process
      - ‘Oracle Assumption’ assumes that correct outcome
        can be predicted.
 s   Why not just look at what the software does
     and assess it at the time?
      - subconscious desire for the test to pass - less work
        to do, no incident report to write up
      - it looks plausible, so it must be OK - less rigorous
        than calculating in advance and comparing
A test                                              expected
                                            inputs   outputs

  A Program:
                                               3       6?
  Read A
  IF (A = 8) THEN
      PRINT (“10”)
  ELSE                                         8      10?
      PRINT (2*A)




Source: Carsten Jorgensen, Delta, Denmark
Principles

    1        2   3                     ISEB Foundation Certificate Course

    4        5   6



    Contents
                     Why testing is necessary
                     Fundamental test process
                      Psychology of testing
                 Re-testing and regression testing
                         Expected results
                       Prioritisation of tests
Prioritising tests

 s   We can’t test everything
 s   There is never enough time to do all the
     testing you would like
 s   So what testing should you do?
Most important principle


                Prioritise tests
                   so that,
         whenever you stop testing,
       you have done the best testing
            in the time available.
How to prioritise?

 s   Possible ranking criteria (all risk based)
     - test where a failure would be most severe
     - test where failures would be most visible
     - test where failures are most likely
     - ask the customer to prioritise the requirements
     - what is most critical to the customer’s business
     - areas changed most often
     - areas with most problems in the past
     - most complex areas, or technically critical
Principles

    1        2   3                    ISEB Foundation Certificate Course

    4        5   6

    Summary: Key Points
   Testing is necessary because people make errors
   The test process: planning, specification, execution,
     recording, checking completion
   Independence & relationships are important in testing
   Re-test fixes; regression test for the unexpected
   Expected results from a specification in advance
   Prioritise to do the best testing in the time you have

Weitere ähnliche Inhalte

Was ist angesagt?

07 Outsource To India Independent Testing
07 Outsource To India Independent Testing07 Outsource To India Independent Testing
07 Outsource To India Independent TestingoutsourceToIndia
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTsuhasreddy1
 
Testing- Fundamentals of Testing-Mazenet solution
Testing- Fundamentals of Testing-Mazenet solutionTesting- Fundamentals of Testing-Mazenet solution
Testing- Fundamentals of Testing-Mazenet solutionMazenetsolution
 
Design for Testability: A Tutorial for Devs and Testers
Design for Testability: A Tutorial for Devs and TestersDesign for Testability: A Tutorial for Devs and Testers
Design for Testability: A Tutorial for Devs and TestersTechWell
 
Software Architecture: Test Case Writing
Software Architecture: Test Case WritingSoftware Architecture: Test Case Writing
Software Architecture: Test Case WritingSitdhibong Laokok
 
Software Testing- Principles of testing- Mazenet Solution
Software Testing- Principles of testing- Mazenet SolutionSoftware Testing- Principles of testing- Mazenet Solution
Software Testing- Principles of testing- Mazenet SolutionMazenetsolution
 
201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)Javier Gonzalez-Sanchez
 
Requirements Based Testing
Requirements Based TestingRequirements Based Testing
Requirements Based TestingSSA KPI
 
02 test automation functional testing (qtp)
02 test automation functional testing (qtp)02 test automation functional testing (qtp)
02 test automation functional testing (qtp)Siddireddy Balu
 
ISTQB / ISEB Foundation Exam Practice - 6
ISTQB / ISEB Foundation Exam Practice - 6ISTQB / ISEB Foundation Exam Practice - 6
ISTQB / ISEB Foundation Exam Practice - 6Yogindernath Gupta
 
White boxvsblackbox
White boxvsblackboxWhite boxvsblackbox
White boxvsblackboxsanerjjd
 
Software Design for Testability
Software Design for TestabilitySoftware Design for Testability
Software Design for Testabilityamr0mt
 
12 sdd lesson testing and evaluating
12 sdd lesson testing and evaluating12 sdd lesson testing and evaluating
12 sdd lesson testing and evaluatingMike Cusack
 
Software testability slide share
Software testability slide shareSoftware testability slide share
Software testability slide shareBeBo Technology
 
Software Reliability Engineering
Software Reliability EngineeringSoftware Reliability Engineering
Software Reliability Engineeringguest90cec6
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)IJERD Editor
 

Was ist angesagt? (19)

07 Outsource To India Independent Testing
07 Outsource To India Independent Testing07 Outsource To India Independent Testing
07 Outsource To India Independent Testing
 
TESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPTTESTING LIFE CYCLE PPT
TESTING LIFE CYCLE PPT
 
Testing- Fundamentals of Testing-Mazenet solution
Testing- Fundamentals of Testing-Mazenet solutionTesting- Fundamentals of Testing-Mazenet solution
Testing- Fundamentals of Testing-Mazenet solution
 
Design for Testability: A Tutorial for Devs and Testers
Design for Testability: A Tutorial for Devs and TestersDesign for Testability: A Tutorial for Devs and Testers
Design for Testability: A Tutorial for Devs and Testers
 
Software Architecture: Test Case Writing
Software Architecture: Test Case WritingSoftware Architecture: Test Case Writing
Software Architecture: Test Case Writing
 
Software Testing- Principles of testing- Mazenet Solution
Software Testing- Principles of testing- Mazenet SolutionSoftware Testing- Principles of testing- Mazenet Solution
Software Testing- Principles of testing- Mazenet Solution
 
201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)201008 Software Testing Notes (part 1/2)
201008 Software Testing Notes (part 1/2)
 
Requirements Based Testing
Requirements Based TestingRequirements Based Testing
Requirements Based Testing
 
Notes on teaching software testing
Notes on teaching software testingNotes on teaching software testing
Notes on teaching software testing
 
02 test automation functional testing (qtp)
02 test automation functional testing (qtp)02 test automation functional testing (qtp)
02 test automation functional testing (qtp)
 
ISTQB / ISEB Foundation Exam Practice - 6
ISTQB / ISEB Foundation Exam Practice - 6ISTQB / ISEB Foundation Exam Practice - 6
ISTQB / ISEB Foundation Exam Practice - 6
 
White boxvsblackbox
White boxvsblackboxWhite boxvsblackbox
White boxvsblackbox
 
Software Design for Testability
Software Design for TestabilitySoftware Design for Testability
Software Design for Testability
 
Software reliability
Software reliabilitySoftware reliability
Software reliability
 
CTFL Module 02
CTFL Module 02CTFL Module 02
CTFL Module 02
 
12 sdd lesson testing and evaluating
12 sdd lesson testing and evaluating12 sdd lesson testing and evaluating
12 sdd lesson testing and evaluating
 
Software testability slide share
Software testability slide shareSoftware testability slide share
Software testability slide share
 
Software Reliability Engineering
Software Reliability EngineeringSoftware Reliability Engineering
Software Reliability Engineering
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 

Andere mochten auch

Op duarte portillo_ao3
Op duarte portillo_ao3Op duarte portillo_ao3
Op duarte portillo_ao316374802
 
Proyecto final grupo_186_unad_ 2013_ii
Proyecto final grupo_186_unad_ 2013_iiProyecto final grupo_186_unad_ 2013_ii
Proyecto final grupo_186_unad_ 2013_iiGrupo186
 
FOLLETO ASOCIACION TIENDAS DE MUEBLES. CIRCULO MUEBLES.
FOLLETO ASOCIACION TIENDAS DE MUEBLES. CIRCULO MUEBLES.FOLLETO ASOCIACION TIENDAS DE MUEBLES. CIRCULO MUEBLES.
FOLLETO ASOCIACION TIENDAS DE MUEBLES. CIRCULO MUEBLES.Blog Circulo Muebles
 
Trabajo colaborativo 1 Diseño de plantas industriales
Trabajo colaborativo 1 Diseño de plantas industrialesTrabajo colaborativo 1 Diseño de plantas industriales
Trabajo colaborativo 1 Diseño de plantas industrialesKatherine Alarcon
 
Plan de gestion nutridulce
Plan de gestion nutridulcePlan de gestion nutridulce
Plan de gestion nutridulcemayalezz
 
Consecuencias del sobrepeso
Consecuencias del sobrepesoConsecuencias del sobrepeso
Consecuencias del sobrepesoGenomma Lab
 
Ganhando controle sobre os seus pensamentos
Ganhando controle sobre os seus pensamentosGanhando controle sobre os seus pensamentos
Ganhando controle sobre os seus pensamentosIsabel Brandão
 
Manual para-estudiantes-primera-etapa
Manual para-estudiantes-primera-etapaManual para-estudiantes-primera-etapa
Manual para-estudiantes-primera-etapaMarta Montoro
 
Onde reside o Poder?
Onde reside o Poder?Onde reside o Poder?
Onde reside o Poder?Filipe Vieira
 
Función cuadrática 2006
Función cuadrática 2006Función cuadrática 2006
Función cuadrática 2006MCMurray
 
Introduccion a la_ingenieria
Introduccion a la_ingenieriaIntroduccion a la_ingenieria
Introduccion a la_ingenieriaangelandres86
 
QUALITY & AFFORDABLE EDUCATION FOR ALL : NEW POSSIBILITIES OF TECHNOLOGIES
 QUALITY & AFFORDABLE  EDUCATION FOR ALL :  NEW POSSIBILITIES OF TECHNOLOGIES QUALITY & AFFORDABLE  EDUCATION FOR ALL :  NEW POSSIBILITIES OF TECHNOLOGIES
QUALITY & AFFORDABLE EDUCATION FOR ALL : NEW POSSIBILITIES OF TECHNOLOGIESDr. Raju M. Mathew
 
Bloque AcadéMico Mpi6
Bloque AcadéMico Mpi6Bloque AcadéMico Mpi6
Bloque AcadéMico Mpi6JesusEOrtega
 
Processos gerenciamento de projetos
Processos gerenciamento de projetosProcessos gerenciamento de projetos
Processos gerenciamento de projetosPrycyllam01
 

Andere mochten auch (20)

Op duarte portillo_ao3
Op duarte portillo_ao3Op duarte portillo_ao3
Op duarte portillo_ao3
 
Sintesis 21 dic
Sintesis 21 dicSintesis 21 dic
Sintesis 21 dic
 
Proyecto final grupo_186_unad_ 2013_ii
Proyecto final grupo_186_unad_ 2013_iiProyecto final grupo_186_unad_ 2013_ii
Proyecto final grupo_186_unad_ 2013_ii
 
gabriel rodriguez
gabriel rodriguezgabriel rodriguez
gabriel rodriguez
 
FOLLETO ASOCIACION TIENDAS DE MUEBLES. CIRCULO MUEBLES.
FOLLETO ASOCIACION TIENDAS DE MUEBLES. CIRCULO MUEBLES.FOLLETO ASOCIACION TIENDAS DE MUEBLES. CIRCULO MUEBLES.
FOLLETO ASOCIACION TIENDAS DE MUEBLES. CIRCULO MUEBLES.
 
Trabajo de
Trabajo deTrabajo de
Trabajo de
 
Trabajo colaborativo 1 Diseño de plantas industriales
Trabajo colaborativo 1 Diseño de plantas industrialesTrabajo colaborativo 1 Diseño de plantas industriales
Trabajo colaborativo 1 Diseño de plantas industriales
 
Plan de gestion nutridulce
Plan de gestion nutridulcePlan de gestion nutridulce
Plan de gestion nutridulce
 
Consecuencias del sobrepeso
Consecuencias del sobrepesoConsecuencias del sobrepeso
Consecuencias del sobrepeso
 
Ganhando controle sobre os seus pensamentos
Ganhando controle sobre os seus pensamentosGanhando controle sobre os seus pensamentos
Ganhando controle sobre os seus pensamentos
 
Manual para-estudiantes-primera-etapa
Manual para-estudiantes-primera-etapaManual para-estudiantes-primera-etapa
Manual para-estudiantes-primera-etapa
 
Onde reside o Poder?
Onde reside o Poder?Onde reside o Poder?
Onde reside o Poder?
 
Educar
EducarEducar
Educar
 
Función cuadrática 2006
Función cuadrática 2006Función cuadrática 2006
Función cuadrática 2006
 
Introduccion a la_ingenieria
Introduccion a la_ingenieriaIntroduccion a la_ingenieria
Introduccion a la_ingenieria
 
QUALITY & AFFORDABLE EDUCATION FOR ALL : NEW POSSIBILITIES OF TECHNOLOGIES
 QUALITY & AFFORDABLE  EDUCATION FOR ALL :  NEW POSSIBILITIES OF TECHNOLOGIES QUALITY & AFFORDABLE  EDUCATION FOR ALL :  NEW POSSIBILITIES OF TECHNOLOGIES
QUALITY & AFFORDABLE EDUCATION FOR ALL : NEW POSSIBILITIES OF TECHNOLOGIES
 
Manual le1-arquivo1
Manual le1-arquivo1Manual le1-arquivo1
Manual le1-arquivo1
 
Bloque AcadéMico Mpi6
Bloque AcadéMico Mpi6Bloque AcadéMico Mpi6
Bloque AcadéMico Mpi6
 
Processos gerenciamento de projetos
Processos gerenciamento de projetosProcessos gerenciamento de projetos
Processos gerenciamento de projetos
 
Mi horario
Mi horarioMi horario
Mi horario
 

Ähnlich wie NG_TEST_SR_Presentation

ISTQBCH foundation level chapter 01 fundamentals of testing
ISTQBCH foundation level chapter 01 fundamentals of testingISTQBCH foundation level chapter 01 fundamentals of testing
ISTQBCH foundation level chapter 01 fundamentals of testingKhalilSalhi5
 
ISTQBCH2.ppt
ISTQBCH2.pptISTQBCH2.ppt
ISTQBCH2.pptghkadous
 
Software engineering quality assurance and testing
Software engineering quality assurance and testingSoftware engineering quality assurance and testing
Software engineering quality assurance and testingBipul Roy Bpl
 
AiTi Education Software Testing Session 01 a
AiTi Education Software Testing Session 01 aAiTi Education Software Testing Session 01 a
AiTi Education Software Testing Session 01 aAiTi Education
 
ISTQB Foundation - Chapter 2
ISTQB Foundation - Chapter 2ISTQB Foundation - Chapter 2
ISTQB Foundation - Chapter 2Chandukar
 
ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2onsoftwaretest
 
Risk based testing and random testing
Risk based testing and random testingRisk based testing and random testing
Risk based testing and random testingHimanshu
 
ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2Yogindernath Gupta
 
Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_moduleSuresh Mishra
 
Computer Software Testing Basics introduced.ppt
Computer Software Testing Basics introduced.pptComputer Software Testing Basics introduced.ppt
Computer Software Testing Basics introduced.pptTrevorChinguwo
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life CycleUdayakumar Sree
 
want to contact me login to www.stqa.org
want to contact me login to www.stqa.orgwant to contact me login to www.stqa.org
want to contact me login to www.stqa.orgnazeer pasha
 
1 testing fundamentals
1 testing fundamentals1 testing fundamentals
1 testing fundamentalsAsmaa Matar
 
IT8076 – Software Testing Intro
IT8076 – Software Testing IntroIT8076 – Software Testing Intro
IT8076 – Software Testing IntroJohnSamuel280314
 
I ntroduction to software testing part1
I ntroduction to software testing part1I ntroduction to software testing part1
I ntroduction to software testing part1Prachi Sasankar
 

Ähnlich wie NG_TEST_SR_Presentation (20)

ISTQBCH foundation level chapter 01 fundamentals of testing
ISTQBCH foundation level chapter 01 fundamentals of testingISTQBCH foundation level chapter 01 fundamentals of testing
ISTQBCH foundation level chapter 01 fundamentals of testing
 
Software testing overview subbu
Software testing overview subbuSoftware testing overview subbu
Software testing overview subbu
 
ISTQBCH2.ppt
ISTQBCH2.pptISTQBCH2.ppt
ISTQBCH2.ppt
 
ISTQBCH2.ppt
ISTQBCH2.pptISTQBCH2.ppt
ISTQBCH2.ppt
 
Software engineering quality assurance and testing
Software engineering quality assurance and testingSoftware engineering quality assurance and testing
Software engineering quality assurance and testing
 
AiTi Education Software Testing Session 01 a
AiTi Education Software Testing Session 01 aAiTi Education Software Testing Session 01 a
AiTi Education Software Testing Session 01 a
 
ISTQB Foundation - Chapter 2
ISTQB Foundation - Chapter 2ISTQB Foundation - Chapter 2
ISTQB Foundation - Chapter 2
 
ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2ISTQB, ISEB Lecture Notes- 2
ISTQB, ISEB Lecture Notes- 2
 
Risk based testing and random testing
Risk based testing and random testingRisk based testing and random testing
Risk based testing and random testing
 
ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2ISTQB / ISEB Foundation Exam Practice - 2
ISTQB / ISEB Foundation Exam Practice - 2
 
Less01 1 introduction_module
Less01 1 introduction_moduleLess01 1 introduction_module
Less01 1 introduction_module
 
Fundamentals of Testing Section 1/6
Fundamentals of Testing   Section 1/6Fundamentals of Testing   Section 1/6
Fundamentals of Testing Section 1/6
 
Istqb foundation level day 1
Istqb foundation level   day 1Istqb foundation level   day 1
Istqb foundation level day 1
 
Computer Software Testing Basics introduced.ppt
Computer Software Testing Basics introduced.pptComputer Software Testing Basics introduced.ppt
Computer Software Testing Basics introduced.ppt
 
Software Testing Life Cycle
Software Testing Life CycleSoftware Testing Life Cycle
Software Testing Life Cycle
 
Istqb v.1.2
Istqb v.1.2Istqb v.1.2
Istqb v.1.2
 
want to contact me login to www.stqa.org
want to contact me login to www.stqa.orgwant to contact me login to www.stqa.org
want to contact me login to www.stqa.org
 
1 testing fundamentals
1 testing fundamentals1 testing fundamentals
1 testing fundamentals
 
IT8076 – Software Testing Intro
IT8076 – Software Testing IntroIT8076 – Software Testing Intro
IT8076 – Software Testing Intro
 
I ntroduction to software testing part1
I ntroduction to software testing part1I ntroduction to software testing part1
I ntroduction to software testing part1
 

Mehr von techweb08

Sample Presentation Asset
Sample Presentation AssetSample Presentation Asset
Sample Presentation Assettechweb08
 
Presentation for test
Presentation for testPresentation for test
Presentation for testtechweb08
 
NG Test - Presentation
NG Test - PresentationNG Test - Presentation
NG Test - Presentationtechweb08
 
NG_TEST_Presentation_0510
NG_TEST_Presentation_0510NG_TEST_Presentation_0510
NG_TEST_Presentation_0510techweb08
 
NG_TEST_PRESENTATION
NG_TEST_PRESENTATIONNG_TEST_PRESENTATION
NG_TEST_PRESENTATIONtechweb08
 
NGTEST - presentation title - 041219
NGTEST - presentation title - 041219NGTEST - presentation title - 041219
NGTEST - presentation title - 041219techweb08
 
ngtest-presen-0419
ngtest-presen-0419ngtest-presen-0419
ngtest-presen-0419techweb08
 
ngtest_presentation_0418
ngtest_presentation_0418ngtest_presentation_0418
ngtest_presentation_0418techweb08
 
NGTEST_Presentation
NGTEST_PresentationNGTEST_Presentation
NGTEST_Presentationtechweb08
 
Next Gen - case study
Next Gen - case studyNext Gen - case study
Next Gen - case studytechweb08
 
Next Gen Testing Asset
Next Gen Testing AssetNext Gen Testing Asset
Next Gen Testing Assettechweb08
 
Reducing network complexity and boosting performance with IRF technology
Reducing network complexity and boosting performance with IRF technologyReducing network complexity and boosting performance with IRF technology
Reducing network complexity and boosting performance with IRF technologytechweb08
 
Test DB user
Test DB userTest DB user
Test DB usertechweb08
 
test validation
test validationtest validation
test validationtechweb08
 

Mehr von techweb08 (20)

Sample Presentation Asset
Sample Presentation AssetSample Presentation Asset
Sample Presentation Asset
 
testwp2
testwp2testwp2
testwp2
 
testwp1
testwp1testwp1
testwp1
 
Presentation for test
Presentation for testPresentation for test
Presentation for test
 
NG Test - Presentation
NG Test - PresentationNG Test - Presentation
NG Test - Presentation
 
NG_TEST_Presentation_0510
NG_TEST_Presentation_0510NG_TEST_Presentation_0510
NG_TEST_Presentation_0510
 
NG_TEST_PRESENTATION
NG_TEST_PRESENTATIONNG_TEST_PRESENTATION
NG_TEST_PRESENTATION
 
NGTEST - presentation title - 041219
NGTEST - presentation title - 041219NGTEST - presentation title - 041219
NGTEST - presentation title - 041219
 
ngtest-presen-0419
ngtest-presen-0419ngtest-presen-0419
ngtest-presen-0419
 
ngtest_presentation_0418
ngtest_presentation_0418ngtest_presentation_0418
ngtest_presentation_0418
 
test_wp-4
test_wp-4test_wp-4
test_wp-4
 
test_wp-4
test_wp-4test_wp-4
test_wp-4
 
test_wp-4
test_wp-4test_wp-4
test_wp-4
 
test_wp-4
test_wp-4test_wp-4
test_wp-4
 
NGTEST_Presentation
NGTEST_PresentationNGTEST_Presentation
NGTEST_Presentation
 
Next Gen - case study
Next Gen - case studyNext Gen - case study
Next Gen - case study
 
Next Gen Testing Asset
Next Gen Testing AssetNext Gen Testing Asset
Next Gen Testing Asset
 
Reducing network complexity and boosting performance with IRF technology
Reducing network complexity and boosting performance with IRF technologyReducing network complexity and boosting performance with IRF technology
Reducing network complexity and boosting performance with IRF technology
 
Test DB user
Test DB userTest DB user
Test DB user
 
test validation
test validationtest validation
test validation
 

NG_TEST_SR_Presentation

  • 1. Software Testing ISEB Foundation Certificate Course Principles of Testing 1 Principles 2 Lifecycle 3 Static testing 4 Dynamic test 5 Management 6 Tools techniques
  • 2. Principles 1 2 3 ISEB Foundation Certificate Course 4 5 6 Contents Why testing is necessary Fundamental test process Psychology of testing Re-testing and regression testing Expected results Prioritisation of tests
  • 3. Testing terminology s No generally accepted set of testing definitions used world wide s New standard BS 7925-1 - Glossary of testing terms (emphasis on component testing) - most recent - developed by a working party of the BCS SIGIST - adopted by the ISEB
  • 4. What is a “bug”? s Error: a human action that produces an incorrect result s Fault: a manifestation of an error in software - also known as a defect or bug - if executed, a fault may cause a failure s Failure: deviation of the software from its expected delivery or service - (found defect) Failure is an event; fault is a state of the software, caused by an error
  • 5. Error - Fault - Failure A person makes an error ... … that creates a fault in the software ... … that can cause a failure in operation
  • 6. Reliability versus faults s Reliability: the probability that software will not cause the failure of the system for a specified time under specified conditions - Can a system be fault-free? (zero faults, right first time) - Can a software system be reliable but still have faults? - Is a “fault-free” software application always reliable?
  • 7. Why do faults occur in software? s software is written by human beings - who know something, but not everything - who have skills, but aren’t perfect - who do make mistakes (errors) s under increasing pressure to deliver to strict deadlines - no time to check but assumptions may be wrong - systems may be incomplete s if you have ever written software ...
  • 8. What do software faults cost? s huge sums - Ariane 5 ($7billion) - Mariner space probe to Venus ($250m) - American Airlines ($50m) s very little or nothing at all - minor inconvenience - no visible or physical detrimental impact s software is not “linear”: - small input may have very large effect
  • 9. Safety-critical systems s software faults can cause death or injury - radiation treatment kills patients (Therac-25) - train driver killed - aircraft crashes (Airbus & Korean Airlines) - bank system overdraft letters cause suicide
  • 10. So why is testing necessary? - because software is likely to have faults - to learn about the reliability of the software - to fill the time between delivery of the software and the release date - to prove that the software has no faults - because testing is included in the project plan - because failures can be very expensive - to avoid being sued by customers - to stay in business
  • 11. Why not just "test everything"? Avr. 4 menus 3 options / menu system has Average: 10 fields / screen 20 screens 2 types input / field (date as Jan 3 or 3/1) (number as integer or decimal) Around 100 possible values Total for 'exhaustive' testing: 20 x 4 x 3 x 10 x 2 x 100 = 480,000 tests If 1 second per test, 8000 mins, 133 hrs, 17.7 days (not counting finger trouble, faults or retest) 10 secs = 34 wks, 1 min = 4 yrs, 10 min = 40 yrs
  • 12. Exhaustive testing? s What is exhaustive testing? - when all the testers are exhausted - when all the planned tests have been executed - exercising all combinations of inputs and preconditions s How much time will exhaustive testing take? - infinite time - not much time - impractical amount of time
  • 13. How much testing is enough? - it’s never enough - when you have done what you planned - when your customer/user is happy - when you have proved that the system works correctly - when you are confident that the system works correctly - it depends on the risks for your system
  • 14. How much testing? s It depends on RISK - risk of missing important faults - risk of incurring failure costs - risk of releasing untested or under-tested software - risk of losing credibility and market share - risk of missing a market window - risk of over-testing, ineffective testing
  • 15. So little time, so much to test .. s test time will always be limited s use RISK to determine: - what to test first - what to test most - how thoroughly to test each item } i.e. where to place emphasis - what not to test (this time) s use RISK to - allocate the time available for testing by prioritising testing ...
  • 16. Most important principle Prioritise tests so that, whenever you stop testing, you have done the best testing in the time available.
  • 17. Testing and quality s testing measures software quality s testing can find faults; when they are removed, software quality (and possibly reliability) is improved s what does testing test? - system function, correctness of operation - non-functional qualities: reliability, usability, maintainability, reusability, testability, etc.
  • 18. Other factors that influence testing s contractual requirements s legal requirements s industry-specific requirements - e.g. pharmaceutical industry (FDA), compiler standard tests, safety-critical or safety-related such as railroad switching, air traffic control It is difficult to determine how much testing is enough but it is not impossible
  • 19. Principles 1 2 3 ISEB Foundation Certificate Course 4 5 6 Contents Why testing is necessary Fundamental test process Psychology of testing Re-testing and regression testing Expected results Prioritisation of tests
  • 20. Test Planning - different levels Test Policy Company level Test Strategy High Level Project level (IEEE 829) High Level Test Plan (one for each project) Test Plan Detailed Test stage level (IEEE 829) Detailed Detailed TestDetailed Plan (one for each stage within a project, Test Plan Test Plan e.g. Component, System, etc.) Test Plan
  • 21. The test process Planning (detailed level) check specification execution recording completion
  • 22. Test planning s how the test strategy and project test plan apply to the software under test s document any exceptions to the test strategy - e.g. only one test case design technique needed for this functional area because it is less critical s other software needed for the tests, such as stubs and drivers, and environment details s set test completion criteria
  • 23. Test specification Planning (detailed level) check specification execution recording completion Identify conditions Design test cases Build tests
  • 24. A good test case Finds faults s effective s exemplary Represents others s evolvable Easy to maintain s economic Cheap to use
  • 25. Test specification s test specification can be broken down into three distinct tasks: 1. identify: determine ‘what’ is to be tested (identify test conditions) and prioritise 2. design: determine ‘how’ the ‘what’ is to be tested (i.e. design test cases) 3. build: implement the tests (data, scripts, etc.)
  • 26. Task 1: identify conditions (determine ‘what’ is to be tested and prioritise) s list the conditions that we would like to test: - use the test design techniques specified in the test plan - there may be many conditions for each system function or attribute - e.g. • “life assurance for a winter sportsman” • “number items ordered > 99” • “date = 29-Feb-2004” s prioritise the test conditions - must ensure most important conditions are covered
  • 27. Selecting test conditions Importance Best set $ First set Time
  • 28. Task 2: design test cases (determine ‘how’ the ‘what’ is to be tested) s design test input and test data - each test exercises one or more test conditions s determine expected results - predict the outcome of each test case, what is output, what is changed and what is not changed s design sets of tests - different test sets for different objectives such as regression, building confidence, and finding faults
  • 29. Designing test cases Most important test conditions Least important Importance test conditions Test cases Time
  • 30. Task 3: build test cases (implement the test cases) s prepare test scripts - less system knowledge tester has the more detailed the scripts will have to be - scripts for tools have to specify every detail s prepare test data - data that must exist in files and databases at the start of the tests s prepare expected results - should be defined before the test is executed
  • 31. Test execution Planning (detailed level) check specification execution recording completion
  • 32. Execution s Execute prescribed test cases - most important ones first - would not execute all test cases if • testing only fault fixes • too many faults found by early test cases • time pressure - can be performed manually or automated
  • 33. Test recording Planning (detailed level) check specification execution recording completion
  • 34. Test recording 1 s The test record contains: - identities and versions (unambiguously) of • software under test • test specifications s Follow the plan - mark off progress on test script - document actual outcomes from the test - capture any other ideas you have for new test cases - note that these records are used to establish that all test activities have been carried out as specified
  • 35. Test recording 2 s Compare actual outcome with expected outcome. Log discrepancies accordingly: - software fault - test fault (e.g. expected results wrong) - environment or version fault - test run incorrectly s Log coverage levels achieved (for measures specified as test completion criteria) s After the fault has been fixed, repeat the required test activities (execute, design, plan)
  • 36. Check test completion Planning (detailed level) check specification execution recording completion
  • 37. Check test completion s Test completion criteria were specified in the test plan s If not met, need to repeat test activities, e.g. test specification to design more tests Coverage too low check specification execution recording completion Coverage OK
  • 38. Test completion criteria s Completion or exit criteria apply to all levels of testing - to determine when to stop - coverage, using a measurement technique, e.g. • branch coverage for unit testing • user requirements • most frequently used transactions - faults found (e.g. versus expected) - cost or time
  • 39. Governs the Comparison of tasks quality of tests Planning Intellectual one-off Specification activity Good to activity automate Execute repeated many times Recording Clerical
  • 40. Principles 1 2 3 ISEB Foundation Certificate Course 4 5 6 Contents Why testing is necessary Fundamental test process Psychology of testing Re-testing and regression testing Expected results Prioritisation of tests
  • 41. Why test? s build confidence s prove that the software is correct s demonstrate conformance to requirements s find faults s reduce costs s show system meets user needs s assess the software quality
  • 42. Confidence Confidence Fault found Faults found Time No faults found = confidence?
  • 43. Assessing software quality You think you are here Many High Few Few Faults Faults Faults Low High Software Quality Few Test Few Faults Quality Faults You may be here Low
  • 44. A traditional testing approach s Show that the system: - does what it should - doesn't do what it shouldn't Goal: show working Success: system works Fastest achievement: easy test cases Result: faults left in
  • 45. A better testing approach s Show that the system: - does what it shouldn't - doesn't do what it should Goal: find faults Success: system fails Fastest achievement: difficult test cases Result: fewer faults left in
  • 46. The testing paradox Purpose of testing: to find faults Finding faults destroys confidence Purpose of testing: destroy confidence Purpose of testing: build confidence The best way to build confidence is to try to destroy it
  • 47. Who wants to be a tester? s A destructive process s Bring bad news (“your baby is ugly”) s Under worst time pressure (at the end) s Need to take a different view, a different mindset (“What if it isn’t?”, “What could go wrong?”) s How should fault information be communicated (to authors and managers?)
  • 48. Tester’s have the right to: - accurate information about progress and changes - insight from developers about areas of the software - delivered code tested to an agreed standard - be regarded as a professional (no abuse!) - find faults! - challenge specifications and test plans - have reported faults taken seriously (unreproducible) - make predictions about future fault levels - improve your own testing process
  • 49. Testers have responsibility to: - follow the test plans, scripts etc. as documented - report faults objectively and factually (no abuse!) - check tests are correct before reporting s/w faults - remember it is the software, not the programmer, that you are testing - assess risk objectively - prioritise what you report - communicate the truth
  • 50. Independence s Test your own work? - find 30% - 50% of your own faults - same assumptions and thought processes - see what you meant or want to see, not what is there - emotional attachment • don’t want to find faults • actively want NOT to find faults
  • 51. Levels of independence s None: tests designed by the person who wrote the software s Tests designed by a different person s Tests designed by someone from a different department or team (e.g. test team) s Tests designed by someone from a different organisation (e.g. agency) s Tests generated by a tool (low quality tests?)
  • 52. Principles 1 2 3 ISEB Foundation Certificate Course 4 5 6 Contents Why testing is necessary Fundamental test process Psychology of testing Re-testing and regression testing Expected results Prioritisation of tests
  • 53. Re-testing after faults are fixed s Run a test, it fails, fault reported s New version of software with fault “fixed” s Re-run the same test (i.e. re-test) - must be exactly repeatable - same environment, versions (except for the software which has been intentionally changed!) - same inputs and preconditions s If test now passes, fault has been fixed correctly - or has it?
  • 54. Re-testing (re-running failed tests) New faults introduced by the first fault fix not found during re-testing x x x x  Fault now fixed Re-test to check
  • 55. Regression test s to look for any unexpected side-effects x x x x  Can’t guarantee to find them all
  • 56. Regression testing 1 s misnomer: "anti-regression" or "progression" s standard set of tests - regression test pack s at any level (unit, integration, system, acceptance) s well worth automating s a developing asset but needs to be maintained
  • 57. Regression testing 2 s Regression tests are performed - after software changes, including faults fixed - when the environment changes, even if application functionality stays the same - for emergency fixes (possibly a subset) s Regression test suites - evolve over time - are run often - may become rather large
  • 58. Regression testing 3 s Maintenance of the regression test pack - eliminate repetitive tests (tests which test the same test condition) - combine test cases (e.g. if they are always run together) - select a different subset of the full regression suite to run each time a regression test is needed - eliminate tests which have not found a fault for a long time (e.g. old fault fix tests)
  • 59. Regression testing and automation s Test execution tools (e.g. capture replay) are regression testing tools - they re-execute tests which have already been executed s Once automated, regression tests can be run as often as desired (e.g. every night) s Automating tests is not trivial (generally takes 2 to 10 times longer to automate a test than to run it manually s Don’t automate everything - plan what to automate first, only automate if worthwhile
  • 60. Principles 1 2 3 ISEB Foundation Certificate Course 4 5 6 Contents Why testing is necessary Fundamental test process Psychology of testing Re-testing and regression testing Expected results Prioritisation of tests
  • 61. Expected results s Should be predicted in advance as part of the test design process - ‘Oracle Assumption’ assumes that correct outcome can be predicted. s Why not just look at what the software does and assess it at the time? - subconscious desire for the test to pass - less work to do, no incident report to write up - it looks plausible, so it must be OK - less rigorous than calculating in advance and comparing
  • 62. A test expected inputs outputs A Program: 3 6? Read A IF (A = 8) THEN PRINT (“10”) ELSE 8 10? PRINT (2*A) Source: Carsten Jorgensen, Delta, Denmark
  • 63. Principles 1 2 3 ISEB Foundation Certificate Course 4 5 6 Contents Why testing is necessary Fundamental test process Psychology of testing Re-testing and regression testing Expected results Prioritisation of tests
  • 64. Prioritising tests s We can’t test everything s There is never enough time to do all the testing you would like s So what testing should you do?
  • 65. Most important principle Prioritise tests so that, whenever you stop testing, you have done the best testing in the time available.
  • 66. How to prioritise? s Possible ranking criteria (all risk based) - test where a failure would be most severe - test where failures would be most visible - test where failures are most likely - ask the customer to prioritise the requirements - what is most critical to the customer’s business - areas changed most often - areas with most problems in the past - most complex areas, or technically critical
  • 67. Principles 1 2 3 ISEB Foundation Certificate Course 4 5 6 Summary: Key Points Testing is necessary because people make errors The test process: planning, specification, execution, recording, checking completion Independence & relationships are important in testing Re-test fixes; regression test for the unexpected Expected results from a specification in advance Prioritise to do the best testing in the time you have