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.

5<br />

ReqWork(2, 2)<br />

3<br />

0<br />

1<br />

6<br />

7<br />

ReqSetup(0, 2)<br />

ResSetup(0, 2, Status("Completed"))<br />

ReqWork(1, 2)<br />

ResWork(1, 2, Status("Completed"))<br />

ReqWork(2, 2)<br />

ResWork(1, 2, Status("Completed"))<br />

8<br />

Cancel(1)<br />

10<br />

ResWork(1, 2, Status("Cancelled"))<br />

ResWork(2, 2, Status("Completed"))<br />

ResWork(1, 2, Status("Completed"))<br />

4<br />

2<br />

ResWork(2, 2, Status("Completed"))<br />

ResWork(1, 2, Status("Cancelled"))<br />

ResWork(2, 2, Status("Completed"))<br />

ResWork(1, 2, Status("Completed"))<br />

9<br />

ResWork(1, 2, Status("Completed"))<br />

Figure 14.17. Full exploration of the sample protocol model including the scenarios in Figure 14.16.<br />

Client Server<br />

ReqSetup(0,2)<br />

ResSetup(0,2,Status("Completed"))<br />

ReqWork(1,2)<br />

ReqWork(2,2)<br />

Cancel(1)<br />

ResWork(2,2,Status("Completed"))<br />

ResWork(1,2,Status("Completed"))<br />

Figure 14.18. A valid trace of actions in Figure 14.17.<br />

240<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!