Metrics based approach as it indicates from its name depends on the data accimulated over time from the use and development of the software. It is not complete without an expert based approach as they help each others to evaluate best possible test results.

Expert based approach depents on the testing team and their expertese. Having multi-talented and well experienced test experts in the team yield most test products possible. Do not forget that there is no superiority of one approach to another. They are like two feet to move together to walk properly.

According to ISTQB Foundation, there are two main approaches to test estimation in software testing: the metrics-based approach and the expert-based approach. Let’s explore each of these approaches, along with examples and use cases.

Metrics-Based Approach

The metrics-based approach uses historical data and quantitative measures to estimate testing efforts.

Analogy: Cooking from a Recipe
Think of this approach as following a detailed recipe. Just as a recipe specifies exact quantities of ingredients and cooking times based on past experiences, the metrics-based approach uses data from previous projects to estimate testing efforts.

Examples:

  • Using the number of test cases executed per day in past projects to estimate how long it will take to run a new set of tests
  • Calculating defect density (defects per line of code) from previous projects to predict the number of defects in a new project

Use Cases:

  1. Large organizations with extensive historical data
  2. Projects similar to ones completed in the past
  3. When objective, data-driven estimates are required for budgeting or resource allocation

Expert-Based Approach

The expert-based approach relies on the judgment and experience of testing professionals to estimate testing efforts.

Analogy: Wine Tasting
This approach is like a sommelier tasting wine. Just as an experienced wine expert can assess a wine’s quality based on their knowledge and experience, testing experts can estimate testing efforts based on their understanding of the project and past experiences.

Examples:

  • A senior tester estimating how long it will take to test a new feature based on their experience with similar features
  • A test manager predicting the number of testers needed for a project based on their understanding of the project’s complexity

Use Cases:

  1. New or unique projects where historical data isn’t available
  2. Small teams or organizations without extensive metrics
  3. When quick estimates are needed without time for detailed analysis

Comparing the Approaches

AspectMetrics-BasedExpert-Based
BasisHistorical dataPersonal experience
AccuracyGenerally more accurate for similar projectsCan be more accurate for unique projects
FlexibilityLess flexible, relies on existing dataMore flexible, can adapt to new situations
Time to produceCan be time-consuming to gather and analyze dataCan be quicker, especially for experienced professionals
ObjectivityMore objectiveMore subjective

Combining the Approaches

In practice, many organizations use a combination of both approaches for more accurate estimations. For example:

  1. Use metrics-based approach to get an initial estimate
  2. Have experts review and adjust the estimate based on their knowledge of the specific project
  3. Compare the metrics-based and expert-based estimates to identify and resolve any significant discrepancies

By combining these approaches, teams can leverage both historical data and expert judgment to create more reliable test estimates.Remember, regardless of the approach used, test estimation is an ongoing process. As the project progresses and more information becomes available, estimates should be regularly reviewed and adjusted to ensure they remain accurate and useful for project planning and management.

Leave a Reply

Your email address will not be published. Required fields are marked *