skip to main content
10.1145/1450058.1450088acmconferencesArticle/Chapter ViewAbstractPublication PagesesweekConference Proceedingsconference-collections
research-article

Randomized directed testing (REDIRECT) for Simulink/Stateflow models

Published:19 October 2008Publication History

ABSTRACT

The Simulink/Stateflow (SL/SF) environment from Math-works is becoming the de facto standard in industry for model based development of embedded control systems. Many commercial tools are available in the market for test case generation from SL/SF designs; however, we have observed that these tools do not achieve satisfactory coverage in cases when designs involve nonlinear blocks and Stateflow blocks occur deep inside the Simulink blocks.

The recent past has seen the emergence of several novel techniques for testing large C, C++ and Java programs; prominent among them are directed automated random testing (DART), hybrid concolic testing and feedback-directed random testing. We believe that some of these techniques could be lifted to testing of SL/SF based designs; REDIRECT (RandomizEd DIRECted Testing), the proposed testing method of this paper, is an attempt towards this direction. Specifically, REDIRECT uses a careful combination of the above techniques, and in addition, the method uses a set of pattern-guided heuristics for tackling nonlinear blocks. A prototype tool has been developed and the tool has been applied to many industrial strength case studies. Our experiments indicate that a careful choice of heuristics and certain combinations of random and directed testing achieve better coverages as compared to the existing commercial tools. 1

References

  1. Applied Dynamics International. BEACON for Simulink/Stateflow, http://www.adi.comGoogle ScholarGoogle Scholar
  2. R. Alur, A.Kanade, S.Ramesh, and K.C. Shashidhar. Symbolic Analysis for Improving Coverage of Simulink/Stateflow Models, In International Conference on Embedded Software, 2008, To appear. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. R. Cleaveland, S.A. Smolka, and S.T. Sims. An Instrumentation-Based Approach to Controller Model Validation, Available at http://aswsd.ucsd.edu/2006/pdfs/Smolka-vm-slides.pdfGoogle ScholarGoogle Scholar
  4. ETSI. ETS 300 406: Methods for Testing and Specification (MTS); Protocol and profile conformance testing specifications; Standardization Methodology, European Telecommunication Standard, 1995.Google ScholarGoogle Scholar
  5. A. Gadkari, A. Yeolekar, J. Suresh, S. Ramesh, S. Mohalik, and K.C. Shashidhar. AutoMOTGen: Automatic Model Oriented Test Generator for Embedded Control Systems, In Proc. of the CAV'08, LNCS Volume 5123, pages 204--208, 2008. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. P. Godefroid, N. Klarlund, and K. DART: Directed Automated Random Testing, In Proc. of the PLDI'05, Chicago, pp. 213--223, 2005. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. G. Hamon, L. de Moura, and J. Rushby. Automated Test Generation with SAL, CSL Technical Note, January 2005.Google ScholarGoogle Scholar
  8. ISO. OSI Conformance Testing Methodology and Framework- ISO 9646, 1998.Google ScholarGoogle Scholar
  9. A. Agung Julius, G. Fainekos, M. Anand, I. Lee, and G.J. Pappas. Robust test generation and coverage for hybrid systems, In LNCS Volume 4416, Springer, pages 329--342, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. R. Majumdar, and K. Sen. Hybrid Concolic Testing, In Proc. of the ICSE, Minneaplois, pages 416--426, 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. The Mathworks, http://www.mathworks.comGoogle ScholarGoogle Scholar
  12. The Mathworks, Simulink Design verifier, http://www.mathworks.comGoogle ScholarGoogle Scholar
  13. S.P Miller, E.A. Anderson, L.G. Wagner, M.W. Whalen, and M.P.E. Heimdahl. Formal Verification of Flight Control Software, In Proc. of the AIAA Guidance, Navigation and Control Conference and Exhibit, San Francisco, pages 1--16, August 2005.Google ScholarGoogle ScholarCross RefCross Ref
  14. J. Offutt, S. Liu, A. Abdurazik, and P. Ammann. Generating Test Data from State Based Specifications, Software Testing, Verification and Reliability, John Wiley, 13(1): 25--53, March 2003.Google ScholarGoogle ScholarCross RefCross Ref
  15. C. Pacheco, S.K. Lahiri, M. Ernst, T. Ball. Feedback-directed Random Test Generation, In Proc. of the ICSE, Minneapolis, pages 75--84, May 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. Reactis: http://www.reactive-systems.comGoogle ScholarGoogle Scholar
  17. Reactive Systems. Model Based Testing and Validation with Reactis, Reactive Systems Inc., http://www.reactive-systems.comGoogle ScholarGoogle Scholar
  18. D.J. Richardson, A. Leif Aha, and T.O. O'Malley. Specification-based Test Oracles for Reactive Systems, In Proc. of ICSE, Melbourne, pp. 105--118, 1992. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. SRI International. SAL home page http://sal.csl.sri.comGoogle ScholarGoogle Scholar
  20. S. Sims, and D.C DuVarney. Experience Report: The Reactis Validation Tool, In Proc. of the ACM International Conference on Functional Programming, Freiburg, pages 137--139, October 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. STB. Safety Test Builder, Automatic Test Generation for Simulink/Stateflow, TIN Software.Google ScholarGoogle Scholar
  22. T-Vec. T-Vec Tester for Simulink, http://www.t-vec.comGoogle ScholarGoogle Scholar
  23. H. Zhu, P.A.V. Hall, and J.H.R. May. Software Unit Test Coverage and Adequacy, ACM Computing Surveys, 29(4):366--427, 1997. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Randomized directed testing (REDIRECT) for Simulink/Stateflow models

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in
      • Published in

        cover image ACM Conferences
        EMSOFT '08: Proceedings of the 8th ACM international conference on Embedded software
        October 2008
        284 pages
        ISBN:9781605584683
        DOI:10.1145/1450058

        Copyright © 2008 ACM

        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        • Published: 19 October 2008

        Permissions

        Request permissions about this article.

        Request Permissions

        Check for updates

        Qualifiers

        • research-article

        Acceptance Rates

        Overall Acceptance Rate60of203submissions,30%

        Upcoming Conference

        ESWEEK '24
        Twentieth Embedded Systems Week
        September 29 - October 4, 2024
        Raleigh , NC , USA

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader