liu.seSearch for publications in DiVA
Change search
ReferencesLink to record
Permanent link

Direct link
Unit Test of Capsules using Google Test Framework
Linköping University, Department of Computer and Information Science, Software and Systems.
Linköping University, Department of Computer and Information Science, Software and Systems.
2016 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent thesis
Abstract [en]

Software testing is an important part of modern system development. It is a collection of methods used to detect and correct bugs and faults found in software code. Unit testing is a widely used technique in software testing where individual units of source code are isolated, often divided up into classes and functions, and tested separately.

When developing in a modeling environment, the system components and their respective behavior are expressed by models written in the Unified Modeling Language (UML). These model descriptions are then used to automatically generate programming code for compilation into real-time systems. The generated code can in turn be subjected to unit testing in order to aid in the verification of the systems behavior and functionality.

The modeling tool Rational Software Architect RealTime Edition (RSARTE), developed by IBM, is one example of such an environment. The generated code from the UML models in RSARTE is designed to execute in a real-time computing C++ runtime environment. An essential building block for real-time functionality is the Capsule model. A capsule is an element with an internal state-machine and ports defining its behavior and communication with other capsules. This construction is of great help when programming concurrent real-time applications.

Due to the complexity provided by the real-time runtime environment, it is difficult to isolate and unit test the behavior of designed capsules. In this thesis we will show that a capsule in this environment can be isolated and then subjected to unit testing with the help of an integrated third party unit test framework. Also, before integrating a suitable framework, we will select one by doing a review, discussion and a comparison of different mature and available unit test frameworks for use in the C++ language.

Place, publisher, year, edition, pages
2016. , 72 p.
National Category
Software Engineering
URN: urn:nbn:se:liu:diva-125232ISRN: LIU-IDA/LITH-EX-G--15/040—SEOAI: diva2:903699
External cooperation
Subject / course
Computer science
Available from: 2016-02-18 Created: 2016-02-16 Last updated: 2016-02-18Bibliographically approved

Open Access in DiVA

fulltext(1233 kB)173 downloads
File information
File name FULLTEXT01.pdfFile size 1233 kBChecksum SHA-512
Type fulltextMimetype application/pdf

Search in DiVA

By author/editor
Ström, JoakimSjölund, Jakob
By organisation
Software and Systems
Software Engineering

Search outside of DiVA

GoogleGoogle Scholar
Total: 173 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

Total: 235 hits
ReferencesLink to record
Permanent link

Direct link