Using Spin to generate tests from ASM specifications

被引:0
|
作者
Gargantini, A [1 ]
Riccobene, E
Rinzivillo, S
机构
[1] Univ Catania, CEA, I-95124 Catania, Italy
[2] Univ Catania, Dipartimento Matemat & Informat, I-95124 Catania, Italy
[3] Univ Pisa, Dipartimento Informat, I-56100 Pisa, Italy
关键词
D O I
暂无
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
In this paper we introduce an algorithm to automatically encode an ASM specification in PROMELA, the language of the model checker Spin, and we present a method exploiting the counter example generation feature of Spin, to automatically generate from ASM specifications test sequences which accomplish a desired coverage. ASMs are used as test oracles to predict the expected outputs of units under test. A prototype tool that implements the proposed method is also presented. Experimental results in evaluating the method are reported. The experiments include test sequence generation, tests execution, code coverage measurement for a case study implemented in Java, and comparison with random tests generation. Benefits and limitations in using model checking are discussed.
引用
下载
收藏
页码:263 / 277
页数:15
相关论文
共 50 条
  • [1] Using spin to generate tests from ASM specifications
    Gargantini, Angelo
    Riccobene, Elvinia
    Rinzivillo, Salvatore
    Lect. Notes Comput. Sci., (263-277):
  • [2] Using model checking to generate tests from specifications
    Ammann, PE
    Black, PE
    Majurski, W
    SECOND INTERNATIONAL CONFERENCE ON FORMAL ENGINEERING METHODS, PROCEEDINGS, 1998, : 46 - 54
  • [3] Using model checking to generate tests from requirements specifications
    Gargantini, A
    Heitmeyer, C
    SOFTWARE ENGINEERING - ESEC/FSE '99, PROCEEDINGS, 1999, 1687 : 146 - 162
  • [4] Using ASM specifications for compiler testing
    Kalinov, A
    Kossatchev, A
    Petrenko, A
    Posypkin, M
    Shishkov, V
    ABSTRACT STATE MACHINES 2003: ADVANCES IN THEORY AND PRACTIC, PROCEEDINGS, 2003, 2589 : 415 - 415
  • [5] Building tests from specifications
    McGregor, JD
    JOURNAL OF OBJECT-ORIENTED PROGRAMMING, 1998, 10 (08): : 60 - +
  • [6] Generating tests from UML specifications
    Offutt, J
    Abdurazik, A
    UML'99 - THE UNIFIED MODELING LANGUAGE: BEYOND THE STANDARD, 1999, 1723 : 416 - 429
  • [7] Using TRIO specifications to generate test cases for an interactive system
    d'Ausbourg, B
    Cazin, J
    DESIGN, SPECIFICATION AND VERIFICATION OF INTERACTIVE SYSTEMS'99, 1999, : 148 - 166
  • [8] Using data mining techniques to generate test cases from graph transformation systems specifications
    Araghi, Maryam Asgari
    Rafe, Vahid
    Khendek, Ferhat
    AUTOMATED SOFTWARE ENGINEERING, 2024, 31 (01)
  • [9] Using data mining techniques to generate test cases from graph transformation systems specifications
    Maryam Asgari Araghi
    Vahid Rafe
    Ferhat Khendek
    Automated Software Engineering, 2024, 31
  • [10] An Automatic Approach to Generate Haste Code from Simulink Specifications
    Tranchero, Maurizio
    Reyneri, Leonardo M.
    Bink, Arjan
    de Wit, Mark
    ASYNC: 2009 15TH IEEE INTERNATIONAL SYMPOSIUM ON ASYNCHRONOUS CIRCUITS AND SYSTEMS, 2009, : 162 - +