RATE: A model-based testing approach that combines model refinement and test execution

被引:0
作者
Bombarda, Andrea [1 ,4 ]
Bonfanti, Silvia [1 ,4 ]
Gargantini, Angelo [1 ,4 ]
Lei, Yu [2 ]
Duan, Feng [3 ]
机构
[1] Univ Bergamo, Dept Management Informat & Prod Engn, Bergamo, Italy
[2] Univ Texas Arlington, Dept Comp Sci & Engn, Arlington, TX USA
[3] Jiangxi Univ Finance & Econ, Sch Software & IoT Engn, Nanchang, Jiangxi, Peoples R China
[4] Univ Bergamo, Dept Management Informat & Prod Engn, Viale Marconi 5, Dalmine, Italy
关键词
abstract state machine; formal Method; IEEE 11073 PHD protocol; mechanical ventilator; model-based testing; refinement; test execution; Asmeta; testing implementation; GENERATION; SOFTWARE;
D O I
10.1002/stvr.1835
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper, we present an approach to conformance testing based on abstract state machines (ASMs) that combines model refinement and test execution (RATE) and its application to three case studies. The RATE approach consists in generating test sequences from ASMs and checking the conformance between code and models in multiple iterations. The process follows these steps: (1) model the system as an abstract state machine; (2) validate and verify the model; (3) generate test sequences automatically from the ASM model; (4) execute the tests over the implementation and compute the code coverage; (5) if the coverage is below the desired threshold, then refine the abstract state machine model to add the uncovered functionalities and return to step 2. We have applied the proposed approach in three case studies: a traffic light control system (TLCS), the IEEE 11073-20601 personal health device (PHD) protocol, and the mechanical ventilator Milano (MVM). By applying RATE, at each refinement level, we have increased code coverage and identified some faults or conformance errors for all the case studies. The fault detection capability of RATE has also been confirmed by mutation analysis, in which we have highlighted that, many mutants can be killed even by the most abstract models.
引用
收藏
页数:34
相关论文
共 47 条
[1]   The novel Mechanical Ventilator Milano for the COVID-19 pandemic [J].
Abba, A. ;
Accorsi, C. ;
Agnes, P. ;
Alessi, E. ;
Amaudruz, P. ;
Annovi, A. ;
Desages, F. Ardellier ;
Back, S. ;
Badia, C. ;
Bagger, J. ;
Basile, V. ;
Batignani, G. ;
Bayo, A. ;
Bell, B. ;
Beschi, M. ;
Biagini, D. ;
Bianchi, G. ;
Bicelli, S. ;
Bishop, D. ;
Boccali, T. ;
Bombarda, A. ;
Bonfanti, S. ;
Bonivento, W. M. ;
Bouchard, M. ;
Breviario, M. ;
Brice, S. ;
Brown, R. ;
Calvo-Mozota, J. M. ;
Camozzi, L. ;
Camozzi, M. ;
Capra, A. ;
Caravati, M. ;
Carlini, M. ;
Ceccanti, A. ;
Celano, B. ;
Cela Ruiz, J. M. ;
Charette, C. ;
Cogliati, G. ;
Constable, M. ;
Crippa, C. ;
Croci, G. ;
Cudmore, S. ;
Dahl, C. E. ;
Dal Molin, A. ;
Daley, M. ;
Di Guardo, C. ;
D'Avenio, G. ;
Davignon, O. ;
Del Tutto, M. ;
De Ruiter, J. .
PHYSICS OF FLUIDS, 2021, 33 (03)
[2]  
Abrial Jean-Raymond, 2010, Modeling in EventB: system and software engineering
[3]  
Aichernig Bernhard K., 2013, Tests and Proofs. 7th International Conference, TAP 2013. Proceedings: LNCS 7942, P20, DOI 10.1007/978-3-642-38916-0_2
[4]  
Andre E., 2019, LECT NOTES COMPUTER, P1
[5]  
[Anonymous], 2016, 20601 ISOIECIEEE
[6]  
[Anonymous], 2003, Abstract State Machines. A method for High-Level System Design and Analysis
[7]  
Arcaini P., 2021, Logic, Computation and Rigorous Methods, P215, DOI [10.1007/978-3-030-76020-513, DOI 10.1007/978-3-030-76020-513]
[8]   Modelling an Automotive Software-Intensive System with Adaptive Features Using ASMETA [J].
Arcaini, Paolo ;
Bonfanti, Silvia ;
Gargantini, Angelo ;
Riccobene, Elvinia ;
Scandurra, Patrizia .
RIGOROUS STATE-BASED METHODS, ABZ 2020, 2020, 12071 :302-317
[9]   Automatic Refinement of ASM Abstract Test Cases [J].
Arcaini, Paolo ;
Riccobene, Elvinia .
2019 IEEE 12TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2019), 2019, :1-10
[10]   Integrating formal methods into medical software development: The ASM approach [J].
Arcaini, Paolo ;
Bonfanti, Silvia ;
Gargantini, Angelo ;
Mashkoor, Atif ;
Riccobene, Elvinia .
SCIENCE OF COMPUTER PROGRAMMING, 2018, 158 :148-167