Wednesday, 3 February 2016

MT - 66 - Test Effectiveness and Test Efficiency

Test Efficiency :
The ratio of the effective or useful output to the total input in any system.Therefore, efficiency is an attribute which means to maximize the useful output for a given input reducing wastage or losses. Efficiency cannot be more than a 100%, in a sense that a 100% efficient system will have zero losses. Test efficiency is not only about test execution alone, but all or most of test activities, like test planning, comprehension, test cases creation, review, execution, defect tracking and closure. TE is not just one single derivation but a number of calculations at each phase and activity of testing. What activities or phases one is interested in, what is particularly measured, depends on lot of other things, the type of project, complexity, availability of resources, the situation, customer requirement etc.

Test Efficiency = (Test Defects / (Test Defects + Acceptance Defects)) * 100

OR
Testing Efficiency = (No. of defects Resolved / Total No. of Defects Submitted)* 100

Test defects = Unit + Integration + System defects
Acceptance Defects = Bugs found by the customer


Test Effectiveness : 
Effectiveness means the capability of producing an effect.Test effectiveness is to ensure quality and close the two quality gaps, namely producer’s quality gap and customer’s quality gap. As definition of quality goes, quality is both process and product quality which is meeting customer requirements and conformance to product specification. 

Test Effectiveness = ((Defects removed in a phase) / (Defect injected + Defect escaped)) * 100

OR

Test effectiveness = Number of defects found divided by number of test cases executed.

OR


Test Effectiveness = Loss due to problems / Total resources processed by the system

Example :
The table shows the defect origin, on the X, where a defect was injected, where he belongs to? and on the Y, where the defect was detected.



Let us calculate the test effectiveness of the Integration testing activity:
Total number of defects of all origin found during Integration testing activity = 17
Total number of defects existing while entering in IT = (6+15+28) – (35) = 14
Total number of defects injected in the current stage = 14
Effectiveness of IT test phase = Total defects found in this phase/(No of defects existing + injected)

Effectiveness = 17/(14+14 ) * 100 = 60.7%


Difference Between these two : 
- Efficiency - productivity metric and Effectiveness - quality metric!


- Efficiency is a productivity metrics meaning how fast one can do something. Hence Testing efficiency metric can be "No. of test cases executed per hour or per person day".Effectiveness is a quality metrics meaning how good a person is at testing. Hence Testing effectiveness metrics can be "No. of bugs identified by a tester in a given feature / Total no. of bugs identified in that feature".

-Effectiveness - How well the user achieves the goals they set out to achieve using the system (process). 
Efficiency - The resources consumed in order to achieve their goals. 

No comments:

Post a Comment