Monday, April 21, 2008

Effective Software Testing

What is Effective Software Testing?

How do we measure ‘Effectiveness’ of Software Testing?
The effectiveness of Testing can be measured if the goal and purpose of the testing effort is clearly defined. Some of the typical Testing goals are:

  • Testing in each phase of the Development cycle to ensure that the “bugs”(defects) are eliminated at the earliest

  • Testing to ensure no “bugs” creep through in the final product

  • Testing to ensure the reliability of the software

  • Above all testing to ensure that the user expectations are met

The effectiveness of testing can be measured with the degree of success in achieving the above goals.

Steps to Effective Software Testing:

Several factors influence the effectiveness of Software Testing Effort, which ultimately determine the success of the Project.

A) Coverage:

The testing process and the test cases should cover

  • All the scenarios that can occur when using the software application

  • Each business requirement that was defined for the project

  • Specific levels of testing should cover every line of code written for the application

There are various levels of testing which focus on different aspects of the software application. The various levels of testing based on V-Model since we discussed are:

  • Unit Testing

  • Integration Testing

  • System Testing

  • User Acceptance Testing

The goal of each testing level is slightly different thereby ensuring the overall project reliability.

Each Level of testing should provide adequate test coverage.

  • Unit testing should ensure each and every line of code is tested

  • Integration Testing should ensure the components can be integrated and all the interfaces of each component are working correctly

  • System Testing should cover all the “paths”/scenarios possible when using the system

The system testing is done in an environment that is similar to the production environment i.e. the environment where the product will be finally deployed.

There are various types of System Testing possible which test the various aspects of the software application.

B) Test Planning and Process:

To ensure effective Testing Proper Test Planning is important
An Effective Testing Process will comprise of the following steps:

  • Test Strategy and Planning

  • Review Test Strategy to ensure its aligned with the Project Goals

  • Design/Write Test Cases

  • Review Test Cases to ensure proper Test Coverage

  • Execute Test Cases

  • Capture Test Results

  • Track Defects

  • Capture Relevant Metrics

  • Analyze

Having followed the above steps for various levels of testing the product is rolled.

It is not uncommon to see various “bugs”/Defects even after the product is released to production. An effective Testing Strategy and Process helps to minimize or eliminate these defects. The extent to which it eliminates these post-production defects (Design Defects/Coding Defects/etc) is a good measure of the effectiveness of the Testing Strategy and Process.




0 komentar: