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 条
  • [21] Generating tests from B specifications and dynamic selection criteria
    Julliand, Jacques
    Masson, Pierre-Alain
    Tissot, Regis
    Bue, Pierre-Christophe
    FORMAL ASPECTS OF COMPUTING, 2011, 23 (01) : 3 - 19
  • [22] Quality control - specifications and tests
    WHO EXPERT COMMITTEE ON SPECIFICATIONS FOR PHARMACEUTICAL PREPARATIONS, 2016, 996 : 7 - 18
  • [23] STRENGTH TESTS TO MEET SPECIFICATIONS
    HUNT, TW
    JOURNAL PRESTRESSED CONCRETE INSTITUTE, 1968, 13 (02): : 65 - &
  • [24] Quality control - specifications and tests
    不详
    WHO EXPERT COMMITTEE ON SPECIFICATIONS FOR PHARMACEUTICAL PREPARATIONS, 38TH REPORT, 2004, 917 : 6 - 8
  • [25] Smooth Tests of Copula Specifications
    Lin, Juan
    Wu, Ximing
    JOURNAL OF BUSINESS & ECONOMIC STATISTICS, 2015, 33 (01) : 128 - 143
  • [26] INCINERATOR SPECIFICATIONS AND CONTRACT TESTS
    Baker, M. N.
    AMERICAN JOURNAL OF PUBLIC HEALTH, 1925, 15 (01) : A48 - A52
  • [27] Quality control - specifications and tests
    WHO EXPERT COMMITTEE ON SPECIFICATIONS FOR PHARMACEUTICAL PREPARATIONS, 2013, 981 : 5 - 13
  • [28] INFILTRATION SPECIFICATIONS AND TESTS - DISCUSSION
    GAITHER, CG
    SEWAGE AND INDUSTRIAL WASTES, 1955, 27 (03): : 254 - 256
  • [29] Quality control - specifications and tests
    WHO EXPERT COMMITTEE ON SPECIFICATIONS FOR PHARMACEUTICAL PREPARATIONS: FORTY-FOURTH REPORT, 2010, 957 : 16 - 35
  • [30] UMTG: A Toolset to Automatically Generate System Test Cases from Use Case Specifications
    Wang, Chunhui
    Pastore, Fabrizio
    Goknil, Arda
    Briand, Lionel C.
    Iqbal, Zohaib
    2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, : 942 - 945