model-based testing of automotive systems...tpt for automotive model-based testing 1. test language...
TRANSCRIPT
![Page 1: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/1.jpg)
Model-based Testing of Automotive Systems
Presented by Julia Rubin
on November 21, 2012
Eckard Bringmann and Andreas Krämer
ICST’08
![Page 2: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/2.jpg)
2
Multidisciplinary Business
![Page 3: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/3.jpg)
3
Supply Chain of Components
![Page 4: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/4.jpg)
4
Innovation is Driven by Software
Software will determine more than 90% of the
functionality of automotive systems
![Page 5: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/5.jpg)
5
F1 F5
F2 F3
F4
System
Improves communication
with multidisciplinary
stakeholders
Reduces costs by early validation via simulation
and testing
Model-based Development
Became Popular
Improves communicationwith customers
and with suppliers
![Page 6: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/6.jpg)
6
F1 F5
F2 F3
F4
System
Model-based Development
Became Popular
Abstract models describing the behavior
of the system.
![Page 7: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/7.jpg)
7
F1 F5
F2 F3
F4
System
Model-based Development
Became Popular
Detailed software models which consider
all software-related aspects
![Page 8: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/8.jpg)
8
Validation StagesMiL: Model in the loop
F1 F5
F2 F3
F4 Models run in a
virtual environment
• Functional models –
at the system level• Implementation models –at an individual module and a whole system levels
![Page 9: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/9.jpg)
9
Validation StagesMiL: Model in the loop
F1 F5
F2 F3
F4
SiL: Software in the loop
Software runs in
a virtual environment, without any hardware
![Page 10: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/10.jpg)
10
Validation StagesMiL: Model in the loop
F1 F5
F2 F3
F4
SiL: Software in the loop
PiL: Processor in the loop
Software runs on a target
processor or an emulator,
but with a proprietary hardware (ECU)
![Page 11: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/11.jpg)
11
Validation StagesMiL: Model in the loop
F1 F5
F2 F3
F4
SiL: Software in the loop
PiL: Processor in the loop
HiL: Hardware in the loop
Final ECU with
simulated environment
![Page 12: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/12.jpg)
12
Validation StagesMiL: Model in the loop
F1 F5
F2 F3
F4
SiL: Software in the loop
PiL: Processor in the loop
HiL: Hardware in the loop
Test Rig
The environment consist of physical
components (electrical, mechanical, hydraulic)
![Page 13: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/13.jpg)
13
Validation StagesMiL: Model in the loop
F1 F5
F2 F3
F4
SiL: Software in the loop
PiL: Processor in the loop
HiL: Hardware in the loop
Test Rig
Car
![Page 14: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/14.jpg)
14
Requirements for Testing
1. Automation to support multiple intermediate releases due to software hardware co-design
2. Portability between validation stages
3. Systematic test case selection to ensure coverage and lack of redundancies
4. Readability – “lingua franca” for multiple stakeholders
5. “Closed loop” behavior – the execution of the test depends on the behavior of the tested system
6. Real-time behavior
7. Continuous signals
![Page 15: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/15.jpg)
15
Outline
1. Motivation: challenges of in-car software development process
2. Requirements for testing
3. TPT tool for automotive model-based testing
4. Experience report
5. Future work
6. Summary and discussion
![Page 16: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/16.jpg)
16
TPT for Automotive
Model-Based Testing
1. Test language for describing test cases
2. A method to represent a test suite for a system under test (SUT)
3. A set of adapters for development environments at different lifecycle stages
![Page 17: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/17.jpg)
17
Example: Exterior
Headlight Controller
1. A switch with three states: ON, OFF, and AUTO
2. ON: turn on
3. OFF: turn off
4. AUTO: turn on or off depending on the ambient light, acquired by a light sensor with range 0% … 100%– when the system starts, turned on if ambient light is
below 70% and off otherwise.
– turn on if the ambient light around the car falls below 60% for at least 2 seconds
– turn off if the ambient light around the car exceeds 70% for at least 3 seconds
![Page 18: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/18.jpg)
18
1. Test Language
![Page 19: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/19.jpg)
19
1. Test Language
No dependency on
software implementation
or ECU �
can run on an arbitrary
platform, given the
appropriate adapter
More features (hierarchical state
machines, junctions,
actions on transitions, …)
are available
![Page 20: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/20.jpg)
20
1. Test Language
![Page 21: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/21.jpg)
21
Another Test Case
Headlight signal
remains off
![Page 22: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/22.jpg)
22
Another Test Case
![Page 23: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/23.jpg)
23
2. Representation of a Test Suite: all TPT Tests are Integrated into
a Single Test Model
Variation Points
![Page 24: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/24.jpg)
24
Deriving Test Instances:
Classification Trees
Can express logical constraintsbetween variants and describe the desired coverage in the space of
all possible combinations
![Page 25: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/25.jpg)
25
Test Process Using TPT
![Page 26: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/26.jpg)
26
Test Process Using TPT
Highly compact
byte code,
executed by a
dedicated TPT-VM
virtual machine
![Page 27: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/27.jpg)
27
Test Process Using TPT
TPT VM executes
the tests and
communicates with
SUT via adapters
Input and output
signals are
recorded
![Page 28: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/28.jpg)
28
Recorded
Test Signals
![Page 29: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/29.jpg)
29
Test Process Using TPT
Offline using
assessment scripts provided
for each test
![Page 30: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/30.jpg)
30
Test Process Using TPT
![Page 31: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/31.jpg)
31
Requirements for Testing
1. Automation to support multiple intermediate releases due to software hardware co-design
2. Portability between validation stages
3. Systematic test case selection to ensure coverage and lack of redundancies
4. Readability – “lingua franca” for multiple stakeholders
5. “Closed loop” behavior – the execution of the test depends on the behavior of the tested system
6. Real-time behavior
7. Continuous signals
??
![Page 32: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/32.jpg)
32
Outline
1. Motivation: challenges of in-car software development process
2. Requirements for testing
3. TPT tool for automotive model-based testing
4. Experience report
5. Future work
6. Summary and discussion
![Page 33: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/33.jpg)
33
Experience
• Initially developed in Daimler Software Technology Research– In cooperation with many production vehicle
development projects
• Used by all interior production vehicle projects in Daimler
• Used by car manufactures and suppliers as a basis for acceptance tests
• The idea to concentrate all test scenarios into a single model has been proven to be scalable
![Page 34: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/34.jpg)
34
Future Work
• Interaction with version and configuration
management
• Interaction with test management
• Product families
• Model-based testing on integration levels
– Relationship to component models
– Utilization of architectural models
![Page 35: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/35.jpg)
35
Summary
![Page 36: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/36.jpg)
36
Discussion
• Seems to be very useful in practice
• Some important details are omitted, e.g.,
– How to design and manage assessment scripts?
– How difficult is it to build adapters?
• Would be interesting to see how scalable the
representation of “all test cases in one model” is
• No related work is discussed
– Most of the provided references are not cited in the text
• What makes the tool specific to automotive?
– Can it be used in other domains, e.g., A&D
![Page 37: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/37.jpg)
37
Thank You!Thank You!
![Page 38: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/38.jpg)
38
Backup
![Page 39: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/39.jpg)
39
What is Model-Based Testing?
“In the automotive industry [the term MBT] is normally used to describe all testing activities in the context of model-based development projects”
![Page 40: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/40.jpg)
40
The VV Development Model
MiL Test Rig
Car
SiL, PiL, HiL
![Page 41: Model-based Testing of Automotive Systems...TPT for Automotive Model-Based Testing 1. Test language for describing test cases 2. A method to represent a test suite for a system under](https://reader033.vdocuments.us/reader033/viewer/2022060500/5f19f840e67a177cfa592ee5/html5/thumbnails/41.jpg)
41