Professional Documents
Culture Documents
and Executing an
Effective Regression
Test Program
1. Introduction that they cannot tolerate existing fea- new features or other code changes
This paper focuses on the area of tures not working on the new release. are being added.
regression testing. An industry-wide So, regression testing is recognised as
definition of regression test is “retest- being very important, yet it often • Although you may build up a library
ing of a previously tested program fol- remains the test phase given the least of regression tests over time, and this
lowing modification to ensure that attention in the planning of test activi- library can be quite extensive, they
faults have not been introduced or ties. Too often, organizations take the can also prove troublesome as they
uncovered as a result of the changes easy way out and regression test phases contain both redundant test suites &
made.” simply consist of reruns of existing test test cases which themselves contain
suites in the hope that these will catch errors. There can be a huge overhead
We have adapted this slightly for the all the problems. This approach has a in maintaining this library of regres-
type of testing we perform to give the number of potential flaws: sion suites and test cases.
following definition: “a test designed to
confirm that an existing feature still • If you are dealing with a large com- So, an unplanned approach to regres-
performs correctly after any software plex system, you can end up with sion testing can lead to inefficient use of
modifications.” thousands upon thousands of regres- resources. If you take the time to plan
sion tests as you continue to add fea- your regression test program, there are a
Both these definitions provide the read- ture test suites from previous releas- number of questions you need to ask:
er with a sense of the importance of es to the regression program for your
regression testing. It is of no benefit current release. This is all well and • What do I need to test?
providing your valued customer with good if you have a fully automated • How long is it going to take?
lots of new and exciting features if you and stable test environment, which • What resources are required?
manage to break features they have allows you to run all these tests • What tools are required?
been using successfully for the last quickly without using a lot of • Are there any other special
number of years. In fact, some feedback resources. requirements?
received from a customer several years
back indicated that they expect to have • You may not have the required cov- The first question on this list is the most
problems with new features when they erage with your existing test suites to important one to answer, as it will help
first get a new release of software, but find problems being introduced as answer the remaining questions. Apart
5. The Benefits
This new approach to regression testing
has just been used on our current release
of software, and we have seen the fol-
lowing benefits: