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.
Tags:
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.....?
Regards,
Usha
Statement Coverage and Branch Coverage used in White Box Testing .
thanks Rashmi .
© 2021 Created by Quality Testing.
Powered by