SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 204 | Next

Jonathan Jacky, Margus Veanes, Colin Campbell, Wolfram Schulte

"Model-Based Software Testing and Analysis with C#"

0"), but the client only fails when it receives the message after the first
message with four characters. At least two messages must be sent and received to
expose the defect (where the first message contains more than four characters). Each
of the test cases in the first test suite only send and receive one message, so they
cannot expose the defect.
The single test case in the second test suite does expose the defect, because
two messages are sent and received, and the first message contains more than four
characters.
148 Testing Closed Systems
0 1
A()
2
C()
D()
B()
Figure 8.6. Transition coverage versus path coverage.
The number of messages sent by each test case is a consequence of the traversal
algorithm used by the offline test generator tool, otg. The postman tour algorithm
achieves full transition coverage: every transition in the FSM is taken at least once.
The postman tour is minimal: the total number of transitions in the test suite is the
minumum needed to achieve transition coverage; the algorithm avoids traversing
the same transition more than once, if that is possible. This explains the shapes of
the test suites displayed in Figures 8.1 and 8.2. (In the second test suite, it is pure
luck that the longer message happens to be sent first.)
These examples confirm that minimal transition coverage is not sufficient to
expose some defects.


Pages:
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6