Effective test suites for mixed discrete-continuous stateflow controllers
Authors:
Open Access
- 30 August 2015
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 84-95
Abstract
Modeling mixed discrete-continuous controllers using Stateflow is common practice and has a long tradition in the embedded software system industry. Testing Stateflow models is complicated by expensive and manual test oracles that are not amenable to full automation due to the complex continuous behaviors of such models. In this paper, we reduce the cost of manual test oracles by providing test case selection algorithms that help engineers develop small test suites with high fault revealing power for Stateflow models. We present six test selection algorithms for discrete-continuous Stateflows: An adaptive random test selection algorithm that diversifies test inputs, two white-box coverage-based algorithms, a black-box algorithm that diversifies test outputs, and two search-based black-box algorithms that aim to maximize the likelihood of presence of continuous output failure patterns. We evaluate and compare our test selection algorithms, and find that our three output-based algorithms consistently outperform the coverage- and input-based algorithms in revealing faults in discrete-continuous Stateflow models. Further, we show that our output-based algorithms are complementary as the two search-based algorithms perform best in revealing specific failures with small test suites, while the output diversity algorithm is able to identify different failure types better than other algorithms when test suites are above a certain size.Keywords
Funding Information
- Fonds National de la Recherche Luxembourg (FNR/P10/03 , FNR 4878364)
This publication has 32 references indexed in Scilit:
- Search-based automated testing of continuous controllers: Framework, tool support, and case studiesInformation and Software Technology, 2015
- Automatic test case generation from Simulink/Stateflow models using model checkingSoftware Testing, Verification and Reliability, 2013
- Automated Model-in-the-Loop Testing of Continuous Controllers Using Search2013
- A Generic Fault Model for Quality Assurance2013
- Efficient coverage of parallel and hierarchical stateflow models for test case generationSoftware Testing, Verification and Reliability, 2011
- Adaptive Random Testing: The ART of test case diversityJournal of Systems and Software, 2010
- An Instrumentation-Based Approach to Controller Model ValidationLecture Notes in Computer Science, 2008
- The Embedded Systems Design Challenge2006
- Test input generation with java PathFinderACM SIGSOFT Software Engineering Notes, 2004
- Properties of Hybrid Systems—A Computer Science PerspectiveFormal Methods in System Design, 2004