07.01.2013 Views

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

Lecture Notes in Computer Science 3472

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.

448 Wolfgang Prenn<strong>in</strong>ger, Mohammad El-Ramly, and Marc Horstmann<br />

Functional Structural Stochastic<br />

specification specification specification<br />

[BFdV + 99] Conference Protocol X<br />

[CJRZ01] Smart Cards: CEPS X X<br />

[DBG01] SDU of ST100 DSP X<br />

[FHP02] POSIX/Java X X<br />

[FKL99] PowerPC X X<br />

[KVZ98] Cache Coherency Protocol X X<br />

[PPS + 03] Smart Cards: WIM X X X<br />

[SA99] Microprocessors X<br />

Table 15.2. Test Specification Classes Used <strong>in</strong> the Reviewed Case Studies<br />

number of possible test traces is reduced by def<strong>in</strong><strong>in</strong>g additional functional constra<strong>in</strong>ts<br />

concern<strong>in</strong>g the system itself or its environment. Functional specifications<br />

cover I/O relations which refer either to scenarios of specification documents as<br />

described <strong>in</strong> Philipps et al. [PPS + 03] or other more special views that result<br />

from experience, like fault <strong>in</strong>tensive known sections as described <strong>in</strong> Fournier<br />

et al. [FKL99]. In the majority of cases these requirements describe sequences<br />

which can be completed to a state diagram, for example. The state diagram on<br />

its own forms only one part of the specification, additional declarations about<br />

the traces to be generated are necessary, for <strong>in</strong>stance a restriction of the path<br />

length. Otherwise, test cases of <strong>in</strong>f<strong>in</strong>ite size can be found. To overcome this<br />

problem, often a functional specification is used <strong>in</strong> conjunction with structural<br />

or stochastic test specifications. Functional specifications are used by three case<br />

studies [FHP02, KVZ98, PPS + 03].<br />

Structural Specification For the structural specifications, typical code coverage<br />

criteria can be used which are lifted to the level of the test model. The spectrum<br />

of coverage criteria varies from statement coverage [FKL99], state coverage<br />

[DBG01], the MC/DC criterion [PPS + 03] up to path coverage [SA99] (for<br />

an overview about exist<strong>in</strong>g coverage criteria cf. Sec. 11.3). Regardless of how<br />

the test model is derived (SUT abstraction, manual model<strong>in</strong>g), the options of<br />

which coverage criteria can be used depend on the complexity of the test model.<br />

Those case studies where the result<strong>in</strong>g test model is already strongly tailored<br />

to ma<strong>in</strong> test purposes, e.g. by an additional functional test specification or by<br />

focus<strong>in</strong>g on a special system part, use path coverage with a given trace length<br />

[KVZ98]. Other studies us<strong>in</strong>g complex test models have to use more simple criteria<br />

like state coverage [DBG01] or the MC/DC criterion [PPS + 03]. If structural<br />

specification is used <strong>in</strong> comb<strong>in</strong>ation with functional specification, then, it is important<br />

that the structural criteria are applied to the model of the system and<br />

the environment model with the def<strong>in</strong>ed constra<strong>in</strong>ts.<br />

Stochastic Specification In Philipps et al. [PPS + 03] additional stochastic specifications<br />

are applied to the result of structural specifications <strong>in</strong> order to reduce<br />

the number of test cases. Bel<strong>in</strong>fante et al. [BFdV + 99] use only this type of crite-

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

Saved successfully!

Ooh no, something went wrong!