Line Coverage:
Line coverage is the weakest coverage criteria. It requires execution of every line of code at least once.
Statement Coverage:
It requires the execution of all program statements. However, all the statements in a program could be executed without revealing errors even if the program as a whole may be riddles with errors.
Decision Coverage:
For decision coverage, the programmer can use case a. and any of the other three. For decision coverage, the programmer must test once when the condition (we must take the THEN and ELSE parts) is true and once when it is false. It should cover all lines as well as all branches of the program.
Condition Coverage:
It checks each of the ways the condition can be made True or False.
Decision/Condition Coverage:
In this type of coverage both decision as well as condition coverage must be satisfied.
No comments:
Post a Comment