31.01.2014 Views

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

Ph.D. - geht es zur Homepage der Informatik des Fachbereiches 3 ...

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.

8.7. Verification<br />

Since C++ do<strong>es</strong> not provide an implicit unit t<strong>es</strong>ting mechanism, the t<strong>es</strong>ts must be implemented<br />

manually or with the support of a unit t<strong>es</strong>ting framework. CppUnit [16] is a platform<br />

independent framework for creating t<strong>es</strong>t suit<strong>es</strong> based on unit t<strong>es</strong>ts, which perfectly match<strong>es</strong> the<br />

requirements of the openETCS domain framework. In contrast to complete self implementation<br />

of unit t<strong>es</strong>ts, CppUnit already provid<strong>es</strong> mechanisms for the t<strong>es</strong>t development and the collection<br />

and output of t<strong>es</strong>t r<strong>es</strong>ults.<br />

8.7.1. Unit T<strong>es</strong>ting D<strong>es</strong>ign<br />

The CppUnit framework defin<strong>es</strong> at its high<strong>es</strong>t level so-called t<strong>es</strong>t suit<strong>es</strong>, which are class<strong>es</strong>.<br />

Those t<strong>es</strong>t suit<strong>es</strong> combine different (unit) t<strong>es</strong>t cas<strong>es</strong>, which are methods of the t<strong>es</strong>t suite class<strong>es</strong>.<br />

In th<strong>es</strong>e t<strong>es</strong>t methods, assertions [79, 16] can be defined as Boolean expr<strong>es</strong>sions, which all<br />

must evaluate to true if the t<strong>es</strong>t method is executed succ<strong>es</strong>sfully. The complete unit t<strong>es</strong>ting<br />

application or rather V&V t<strong>es</strong>t suite combin<strong>es</strong> and execut<strong>es</strong> all suit<strong>es</strong> r<strong>es</strong>pectively all t<strong>es</strong>t<br />

methods. Since all class<strong>es</strong> of the domain framework (in name space ::oETCS::DF) are t<strong>es</strong>ted,<br />

Figure 8.24 shows only a subset of the complete relations of the unit t<strong>es</strong>ting d<strong>es</strong>ign.<br />

Figure 8.24.: UML class diagram of the basic openETCS domain framework unit t<strong>es</strong>ting<br />

elements<br />

157

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

Saved successfully!

Ooh no, something went wrong!