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.

Overview 45<br />

?Message ’100.0’, Message, OK<br />

CheckMessage ’100.0’, compare to 99.9, OK<br />

In this run, OutOfRangeMessageWhenIdle, the controller carries out a calibrate command<br />

using an out-of-range temperature value. The message carrying this value was<br />

late; it arrived after the time-out expired, and was not checked.<br />

?Timeout, Timeout, Error<br />

Reset<br />

?Message ’99.9’, Message, Error<br />

CheckMessage ’99.9’, compare to 99.9, OK<br />

?Timeout, Timeout, OK<br />

Poll<br />

?Timeout, Message, OK<br />

ReportLostMessage<br />

?Message ’999.9’, Timeout, OK<br />

?Command, Timeout, OK<br />

Calibrate ’999.9’<br />

In this run, LostMessageWhenIdle, the controller reaches a deadlocks. The sensor<br />

does not reply to the initial reset command. The controller does not restart the timer;<br />

polling never begins. The sensor status never becomes OK, so calibrate commands<br />

are never carried out.<br />

?Timeout, Timeout, Error<br />

Reset<br />

?Timeout, Message, Error<br />

?Command, Message, Error<br />

?Command, Message, Error<br />

In this run, InitialOutOfRangeMessage, the controller cycles without making<br />

progress. It keeps sending reset commands but the sensor status never becomes<br />

OK. The first message in response to the initial reset command is out-of-range, so<br />

subsequent within-range messages are never accepted, and the calibrate command<br />

can never be carried out.<br />

?Timeout, Timeout, Error<br />

Reset<br />

?Message ’999.9’, Message, Error<br />

CheckMessage ’999.9’, compare to 999.9, OK<br />

?Timeout, Timeout, OK<br />

Poll<br />

?Message ’99.9’, Message, OK<br />

more free ebooks download links at:<br />

http://www.ebook-x.com

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

Saved successfully!

Ooh no, something went wrong!