Thursday, 7 August 2014

Define Branch Testing. How branch testing is useful.

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.


Read p                  // Executable
Read q                  // Executable
IF p > q THEN           // Executable
    Print "p > q"       // Executable
    IF p > 10 THEN      // Executable
        Print "p > 10"  // Executable
    Print "p =< q"      // Executable

No comments:

Post a comment

Bookmark Us

Delicious Digg Facebook Favorites More Stumbleupon Twitter