Thursday, 7 August 2014

Posted by Sandeep kr | 00:13 | No comments


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                  // Executable
Read q                  // Executable
IF p > q THEN           // Executable
    Print "p > q"       // Executable
    IF p > 10 THEN      // Executable
        Print "p > 10"  // Executable
    ENDIF
ELSE
    Print "p =< q"      // Executable
ENDIF














0 comments:

Post a Comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter