Test Optimization for Simulation-Based Testing of Automated Systems

Test-optimization, Simulation-based testing, Automated systems.
To minimize the resources invested while maximizing the number of scenarios and situations when testing simulation-based automated systems.

Simulation-based testing has been envisioned as an efficient means to test Automated Systems. Employing simulation models permits 1) the execution of more and larger test cases, 2) selection of critical scenarios, 3) specification of test oracles for the automated validation of the system, or 4) replication of safety-critical functions of a real system where it is expensive to execute test cases [TOS2]. However, although the use of simulation methods provides several advantages, testing Automated Systems is still expensive and time-consuming. Simulation models of Automated System could be very complex, and executing the simulations becomes computationally expensive, which often make it infeasible to execute all the test cases. 

For this reason, test optimization plays a crucial role when testing automated systems. The objective of test optimization is to cost-effectively test a system, i.e., reduce the cost of testing a system while the overall test quality is maintained.  

Test optimization could include test case selection, test case minimization, test case prioritization, etc.  

  • Test case selection focuses on selecting a set of test cases from the test suite that tests a specific system version.  
  • Test minimization aims to eliminate redundant test cases from the existing test suite in order to reduce cost (i.e., reduce the test execution time).  
  • Test case prioritization techniques schedule test cases for execution in an order that attempts to increase their effectiveness at meeting some performance goal. 

Test optimization could be also obtained using automatic test case generation: the process of generating test suites for a particular system.  

Since these approaches are typically non-trivial, often search-based algorithms are employed. 

Test case generation: [TOS4] and [TOS2] present an approach for the generation of the optimal set of reactive test cases for simulation-based testing of Cyber-Physical Systems using search-based algorithms. The optimization is made taking into account the following cost-effectiveness measures: requirements coverage, test case similarity and test execution time.  

Test case selection: [TOS3] and [TOS5] present a cost-effective approach for test case selection that relies on black-box data related to inputs and outputs of the system. 

Test case prioritization: [TOS1] presents a search-based approach that aims to cost-effectively optimize the test process by prioritizing the test cases that are executed at different test levels (i.e., MiL, SiL and HiL). 

These approaches have recently been improved through the use of Machine Learning techniques, as in the case of optimising test case selection based on simulation models for self-driving cars [TOS6]. 

Method artefacts: 

  • Inputs: 
    • Simulation-based model 
    • Test Case Inputs 
  • Outputs: 
    • Generated Test Suite 
    • Selected Test Suite 
    • Prioritized Test Suite 
  • Test optimization can help to reduce the time and cost needed for testing when compared to manual testing. 
  • This method could be used in combination with simulation-based testing methods.
  • The approach has been applied to specific domains and scenarios. Applicability to other domains and scenarios must be evaluated:  empirical evaluation may be required for this reason. 
  • Some approaches require historical data. 
  • MATLAB and Simulink used in the referred approaches. 

References 

  • [TOS1] A. Arrieta, S. Wang, G. Sagardui, L. Etxeberria. “Search-Based Test Case Prioritization for Simulation-Based Testing of Cyber-Physical System Product Lines” in Journal of Systems and Software. Volume 149, 2019, Pages 1-34, ISSN 0164-1212, DOI:10.1016/j.jss.2018.09.055. 
  • [TOS2] A. Arrieta, S. Wang, U. Markiegi, G. Sagardui, L. Etxeberria. “Employing Multi-Objective Search to Enhance Reactive Test Case Generation and Prioritization for Testing Industrial Cyber-Physical Systems” in IEEE Transactions on Industrial Informatics, vol. 14, no. 3, pp. 1055-1066, March 2018, DOI:10.1109/TII.2017.2788019. 
  • [TOS3] A. Arrieta, S. Wang, U. Markiegi, A. Arruabarrena, L. Etxeberria, G. Sagardui, “Pareto efficient multi-objective black-box test case selection for simulation-based testing”, Information and Software Technology, Volume 114, 2019, Pages 137-154, ISSN 0950-5849, DOI:10.1016/j.infsof.2019.06.009. 
  • [TOS4] A. Arrieta, S. Wang, U. Markiegi, G. Sagardui and L. Etxeberria, "Search-based test case generation for Cyber-Physical Systems," 2017 IEEE Congress on Evolutionary Computation (CEC), San Sebastian, 2017, pp. 688-697, DOI: 10.1109/CEC.2017.7969377. 
  • [TOS5] A. Arrieta, S. Wang, A. Arruabarrena, U. Markiegi, G. Mendieta and L. E. Elorza. “Multi-objective black-box test case selection for cost-effectively testing simulation models.” Proceedings of the Genetic and Evolutionary Computation Conference (2018). DOI: 10.1145/3205455.3205490 
  • [TOS6] S. Khatiri, C. Birchler, B. Bosshard, A. Gambi, S. Panichella, “Machine Learning-based Test Selection for Simulation-based Testing of Self-driving Cars Software”, Eprint arXiv, 2021, DOI:10.48550/arXiv.2111.04666 
Method Dimensions
In-the-lab environment
Experimental - Testing, Experimental - Simulation
Software
System testing
Thinking, Acting, Sensing
Non-Functional - Safety
V&V process criteria
Relations
Contents

There are currently no items in this folder.