Branch Testing
This testing is a white box
testing technique used to execute all the branches. This testing is used to
ensure that all possible branches from each decision point are executed at
least once and ensure that all reachable code is executed. It executes individual branches of code. A
branch is a route from a conditional statement. For 100% Coverage of branches we
need to test all branches in a piece of code, we have to get all possible
results from all of the decision statements.
Example:-
Read
p
// ExecutableRead
q
// ExecutableIF
p > q THEN //
Executable Print
"p > q" //
Executable IF
p > 10 THEN // Executable Print
"p > 10" // Executable ENDIFELSE Print
"p =< q" // ExecutableENDIF |
|

Comments
Post a Comment