Page 1 of 2
SOFTWARE TESTING AND MAINTENANCE
(return to the appropriate box- ECE 322 A1 – 2
nd floor of DICE building)
Total: 30 points
1. The behavior of a communication software system can be represented in the form of the finite
state machine shown below. The figure shows the corresponding transition probabilities between
Determine an order in which you would like to test individual states. Which transitions would you
like to test first? Justify your answer.
2. Consider the program P with 6 inputs A, B, C, D, E, F and 3 outputs X, Y, and Z. The input
variables assume some values shown in the table below.
B C D E F
Page 2 of 2
A 0, 1, 2, 3
B a, b, c, d, e
C 100, 200
D 7, 8, 9, 10, 11
E Y, N
Consider the input-output testing strategy. Consider the situation when (i) you do not know
functional dependencies among the input and output variables, and (ii) where these dependencies
are known (as shown in the figure below).
B C D E F
What is the number of test cases required when using these two strategies. For (ii) propose a
collection of test cases. In this strategy, how could you minimize the number of test cases; show
3. Given are the following two control flow graphs
How many test cases do you require to complete branch coverage? How do these numbers
compare with the cyclomatic complexity?