Model-Based Testing of Automotive Systems: Piketec GMBH, Germany
Model-Based Testing of Automotive Systems: Piketec GMBH, Germany
Model-Based Testing of Automotive Systems: Piketec GMBH, Germany
Abstract
In recent years the development of automotive
embedded devices has changed from an electrical and
mechanical engineering discipline to a combination of
software and electrical/mechanical engineering. The
effects of this change on development processes,
methods, and tools as well as on required engineering
skills were very significant and are still ongoing today.
At present there is a new trend in the automotive
industry towards model-based development. Software
components are no longer handwritten in C or
Assembler
code
but
modeled
with
MATLAB/Simulink, Statemate, or similar tools.
However, quality assurance of model-based
developments, especially testing, is still poorly
supported. Many development projects require
creation of expensive proprietary testing solutions.
In this paper we discuss the characteristics of
automotive model-based development processes, the
consequences for test development and the need to
reconsider
testing
procedures
in
practice.
Furthermore, we introduce the test tool TPT which
masters the complexity of model-based testing in the
automotive domain. To illustrate this statement we
present a small automotive case study.
TPT is based on graphical test models that are not
only easy to understand but also powerful enough to
express very complex, fully automated closed loop tests
in real-time. TPT has been initially developed by
Daimler Software Technology Research. It is already
in use in many production-vehicle development
projects at car manufacturers and suppliers.
1. Motivation
Within only a few years the share of software
controlled innovations in the automotive industry has
increased from 20 percent to 80 percent, and is still
growing. Forecasts claim that software will determine
more than 90% of the functionality of automotive
978-0-7695-3127-4/08
0-7695-3127-X/08
$25.00
$25.00
2008
2008
IEEE
IEEE
DOI 10.1109/ICST.2008.45
483
485
486
484
3.4 Readability
Automotive model-based testing is a collaborative
work between testers, system engineers, and
programmers. All of these experts have different
487
485
1.
2.
3.
488
486
Requirements
Tester
Test
Report
Test Case
Design
Report
Generation
Test
Assessment
Compilation
platform independent
platform dependent
Test
Execution
5.2 Compiling
Test cases are compiled into highly compacted byte
code representations that can be executed by a
dedicated virtual machine, called the TPT-VM. The
byte code has been specifically designed for TPT and
contains exactly the set of operations, data types, and
structures that are required to automate TPT tests. This
concept ensures that test cases as well as the TPT-VM
have a very small footprint. This is important in test
environments with limited memory and CPU resources,
such as PiL and HiL.
Additionally all assessment properties that describe
the expected results of the SUT are compiled into
integrated assessment scripts. For each test case there is
one byte code representation and one assessment script.
489
487
490
488
switch(t) := OFF
switch(t) := ON
t >= 2.0
switch(t) := OFF
t >= 10.0
t >= 5.0
sensor(t) := 80 + 4*noise(t/10)
491
489
switch(t) := ON
switch(t) := OFF
switch(t) := AUTO
t >= 2.0
t >= 10.0
t >= 5.0
t >= 1.0
sensor(t) := 80 + 4*noise(t/10)
7. Practical experience
Figure 7: The integrated test model
492
490
9. References
[1] M. Grochtmann and K. Grimm. Classification Trees for
Partition Testing. Software Testing, Verification &
Reliability, 3(2):63-82, 1993.
[2] E. Bringmann and A. Krmer. Systematic testing of the
continuous behavior of automotive systems, ICSE2006, in
Proceedings of the 2006 international workshop on Software
engineering for automotive systems, Shanghai, May 2006.
[3] E. Lehmann. Time Partition Testing Systematischer
Test des kontinuierlichen Verhaltens eingebetteter Systeme,
Ph.D. Thesis, Technical University of Berlin, 2003.
[4] E. Lehmann and J. Wegener. Test Case Design by Means
of the CTE XL. In 8th European International Conference
on Software Testing, Analysis, and Review (EuroSTAR),
Copenhagen, 2000.
[5] B. Lu, X. Wu, H. Figueroa, and A. Monti. A low cost
realtime hardware-in-the-loop testing approach of power
electronics controls. IEEE Transactions on Industrial
Electronics, 54(2):919-931, April 2007.
[6] O. Maler, Z. Manna, and A. Pnueli. From Timed to
Hybrid Systems. In RealTime: Theory in Practice. LNCS,
pages 447-484. Springer Verlag, 1992.
[7] H. Sthamer, J. Wegener, and A. Baresel. Using
Evolutionary Testing to improve Efficiency and Quality in
Software Testing. In Proc. of the 2nd Asia-Pacific
Conference on Software Testing Analysis & Review.
Melbourne, 2002.
[8] X. Wu, S. Lentijo, and A. Monti. A novel interface for
power-hardware-in-the-loop simulation. In IEEE Workshop
on Computers in Power Electronics, 2004.
[9] D. Lee and M. Yannakakis. Principles and methods of
testing finite state machines: A survey. Proceedings of the
IEEE, 1996.
493
491