27.07.2013 Views

2 Why We Need Model-Based Testing

2 Why We Need Model-Based Testing

2 Why We Need Model-Based Testing

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

75<br />

Overview 49<br />

TimeoutMsgLate()<br />

76<br />

73<br />

Message("999.9") Command() TimeoutMsgLost()<br />

74<br />

ReportLostMessage()<br />

102<br />

78<br />

83<br />

105<br />

107<br />

6<br />

Poll()<br />

77<br />

Calibrate()<br />

Message("999.9")<br />

72<br />

7<br />

10<br />

2<br />

3<br />

0<br />

Timeout() Command()<br />

Reset()<br />

Message("99.9") Command()<br />

CheckMessage()<br />

Timeout() Command()<br />

71<br />

Message("99.9") TimeoutMsgLost()<br />

Message("99.9") TimeoutMsgLate() Message("999.9")<br />

100<br />

101<br />

104<br />

NoHandler()<br />

Command() Timeout()<br />

Command()<br />

Figure 3.9. Portion of controller FSM showing path to unsafe state.<br />

106<br />

99<br />

4<br />

1<br />

TimeoutMsgLate()<br />

5<br />

TimeoutMsgLost()<br />

out-of-range. Figure 3.8 shows the entire FSM; the filled-in ovals are the unsafe<br />

states. (It is not necessary to search the graph visually to find out whether there are<br />

any unsafe states; the tool writes a message to report that it finds four of them.)<br />

Figure 3.9 shows the portion of the FSM that includes the path to an unsafe state<br />

traversed by the OutOfRangeMessageWhenIdle run.<br />

more free ebooks download links at:<br />

http://www.ebook-x.com<br />

8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!