Search-based automated testing of continuous controllers: Framework, tool support, and case studies

被引:42
作者
Matinnejad, Reza [1 ]
Nejati, Shiva [1 ]
Briand, Lionel [1 ]
Bruckmann, Thomas [2 ]
Poull, Claude [2 ]
机构
[1] Univ Luxembourg, SnT Ctr, L-2721 Luxembourg, Luxembourg
[2] Delphi Automot Syst, L-4940 Luxembourg, Luxembourg
关键词
Search-based testing; Continuous controllers; Model-in-the-loop testing; Automotive software systems; Simulink models; TEST-DATA GENERATION; COVERAGE;
D O I
10.1016/j.infsof.2014.05.007
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Context: Testing and verification of automotive embedded software is a major challenge. Software production in automotive domain comprises three stages: Developing automotive functions as Simulink models, generating code from the models, and deploying the resulting code on hardware devices. Automotive software artifacts are subject to three rounds of testing corresponding to the three production stages: Model-in-the-Loop (MiL), Software-in-the-Loop (SiL) and Hardware-in-the-Loop (HiL) testing. Objective: We study testing of continuous controllers at the Model-in-Loop (MiL) level where both the controller and the environment are represented by models and connected in a closed loop system. These controllers make up a large part of automotive functions, and monitor and control the operating conditions of physical devices. Method: We identify a set of requirements characterizing the behavior of continuous controllers, and develop a search-based technique based on random search, adaptive random search, hill climbing and simulated annealing algorithms to automatically identify worst-case test scenarios which are utilized to generate test cases for these requirements. Results: We evaluated our approach by applying it to an industrial automotive controller (with 443 Simulink blocks) and to a publicly available controller (with 21 Simulink blocks). Our experience shows that automatically generated test cases lead to MiL level simulations indicating potential violations of the system requirements. Further, not only does our approach generate significantly better test cases faster than random test case generation, but it also achieves better results than test scenarios devised by domain experts. Finally, our generated test cases uncover discrepancies between environment models and the real world when they are applied at the Hardware-in-the-Loop (HiL) level. Conclusion: We propose an automated approach to MiL testing of continuous controllers using search. The approach is implemented in a tool and has been successfully applied to a real case study from the automotive domain. (C) 2014 Elsevier B.V. All rights reserved.
引用
收藏
页码:705 / 722
页数:18
相关论文
共 45 条
  • [1] Alur R., 1999, Computer Aided Verification. 11th International Conference, CAV'99. Proceedings (Lecture Notes in Computer Science Vol.1633), P8
  • [2] [Anonymous], 2004, Control System Engineering
  • [3] [Anonymous], 2001, SYMBOLIC ANAL LAB HO
  • [4] [Anonymous], P 12 ANN C GEN EV CO
  • [5] [Anonymous], REACT TEST
  • [6] [Anonymous], MODEL BASED TESTING
  • [7] [Anonymous], 2010, P 15 IEEE INT C EMER
  • [8] Anthony Capon J., 1991, Elementary Statistics for the Social Sciences: Study Guide
  • [9] Arcuri A., 2012, SOFTW TEST VERIF REL
  • [10] Baresel A, 2003, LECT NOTES COMPUT SC, V2724, P2428