Consider the graph:
N = { A, B, C, D }
N0 = { A }
Nf = { A, D }
E = { (A,A), (A,B), (B,C), (B,D), (C,B) }
Also consider the following candidate test paths:
t1 = [ A ]
t2 = [ A,B,D ]
t3 = [ A,B,C,B ]
t4 = [ A,A,A,B,C,B,D]
t5 = [ A,A,B,C,B,C,B,D ]
-
Draw the graph.
Answer: See the graph tool.
-
Identify which candiate test paths that are, in fact, test paths.
Indicate the problem with any paths that are not, in fact, test paths.
Answer: All candidate paths except for t3 are test paths.
The problem with t3 is that it fails to end in a final node.
- List the edge pairs. (You should get 7).
Answer: The edge pairs are:
{ [A,A,A],
[A,A,B],
[A,B,C],
[A,B,D],
[B,C,B],
[C,B,C],
[C,B,D] }
- Which edge pairs does t4 tour directly?
Answer: [A,A,A], [A,A,B], [A,B,C], [B,C,B], and [C,B,D].
- Which edge pairs does t4 tour with sidetrips, but not directly?
Answer: [A,B,D].
- Which edge pairs does t4 tour fail to tour either directly or
with sidetrips?
Answer: [C,B,C].
- List the prime paths. (You should get 6).
Answer:
{ [A A],
[A,B,D],
[A,B,C],
[B,C,B],
[C,B,C],
[C,B,D]}
- Give a minimal set of test paths (from the given set)
that satisfies Prime-Path Coverage (direct tours only).
Answer: There is only one minimal set: {t2, t5}