reactive test of embedded systems using models · 2017-10-16 · evaluation across various tools...
TRANSCRIPT
REACTIVE TEST OF EMBEDDED SYSTEMS USING MODELSPresented by Sadegh Sadeghipour & Hans-Werner WiesbrockPartly funded by the German Ministry of Economic Affairs and Energy (BMWi)
© All rights reserved
CONTENT• Introduction
• Test environment architecture
• Industrial case study
• Conclusion
© All rights reserved
Closed-loop vs. open-loop tests
3
• Open-loop: no reaction to test object‘s behaviour during the test run
© All rights reserved
testinput
testoutput
testobject
• Closed-loop: reactive testing
testinput
testoutput
testobject
environmentmodel
• Closed-loop model-based testing
testmodel
testoutput
testobject
Two kinds of test specification in MBT
4 © All rights reserved
• Open-loop test: specifying a test model, generating test cases (test sequences) from it and executing them
• Closed-loop test: specifying a test model and running it parallel to the test object (co-simulation)
testmodel
testoutput
testobject
testinput
testoutput
testobject
• Introduction
• Test environment architecture
• Industrial case study
• Conclusion
© All rights reserved
Using a framework for automating test execution
6 © All rights reserved
• ContinoProva: Automated test execution and evaluation across various tools deployed in the test environment, e.g. debugger, relay box, CAN tool, …
• Defining interfaces for coupling new tools; integrating different kinds of test specification
Client
Server 1
Tool 1.1
Tool 1.2
…
Test specificationServer 2
…
Tool 2.1
Tool 2.2
…
Automation procedure
7 © All rights reserved
• Test model specified in Enterprise Architect
• Generating executable code from the test model and integrating it into ContinoProva
• UML Testing Profile used as architecture guidance
Test environment architecture – ContinoProva
8 © All rights reserved
test server
test client
test control
test report
test evaluation
Test environment architecture – external tools
© All rights reserved
external tools
test object
abstraction layer
communicating with
exetrnal tools
9
Test environment architecture – MBT integration
10 © All rights reserved
test model
abstraction layer for
different modeling tools
Test environment architecture
11 © All rights reserved
test model
abstraction layer communicating
with exetrnal tools
external tools
test object
test server
test client
test control
abstraction layer for
different modeling tools
UTP TestCase
test report UTP TestLog
UTP SUT
test evaluation UTP Arbiter
• Introduction
• Test environment architecture
• Industrial case study
• Conclusion
© All rights reserved
Test object and test objective
13 © All rights reserved
• Test object:
• A ventricular assist device (VAD) pumping blood from the heart to the aorta, connected to a control unit and battery
• Test objective:
• Does the software of the control unit detect a kink or a leak in the hose connecting the pump and the pneumatic drive (by sounding an alarm)?
• Kink and leak diagnosis: Unusual low resp. high friction within the system
Characterization curves of friction and its hysteresis
© All rights reserved
alarm
fmin fmax
friction
ON
OFF
friction‘s hysteresis
diagram
14
friction
fmin
pressure
fmax
p1 pn
frictions‘s characterization
curves depending on the
pressure
leak
kink
The test model (UTP TestCase)
© All rights reserved15
• Characterization curves have to be individually explored for each pump, cannula and patient during testing
• Sampling the characterization curve step by step (by increasing the pressure)
• For each pressure value simulating a kink/leak by increasing/decreasing the friction and running the system into alarm states
• Decreasing/increasing the friction and checking whether the alarm is stopped according to the hysteresis diagram
The State Machine
© All rights reserved16
• Introduction
• Test environment architecture
• Industrial case study
• Conclusion
© All rights reserved
Results
© All rights reserved18
• The presented test environment architecture and the MBT approach fit well into the use case:
• closed-loop test
• high variability of interaction with the environment
• Heterogeneous tool environment
• The architecture cannot be used in the cases, where the test environment has to fulfill hard real-time requirements, e.g. when testing car engine ECUs
© All rights reserved
THANKS FOR YOUR ATTENTION!
ANY QUESTION?