Abstract
Currently established automotive test approaches in the field of vehicle hardware-in-the-loop (HiL) testing use predefined test structures. The test case structure couples a specific test stimulation with an individual test step to a fixed, predefined system validation with pass / fail result. Each test case has its own specific functional focus. If more than one functional aspect is to be tested, the current methods will not work anymore. The aim of future test methods is to evaluate the system as comprehensively and resource-efficiently as possible. If possible, several sub-functionalities should be evaluated at the same time in a randomly generated, realistic environment. A different validation approach is required for the evaluation of randomly generated stimulations sequences. Previously they are unknown to the evaluation environment. It is no longer possible to validate each test step individually. The exact sequence of the stimulation is not known at the beginning of the test run. This should simulate a behavior that is as realistic as possible. For this purpose, a methodology for the generation of system evaluation for randomly generated stimulations was introduced. Combinatorial and model-based approaches were combined to support the creation of system evaluation for the vehicle body domain (describes the passenger functions that can be experienced within a vehicle with its control units and functionalities, no direct influence on driving dynamics) and link them to the corresponding system requirements. The approach supports the existing methods and achieve a wider and deeper coverage of system assessments than a normal test catalogue implementation would give. This will be shown in a proof of concept with a vehicle comfort function on a HiL system at a German car manufacturer.
Nowadays a vehicle consists of over 100 electrical, electronic and electromechanical component
In the domain of driver assistance systems (DAS) a randomly generated test drive was used to create long-term tests with low effor
The system under test (SuT)consists of several functions. The behaviour of the SuT functionalities can be continuously monitored by using so called ”Assessments”. This process only focuses the validation of DAS and is not applicable to the domain of body functions directly.
In order to be able to use the existing test infrastructure more efficiently and the process of evaluation creation more effectively, this paper will introduce a novel approach, which reduces the effort of the evaluation creation and guarantees a deeper coverage of requirements at the same time. Furthermore, the existing approach should be converted to the domain of body functions. This method is demonstrated at a HiL system used by a German car manufacture. The mentioned points lead to the following research questions (RQ):
RQ1: How to increase test scope without increasing time on test bench?
RQ2: How to reduce the cost of test time by connecting isolated test cases in series to increase the efficiency of the whole test and evaluation process?
In summary, the contributions (C) of this paper can be presented as follows:
This paper is contributive because it increases the effective test time on HiL systems by continuous-event-based testing on a vehicle body domain functionality with the help of model-based testing, and it introduces a process to generate stimulation independent evaluations.
Testing and development of software functions in the automotive context is traditionally based on the V-mode
The verification of comfort and body functions in the automotive context takes place in the right part of the V-model classicall
Test gaps can be identified with the help of requirementsbased testing and known risks can be addresse

