• DocumentCode
    237197
  • Title

    Formal test-driven development with verified test cases

  • Author

    Aichernig, Bernhard K. ; Lorber, Florian ; Tiran, Stefan

  • Author_Institution
    Inst. for Software Technol., Graz Univ. of Technol., Graz, Austria
  • fYear
    2014
  • fDate
    7-9 Jan. 2014
  • Firstpage
    626
  • Lastpage
    635
  • Abstract
    In this paper we propose the combination of several techniques into an agile formal development process: model-based testing, formal models, refinement of models, model checking, and test-driven development. The motivation is a smooth integration of formal techniques into an existing development cycle. Formal models are used to generate abstract test cases. These abstract tests are verified against requirement properties by means of model checking. The motivation for verifying the tests and not the model is two-fold: (1) in a typical safety-certification process the test cases are essential, not the models, (2) many common modelling tools do not provide a model checker. We refine the models, check refinement, and generate additional test cases capturing the newly added details. The final refinement step from a model to code is done with classical test-driven development. Hence, a developer implements one generated and formally verified test case after another, until all tests pass. The process is scalable to actual needs. Emphasis can be shifted between formal refinement of models and test-driven development. A car alarm system serves as a demonstrating case-study. We use Back´s Action Systems as modelling language and mutation analysis for test case generation. We define refinement as input-output conformance (ioco). Model checking is done with the CADP toolbox.
  • Keywords
    alarm systems; automobiles; certification; program testing; program verification; safety; software prototyping; CADP toolbox; abstract test case generation; agile formal development process; back action systems; car alarm system; development cycle; formal models; formal techniques; formal test-driven development; formal verification; input-output conformance; model checking; model refinement; model-based testing; modelling language; mutation analysis; requirement properties; safety-certification process; test case generation; test case verification; Abstracts; Adaptation models; Alarm systems; Object oriented modeling; Testing; Unified modeling language; Vehicles; Formal Models; Model Checking; Model-based Testing; Test-Driven Development;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Model-Driven Engineering and Software Development (MODELSWARD), 2014 2nd International Conference on
  • Conference_Location
    Lisbon
  • Print_ISBN
    978-9-8975-8065-9
  • Type

    conf

  • Filename
    7018535