18.03.2015 Views

XI Workshop de Testes e Tolerância a Falhas (WTF) - SBRC 2010

XI Workshop de Testes e Tolerância a Falhas (WTF) - SBRC 2010

XI Workshop de Testes e Tolerância a Falhas (WTF) - SBRC 2010

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>XI</strong> <strong>Workshop</strong> <strong>de</strong> <strong>Testes</strong> e Tolerância a <strong>Falhas</strong> 129<br />

In general, the size of the finite state machine mo<strong>de</strong>ls is consi<strong>de</strong>red small. The<br />

biggest mo<strong>de</strong>l has only four states and eleven transitions.<br />

5.2. Generation of Test Cases<br />

Sixteen test cases were generated from the three <strong>de</strong>veloped mo<strong>de</strong>ls. The Tables 3, 4 and<br />

5 show, respectively, some test cases from Normal Behavior Mo<strong>de</strong>l, Specified<br />

Exceptions Behavior Mo<strong>de</strong>l and Sneak Paths Behavior Mo<strong>de</strong>l. A test case is a sequence<br />

of inputs and outputs.<br />

Table 3. Test cases for Normal Behavior Mo<strong>de</strong>l.<br />

CASE NUMBER INPUT OUTPUT<br />

TC_Arrival -<br />

2 TC_OK Send_TC_to_Process<br />

Acc_OK[---1]<br />

RepSucAcc<br />

CompExec_OK[---0] -<br />

TC_Arrival -<br />

4 TC_OK Send_TC_to_Process<br />

Acc_OK[---1]<br />

CompExec_OK[---1]<br />

RepSucAcc<br />

RepSucCompExec<br />

Table 4. Test cases for Specified Exceptions Behavior Mo<strong>de</strong>l.<br />

CASE NUMBER INPUT OUTPUT<br />

7 TC_Arrival -<br />

APID_NOK<br />

RepFalAcc(Co<strong>de</strong>=0)<br />

8 TC_Arrival -<br />

Length_NOK<br />

RepFalAcc(Co<strong>de</strong>=1)<br />

9 TC_Arrival -<br />

Checksum_NOK<br />

RepFalAcc(Co<strong>de</strong>=2)<br />

10 TC_Arrival -<br />

Type_NOK<br />

RepFalAcc(Co<strong>de</strong>=3)

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

Saved successfully!

Ooh no, something went wrong!