Step 3: Choose a set of basis paths—Determining the predicate nodes can help
identify a set of basis paths. If test cases can be designed to cover the basis
path set, it will result in complete decision (and statement) coverage of
the code. Each basis path that you select should, in effect, test at least one
new untested edge; in other words, it should traverse at least one new edge.
Otherwise, it is considered a redundant path and does not belong in the basis
set. This aids in eliminating redundant testing and ensures validity of each
test case. Repeat step 3 till all nodes are explored.
1
2
3
4
6
7
5
8
These are the paths ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.