Quality Testing

Quality is delighting customers

Hi can anyone please explain Statement Coverage and Decision Coverage in simplified terms.

I'm preparing for an ISTQB exam, but struggling with the concept of Working out Statement Coverage and Decision Coverage from pseudo code.

Views: 480

Reply to This

Replies to This Discussion

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

  • It verifies what the written code is expected to do and not to do.
  • It measures the quality of code written.
  • It checks the flow of different paths in the program also ensure whether those paths are tested or not.

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 .


TTWT Magazine





© 2022   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service