Fig.1 Classical test case structure
One Test case consists of many test steps.Each test step couples a stimulation to an evaluatio
Model⁃based testing is a software test concept, which creates concrete test runs (stimulation and evaluation). For the creation, a predictive system model is used. The model describes the behavior of the system and takes care of various combinations of input variables, events, transition conditions, and output state
The model should ideally be comprehensible, reusable and should contain a precise description of the SuT functionalities. Basically, there is a large number of models, which always describe a certain aspect of the syste
Classic test cases consist of several test steps. Each test step links a stimulation to specific functional validation criteria (see
In the body domain, many systems are based on a causeeffect principle. This means that there is a known system reaction to a defined trigger, signal change or timing behaviour which is written down in the requirements, too (e.g. When the air conditioning is switched on (cause), it must be displayed in the infotainment system (effect)).
Extended functionalities can often be described by a dedicated sequence of triggers. In conventional, classic test approaches, this procedure is fixed by the sequence of test steps and cannot be influenced during the test. However, if you try to simulate the real framework conditions in the vehicle, at the beginning of the journey the decision to switch on the air conditioning is not clear to the driver or front passenger. Rather, the driver decides on the basis of other influencing factors and external stimulation (e.g. external smells) or on the basis of other system functions (e.g. whether the window is currently open) to switch the air conditioning on or off. Dynamic and randomly driver and passenger behaviour cannot be mapped in the context of predefined test steps. According to references [11] [22] and [7], there are approaches in the DAS world where the ego behaviour is influenced by a driver, environmental and traffic model in its driving behaviour (digital test drive). A driver or passenger behaviour model can also be added in the area of body domain to generate system stimulation. The exact sequence of the stimulation is not known at the beginning of the test run. This should simulate a behaviour that is as realistic as possible.
A different validation approach is required for the evaluation of previously unknown sequences. It is no longer possible to evaluate each test step individually. In comparison to requirements-based testing, the validation logic has no knowledge of the exact sequence of the respective scenario. Instead, a continuous evaluation approach is required, which does not need any information about the exact order of the stimulation triggers. For this purpose, a test approach was introduced in references [11] and [7], which enables simultaneous and continuous system evaluation based on references [23]. So called “Assessments” are used for the creation of system validation criteri

Fig.2 Continuous event triggered validation concep
Concrete conditions from raw ECU signals or from derived variables, which are determined from the simulation with the help of an observer, can be set up. The test scripts are independent. They do not change or influence the state of the SuT function
According to reference [
The desired target state of the new model-based assessment generation (simulated by the model) was compared with the actual state of the SuT functionality. It is possible to evaluate the system behaviour against the data from the created model. The model accesses the real control unit signals and to extended system information, which is provided by an observer. This extended system information provides additional referencing data for the simulation environment. In order to keep the intelligibility of the model as low as possible, the entire functionality does not have to be mapped in a single system model. Several models can be executed in parallel or can be divided into sub-states to structure the system model. This ensures clarity and maintainability. The requirement for the system model is not to reproduce the test system exactly, but to find a simplified representation of the system in order to quickly find relevant and potentially critical points. The structure of the model should always be kept as simple as possible and the concerns should be separated into several simpler sub-models. The focus should be placed on the simplification and derivation of system behaviour models (see Section 6).
As a first step, a system and behaviour model for the SuT function must be created. Existing models, which have already been created in the product development cycle, can be used or new models can be built with the help of requirements (step 1). The system model should map the basic functionalities of SuT and show simple logical relationships. When modeling, the system should be divided into basic states. The evaluations are mainly used to find errors on the SuT. The creation of the system model is described in Section 5).
In the next step, the system model is converted into a uniform machine-readable data format (step 2). This guarantees the use of every code generation tool regardless of the source of the model (e.g. Simulink/Stateflow). Existing standards of representation such as UML can be used her
• Activation condition from state:
– If state 1 is active, then the condition of transition 2-1 must be checked;
– If state 2 is active, then the condition of transition 1-2 must be checked.
• Activation condition from transition:
– If transition 2-1 is active, then the condition of state 1 must be checked;
– If transition 1-2 is active, then the condition of state 2 must be checked.
Many interdependencies in the vehicle body domain consist of two system states with the corresponding transition conditions. That is why a bus idle state system is used as an example later in Section 5. There are two states bus active and bus inactive, between which a change is made depending on the current system state (transitions). Every transition and every state lead to an assessment. The system model never represent the real SuT functionality exactly. There are always differences between the output of the system model for the test creation and the implemented SuT functionality, because of simplifications or unknown thresholds. The exact timing behaviour can never be reproduced on test infrastructures with real time conditions (e.g. HiL), because of missing signals (internal signals of the control unit), unknown specifications and other sensor information. For this purpose intermediate assessments are introduced, which map the transition between two defined states.
In the next step “if-then clauses” are translated into the corresponding code for the required test automation tool or framework (step 4). In the last step, a library was generated, which was derived from the code and was easily integrated into the existing tool environment (step 5). In this environment assessments were performed, evaluated, and logged. The test generation process is shown in

Fig.3 Assessment generation process
Due to the model-based creation, a link between assessments and model was achieved. This increases the consistency. In Section 5, the process is applied to a body function on a HiL system at a German car manufacture as an example.
The new methodology was applied to system function in the vehicle body domain for a proof-of-concept. In order to reduce the power consumption in the vehicle, the control units fall asleep after an inactive period without a trigger signal. If all control units have fallen asleep, this is indicated by a signal on the vehicle bus. If a trigger occurs, the control unit wakes up and the data signals are sent again via the data bus. The corresponding bus signal changes its value and indicates the current state of the bus. It was decided to use the “bus-sleep” function, because it is a widely used function in the vehicle body domain. The model of the “bus-sleep” system consists of two main states with its transitions. The bus wakes up by the hazard warning lights or a door trigger event only. The system and behaviour model of the SuT function is seen in

Fig. 4 Proof-of-concept system and behaviour model bus-sleep
The vehicle SuT function is stimulated by a random generated trigger sequence.
This system model is used for the automated derivation of assessments. These assessments can be imported into the existing test automation tool framework on the HiL system at a German car manufacture. The system assessments are mapped in the corresponding real-time code and check the system function continuously. The system is stimulated using previously unknown triggers, which are intended to simulate real driver behavior. These triggers(door open trigger, door close trigger and emergency flasher trigger) occur in any order and sequence. The parallel evaluation makes it possible to evaluate the system over a longer period of time and to collect further information about the correct bus sleep behaviour (see

Fig. 5 Signal state-time-plot with invalid and valid areas derived from system and behaviour model and subdivision in different model states
The Astrix shows the trigger events on the bus, which stimulates a bus wake up.
One check per transition and one check per status were created (see Section 4). The intermediate status was omitted from the code generation. It was generated for the model shown in
• If activation time with no Trigger is greater than Threshold, then the bus-state should be inactive;
• If a trigger occurs, then the bus-state should become active.
In the time series shown in
Specifically, the random sequence of trigger signals is generated on the HiL system. The system is supposed to check SuT functionality in different initial states. For unambiguousness, the system model was included in the protocol with additional descriptions for evaluation reasons (see
Sim. time/s | Trigger event | State transition | Rel. ass. |
---|---|---|---|
822 | door open | state 1 to intermediate | 2 |
830 | door close | stay in state 2 | 2 |
840 | emergency flasher | stay in state 2 | 2 |
855 | door open | stay in state 2 | 2 |
875 | no trigger | change to state 1 | 1 |
This increases the traceability and creates a link between the specific assessment and the system and behaviour model. In the proof-of-concept, the system was monitored for one hour using the presented approach. 30 activations were carried out. Each signal was evaluated continuously. An external system triggers the individual signals in a random manner. To test the assessment generation tool, randomly three types of triggerevents were intentionally injected into the vehicle body domain system function, which are evaluated with the help of the created assessments. In traditional requirements-based testing, only five test steps with five evaluations are executed in a similar test case at the same time. The effective test time was used better on the HiL test bench. At the same time, the continuous evaluation concept offers the possibility to evaluate several systems in parallel. Therefore, the bus sleep assessments are also adopted on other system test cases in order to monitor the bus sleep behaviour of the control units in normal test operation.
Changes are quickly incorporated into the existing model during the assessment design. For example, adding further triggers or adapting the timing behaviour only requires small parameter adjustments in the model and does not have to be carried out on many different assessments or test cases as before. By using the system and behaviour model and the automated generation of assessments, conclusions about the system behaviour are generated quickly and easily. The methodology is particularly well suited for evaluating endurance tests, long-term tests and stimulation with a predefined unknown sequence.
If the manual requirement-based generation is compared with the automatic model-based creation, the following advantages are mentioned for the automated creation process:
• The effective test-time on test platforms can be increased with real-time coupling, because of parallel testing of more than on functionality.
• System function assessments can be transferred to other tests easily. It is possible to execute them in parallel to other generated stimulations or already existing test cases (reusability).
If the full potential of the process should be used, this approach has to be used during development, too. For this purpose, a system model can be derived from a development model, which can be transferred to assessments and executed on different test instances.
In software development, model-based approaches are a practiced and widely used test method. With the help of an automatic creation of assessments, the effort and the susceptibility to evaluation irregularities are reduced. With a continuous event-based system evaluation, a simultaneous evaluation of several SuT functions can only be carried out with great effort over a longer period of time. In combination with the simultaneous assessment execution, the large number of assessments generated by the model-based approach is not problematic anymore (RQ1). The methodology presented in this paper makes systematic and comprehensive system evaluation easier and more effective than the manual creation of evaluations. The test process presented in Section 3 represents a new type of automation process for body domain functions (RQ2). It has been shown that the presented process works with simple models. In further work this process is to be transferred to more connected and encapsulated models.
After creating an initial version, the tool chain is used to check the model with recorded measurements initially. Relevant signals can be saved in a measurement and loaded into a resimulation environment. It is possible to adapt the system model and optimize it. This is used to map influences that have not been taken into the model so far. The resimulation environment is not bound to the real-time limitation of the test instance (e.g. HiL) and can therefore be carried out in a resource-saving manner. This means that new versions of the model can be developed quickly. Specifically, a resimulation environment is to be created in which tests and stimulations can be derived automatically on the basis of a behaviour model - according to the method presented in this paper. In addition, a process should be created which transfers the test concept to further development stages. It should be evaluated to what extent this method can also be used on Software-in-the-loop or real-world test platforms.
References
JAKOBSON O. Core based service oriented architecture[EB/OL]. (2019-11-01) [2021-05-01]. https://dspace.com/shared/data/pdf/dwc2019/Volvo-Ola Jakobson.pdf. [Baidu Scholar]
GUISSOUMA H, KLARE H, SAX E, et al. An empirical study on the current and future challenges of automotive software release and configuration management[C]// IEEE 2018 44th Euromicro Conference on Software Engineering and Advanced Applications (SEAA). [S. l.]: IEEE, 2018: 298. [Baidu Scholar]
POFAHL E, WIESSALLA J, HOFMANN O, et al. Modellbasierte erzeugung von testfallen¨ mit integrierter modellbasierte erzeugung von testfallen¨ mit integrierter fehleranalyse[BE/OL].[2021-05-03]. https://www. semanticscholar.org/paper/Modellbasierte-Erzeugung-von-Testf%C3%. [Baidu Scholar]
SCHNITTENHELM H. Testing of level-3 systems[Z]. PEGASUS Projekt, 2017: 470. [Baidu Scholar]
TUNCALI C E, FAINEKOS G, PROKHOROV D, et al. Requirements-driven test generation for autonomous vehicles with machine learning components[J]. IEEE Transactions on Intelligent Vehicles, 2020, 5(2): 265. [Baidu Scholar]
SCHONEMANN V, WINNER H, GLOCK T, et al. Scenario-based functional safety for automated driving on the example of valet parking[C]// ARAI K, KAPOOR S, BHATIA R. Advances in Information and Communication. [S. l.]: Springer International Publishing, 2019: 53. [Baidu Scholar]
King C, Ries L, Kober C, et al. Automated function assessment in driving scenarios[C]// 12th IEEE Conference on Software Testing, Validation and Verification. [S. l.]: IEEE, 2019: 414. [Baidu Scholar]
OTTEN S, BACH J, WOHLFAHRT C, et al. Automated assessment and evaluation of digital test drives[C]// ZACHAUS C, M¨ ULLER B, MEYER G. Advanced Microsystems for Automotive Applications 2017. [S. l.]: Springer International Publishing, 2017: 189. [Baidu Scholar]
BROY J. Modellbasierte entwicklung und optimierung flexibler zeitgesteuerter architekturen im fahrzeugserienbereich[D/OL]. Karlsruhe: Universitat Karlsruhe, 2010. https: //publikationen.bibliothek.kit.edu/1000021274. [Baidu Scholar]
SHOKRY H, HINCHEY M. Model-based verification of embedded software[J]. Computer, 2009, 42(4): 53. [Baidu Scholar]
GUSTAFSSON T, SKOGLUND M, KOBETSKI A, et al. Automotive system testing by independent guarded assertions[C]// 2015 IEEE Eighth International Conference on Software Testing, Verification and Validation workshops (ICSTW 2015). Piscataway, NJ: IEEE, 2015: 1. https://www.diva-portal.org/ smash/get/diva2:1043558/FULLTEXT01.pdf. [Baidu Scholar]
Kober C. Stochastische verkehrsflusssimulation auf basis von fahrerverhaltensmodellen zur absicherung automatisierter fahrfunktionen[M]. Wiesbaden: Springer Fachmedien Wiesbaden, 2019. [Baidu Scholar]
International Organization for Standardization. Road vehicles—functional safety: ISO 26262-1:2011[S/OL].[2021-05-04]. https://www.iso.org/standard/43464.html. [Baidu Scholar]
SAX E. Automatisiertes Testen eingebetteter Systeme in der Automobilindustrie[R/OL]. Munchen: Hanser, 2008. http://www.hanser-elibrary.com/action/showBook?doi=10.3139/9783446419018. [Baidu Scholar]
STARON M. Automotive software development[C]// STARON M. Automotive Software Architectures. [S. l.]: Springer International Publishing, 2017: 51. [Baidu Scholar]
CAMPERO W. Testkonzept IEEE 829 testmanagement nach istqb standard[J]. Qytera, 2019. [Baidu Scholar]
PEGASUS. PEGASUS method[EB/OL]. 2020.[2021-05-20]. https://www.pegasusprojekt.de/. [Baidu Scholar]
IEEE Computer Cociety. IEEE standard for software and system test documentation: IEEE. 829‒2008[S]. 2008. [2021-05-20]. https://ieeexplore.ieee.org/document/5983353. [Baidu Scholar]
WITTE F. Testmanagement und softwaretest: Theoretische grundlagen und praktische umsetzung[M]. Wiesbaden: Springer Vieweg, 2016. http://dx.doi.org/10.1007/978-3-658-09964-0. [Baidu Scholar]
Tech Pvt Ltd. Model based testing tutorial: What is, tools & example[G]// Model Based Testing Tutorial. [S. l.]: Tech Pvt Ltd, 2020. [Baidu Scholar]
BACH J. Methoden und ansatze fur die entwicklung und den test pradiktiver fahrzeugregelungs fun ktionen[Z]. KIT Bib, 2018. [Baidu Scholar]
WOHLFAHRT C. Von systematischer absicherung zur digitalen erprobungsfahrt[Z]. Stuttgart, 2016-10-27. [Baidu Scholar]
TRIOU E, ABBAS Z, KOTHAPALLE S. Declarative testing: A paradigm for testing software applications[C]// Information Technology: New Generations, 2009. ITNG '09. InternationalSixth. [S. l.]: IEEE Xplore, 2009: 769. [Baidu Scholar]
WAYKAR Y. A study of importance of uml diagrams: with special reference to very large-sized projects[C/OL]// International Conference on Reinventing Thinking Beyond Boundaries to Excel. 2013. https://www.researchgate.net/ publication/322991896 A Study of Importance of UML diagrams With Special Reference to Very Large-sized Projects. [Baidu Scholar]
ANKE J, BENTE S. Uml in der hochschullehre: Eine¨ kritische reflexion[EB/OL]. 2019 [2021-05-25]. http://www.researchgate.net. [Baidu Scholar]
DANIEL F, EDUARD E, WASIF A, et al. From natural language requirements to passive test cases using guarded assertions[C/OL]// 2018 IEEE International Conference on Software Quality, Reliability and Security (QRS). [S. l.]: IEEE, 2018. DOI:10.1109/QRS.2018.00060. [Baidu Scholar]