Q
Problem solve Get help with specific problems with your technologies, process and projects.

Prioritizing software testing on little time

Too many test cases and too little time? Expert Scott Barber explains how to prioritize testing.

Suppose I am testing any Web application and time period is very short and we have a heap of test cases. Which...

test case should we use first, which can make our Web site more secure and reliable?

This question pops up in various forms all the time. It boils down to "We don't have enough time to test everything, so what do we test?" Not having enough time, of course, is not only the status quo for testing software, it is a universal truth for any software that will ever go into production.

Given that, here's my advice.

  1. Start by forgetting that you have any test cases at all.
  2. Make a list (quickly -- remember we don't have enough time to test, so let's not waste what little time we have making lists) of each of the following usage scenarios. I usually limit myself to five on the first pass, but no matter what, move on to the next category as soon as you find yourself thinking about the category you are on. If you have to stop and think, whatever you come up with isn't important enough.
    1. What things will users do most often with this application?
    2. What areas of this application are most likely to contain show-stopping defects?
    3. What parts of this application are critical to the business?
    4. Are any parts of this application governed by legal or regulatory agencies?
    5. What parts of the application would be most embarrassing to the company if broken?
    6. What parts of the application has my boss said must be tested?
  3. Prioritize the list. If you've made the list in a word processor or using note cards, this will take under 60 seconds (if you have to write a new list by hand and you write as slowly as I do, it will probably take a little longer. Here are the rules for prioritizing.
    1. Count the number of times a scenario appears in any of your categories. The more times the scenario appears, the higher the priority.
    2. In case of a tie, 'a' comes before 'b' comes before 'c,' etc.
  4. Now scan your test cases. Note which ones are covered and which ones aren't. On the ones that aren't covered, ask yourself, "Can I live with not testing this?" If the answer is no, add it to the bottom of the list.
  5. Start testing.
  6. If you complete these tests before time is up, do the same exercise again without repeating any usage scenarios. If not, at least you have a defensible list of what you did and did not test and lost all of about 15 minutes of testing time creating that list.

In case you're wondering, this approach is derived from my FIBLOTS heuristic for deciding what usage scenarios to include when developing performance tests. FIBLOTS is an acronym representing the words that complete the sentence "Ensure your performance tests include usage scenarios that are:

  • Frequent
  • Intensive
  • Business critical
  • Legally enforceable
  • Obvious
  • Technically risky
  • Stakeholder mandated."

I guess for functional testing, it would be "Ensure you test usage scenarios that are:

  • Frequent
  • Risky
  • Business critical
  • Legally enforceable
  • Obvious
  • Stakeholder mandated."

Too bad the acronym FRBLOS isn't as easy to remember as FIBLOTS.

 

This was last published in January 2008

Dig Deeper on Software Testing and QA Fundamentals

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchMicroservices

TheServerSide

SearchCloudApplications

SearchAWS

SearchBusinessAnalytics

SearchFinancialApplications

SearchHealthIT

Close