Quality is delighting customers
Statement Coverage or Code Coverage or Line Coverage is a metric used in White Box Testing where we can identify the statements executed and where the code is not executed cause of blockage. In this process each and every line of the code needs to be checked and executed.
Some advantages of Statement Coverage / Code Coverage / Line Coverage are
To Calculate Statement Coverage,
Statement Coverage = Statements Tested / Total No. of Statements.
Branch Coverage or Decision Coverage metric is used to check the volume of testing done in all components. This process is used to ensure whether all the code is executed by verifying every branch or decision outcome (if and while statements) by executing atleast one time, so that no branches lead to the failure of the application.
To Calculate Branch Coverage,
Branch Coverage = Tested Decision Outcomes / Total Decision Outcomes.
hi satish reddy,
gud answer but when we can calculate the statement coverage and branch coverage to test our web appication using manual testing.....?
Statement Coverage and Branch Coverage used in White Box Testing .
hi.. nice explanation...
thanks Rashmi .