Visible to the public Search-based Test Case Selection of Cyber-physical System Product Lines for Simulation-based Validation

TitleSearch-based Test Case Selection of Cyber-physical System Product Lines for Simulation-based Validation
Publication TypeConference Paper
Year of Publication2016
AuthorsArrieta, Aitor, Wang, Shuai, Sagardui, Goiuria, Etxeberria, Leire
Conference NameProceedings of the 20th International Systems and Software Product Line Conference
PublisherACM
Conference LocationNew York, NY, USA
ISBN Number978-1-4503-4050-2
Keywordscomposability, CPS modeling, cyber-physical system product lines, Metrics, pubcrawl, Resiliency, search-based software engineering, simulation, Test case selection
Abstract

Cyber-Physical Systems (CPSs) are often tested at different test levels following "X-in-the-Loop" configurations: Model-, Software- and Hardware-in-the-loop (MiL, SiL and HiL). While MiL and SiL test levels aim at testing functional requirements at the system level, the HiL test level tests functional as well as non-functional requirements by performing a real-time simulation. As testing CPS product line configurations is costly due to the fact that there are many variants to test, test cases are long, the physical layer has to be simulated and co-simulation is often necessary. It is therefore extremely important to select the appropriate test cases that cover the objectives of each level in an allowable amount of time. We propose an efficient test case selection approach adapted to the "X-in-the-Loop" test levels. Search algorithms are employed to reduce the amount of time required to test configurations of CPS product lines while achieving the test objectives of each level. We empirically evaluate three commonly-used search algorithms, i.e., Genetic Algorithm (GA), Alternating Variable Method (AVM) and Greedy (Random Search (RS) is used as a baseline) by employing two case studies with the aim of integrating the best algorithm into our approach. Results suggest that as compared with RS, our approach can reduce the costs of testing CPS product line configurations by approximately 80% while improving the overall test quality.

URLhttp://doi.acm.org/10.1145/2934466.2946046
DOI10.1145/2934466.2946046
Citation Keyarrieta_search-based_2016