Do you like this page?

Saturday, 5 November 2011

what is Function Coverage Testing?

The requirement of a product is mapped into functions during the design phase and each of the functions form a logical unit. the advantages of function coverage are
  • functions are easier to identify in a program hence it is easy to write test case for it.
  • it is easier to achieve 100% function coverage than any other coverage
we can also measure how many times a given function is called.This will indicate which function is used most often and hence these functions become the target of any performance testing.This will improve the performance as well as quality of the product. the formula for Function Coverage:-

total no.of functions exercised
            _________________________      *100
     
total no.of functions in a program

1 comment: