ISTQB Certified Tester Foundation Level
Confirmation testing vs regression testing (ISTQB CTFL)
Confirmation testing checks that an original defect has been fixed, by rerunning the tests that failed because of it or by adding tests for the change. Regression testing checks that a change, including a fix already confirmed, has caused no harm elsewhere. ISTQB's CTFL v4.0 syllabus requires both at every test level where changes are made.
What does confirmation testing check?
It confirms that the original defect is gone. Depending on the risk, the fixed version can be tested by running every test that previously failed because of the defect, and also by adding new tests that cover the changes made for the fix.
When time or money is short, confirmation testing may be limited to repeating the steps that should reproduce the failure and checking that the failure no longer occurs.
What does regression testing check?
It confirms that a change has had no adverse consequences. The change can be a new feature or a fix, including a fix that has already passed confirmation testing. The harm could be in the component that changed, in other components of the same system, or in other connected systems. Regression testing can also concern the environment, not only the test object.
The syllabus advises doing an impact analysis first. It identifies the areas the change might touch, and so how much regression testing is needed.
Regression suites are run many times and usually grow with every iteration or release, which makes regression testing a strong candidate for automation. Start automating early in the project. Where continuous integration is used, it is good practice to include automated regression tests, possibly at several test levels.
How does maintenance testing use them?
Testing a change to an operational system has two parts: evaluating whether the change was implemented successfully, and checking for regressions in the parts of the system that did not change, which is usually most of it. Impact analysis may be done before the change is made, to help decide whether to make it at all.
Three things usually set how much maintenance testing is done: how risky the change is, how large the change is, and how large the existing system is.
Three kinds of trigger exist. Modifications: planned enhancements, corrective changes and hot fixes. Upgrades or migrations, where the operational environment changes: these can call for tests of the new environment and of data conversion. Retirement: this can call for testing of data archiving, and of the procedures for restoring and retrieving archived data.
Where the exam catches people
- Calling any rerun of a test regression testing: rerunning the test that failed because of the fixed defect is confirmation testing. Rerunning tests after a different change to look for side effects is regression testing.
- Believing a fix that passed confirmation testing needs no more testing: regression testing still checks that the fix harmed nothing else.
- Believing regression testing looks only at the changed component: side effects can appear in other components and in connected systems.
- Running the whole regression suite by default when time is short: impact analysis comes first and shows which parts could be affected.
- Believing confirmation and regression testing belong to system testing only: they are needed at every test level where defects are fixed or changes are made.