Home > Ask the Software Quality Experts > Software Testing and Quality Assurance Questions & Answers > Regression testing: How to select test cases
Ask The Software Quality Expert: Questions & Answers
EMAIL THIS

Regression testing: How to select test cases

Karen N. Johnson EXPERT RESPONSE FROM: Karen N. Johnson

Pose a Question
Other Software Quality Categories
Meet all Software Quality Experts
Become an Expert for this site


Software quality news and advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


>
QUESTION POSED ON: 10 April 2008
I have a question regarding selecting the test cases for the regression testing. The software that I currently have has negative test cases and positive test cases. However when designing a regression test script, will it be sufficient to only select the positive test cases?


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
Software regression testing
Software Testing Ezines
When should regression testing occur in an automated test plan?
Defining core software regression tests
How to overcome lackluster software quality through testing
How to approach regression testing, selection of tools and frameworks
How to achieve peak performance during integration testing
Three software regression testing steps can perfect defect fixes
The difference between functional testing and regression testing
TD Ameritrade gets proactive about application performance problems
Two-minute guide to determining software testing coverage

Software Testing and Quality Assurance
Why do performance testers write new scripts so often?
How to create performance testing workload models
Fixing Web application performance troubleshooting problems
Expert advises on implementation of Selenium IDE for effective software testing
When should regression testing occur in an automated test plan?
Achieving peak performance in integration testing
Getting answers about OpenSTA script problems
Defining core software regression tests
Breaking in functionality on UI application pages
Where to find good methodology guides for software testing

Advice from Karen N. Johnson
How testers can convince developers of software errors
Should you retest closed defects during regression testing?
Eliminating testing environment troubles
Do software testers need developer experience?
Software testing best practices vary by context
Functional testing: Unit testing, integration testing and beyond
Building automated tests for legacy applications
The benefits of user acceptance testing
The scope of user acceptance testing
How to thoroughly test a website without automated tools

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
regression testing  (SearchSoftwareQuality.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary


There are a couple of reasons that answering your question by a metric such as selecting one, two or three cases is difficult as well as potentially dangerous.

Regression coverage isn't a question of the number of cases as much as covering the conditions that 1) ensure functionality works, 2) bugs found have been resolved and 3) a functional area can handle some amount of negative or destructive behavior. Regression testing that addresses all three aspects should guide your testing efforts more than focusing on the number of cases.

Assessing coverage by the number of test cases is difficult -- one case can cover many conditions or one case could provide coverage of only a single condition. If I provided a response by a metric of one case will cover what is needed, you might be underestimating regression testing that such a response would be potentially dangerous or misleading. So addressing the question how I would plan regression testing might be more practical. The answer varies so I'll use a couple of examples.

I recently retested a defect that was related to column sorting on a Web page. For retests, I built a quick grid in Excel outlining the column sorting available going across in columns and a list of pages where sorting was available in rows. I choose to retest all the combinations because sorting had two prior defects reported and the amount of testing needed was not an extensive effort -- so I choose to execute a full retest. If the amount of retest time was extensive and I wasn't able to cover all the conditions, I would have used the same grid to determine the most likely combinations and covered those conditions. If the selection is large, there is a tool that can help you make that assessment See James Bach's tool, Allpairs.

Regression testing resources:
How to conduct regression tests

Regression testing is more than retesting

Automating regression test cases

In another recent experience, I retested a defect and after closing the bug, I allocated time for a test session mixing what would be deemed positive and negative tests. I knew the functional area was an important feature for the product release. After testing several conditions, I referred to the product notes recorded on the team wiki to see if there was anything else I thought I should cover. Sometimes I reflect back to early testing notes to choose retest ideas. Another tip is to talk with developers. Sometimes when I'm retesting an area, I talk with the developers to learn how bugs were resolved, which can affect how I plan retest efforts.

A final comment on regression testing, I tell myself this all the time: Stay fresh, your testing is likely the final view of the product before it ships. As much as you have likely seen multiple internal builds, it's important to try to execute that final test cycle with the freshest view you can.




Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Software Quality - Software Maintenance, Software Requirements, Software Standards
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2006 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts