A novel approach to automatic model-based test case generation

被引:2
|
作者
Rezaee, A. [1 ]
Zamani, B. [1 ]
机构
[1] Univ Isfahan, Dept Software Engn, MDSE Res Grp, Esfahan, Iran
关键词
Model-based testing; Automated testing; UML state machine; AMPL; Constraint solver;
D O I
10.24200/sci.2017.4528
中图分类号
T [工业技术];
学科分类号
08 ;
摘要
This paper proposes a new method for automatic generation of test cases using model-based testing. As test model, class and state diagrams are used and constraints are expressed using Object Constraint Language (OCL). First, the state machine is converted into a mathematical representation in AMPL (A Mathematical Programming Language). Then, using a search algorithm and based upon coverage criteria, the abstract paths are selected from state machine. Second, using symbolic execution, the generated abstract path along with the constraints on this path is converted into the data of generated mathematical model. Third, the generated mathematical problem is solved with solvers that have interface with AMPL, and the test data are produced for each abstract test case. Finally, the generated test data and abstract paths are transformed into executable test cases. All-Transitions and All-States coverage criteria are used for conducting the search algorithm as well as the criteria to evaluate the quality of the generated test cases. To validate the work, by utilizing various solvers, the test cases are generated for various problems. The proposed technique is implemented as a tool, named MoBaTeG. The tool shows good result in terms of test case generation execution time, test goals satisfaction rate, source code instructions coverage, and boundary values generation. (c) 2017 Sharif University of Technology. All rights reserved.
引用
收藏
页码:3132 / 3147
页数:16
相关论文
共 50 条
  • [1] Model-based automatic test case generation for automotive embedded software testing
    Ki-Wook Shin
    Dong-Jin Lim
    [J]. International Journal of Automotive Technology, 2018, 19 : 107 - 119
  • [2] Model-based automatic test case generation for automotive embedded software testing
    Shin, Ki-Wook
    Lim, Dong-Jin
    [J]. INTERNATIONAL JOURNAL OF AUTOMOTIVE TECHNOLOGY, 2018, 19 (01) : 107 - 119
  • [3] A Model-based Approach for Test Cases Generation
    Silva, J. C.
    Silva, J. L.
    Campos, J. C.
    Saraiva, J. A.
    [J]. PROCEEDINGS OF THE 2013 8TH IBERIAN CONFERENCE ON INFORMATION SYSTEMS AND TECHNOLOGIES (CISTI 2013), 2013,
  • [4] A New Approach to Model-Based Test Case Generation for Industrial Automation Systems
    Pinkal, Kevin
    Niggemann, Oliver
    [J]. 2017 IEEE 15TH INTERNATIONAL CONFERENCE ON INDUSTRIAL INFORMATICS (INDIN), 2017, : 53 - 58
  • [5] Decomposition-Based Approach for Model-Based Test Generation
    Arcaini, Paolo
    Gargantini, Angelo
    Riccobene, Elvinia
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2019, 45 (05) : 507 - 520
  • [6] A Model-Based Approach to Automatic Generation of TSN Network Simulations
    Samson, Maxime
    Vergnaud, Thomas
    Dujardin, Eric
    Ciarletta, Laurent
    Song, Ye-Qiong
    [J]. 18TH IEEE INTERNATIONAL WORKSHOP ON FACTORY COMMUNICATION SYSTEMS 2022 (WFCS 2022), 2022, : 41 - 48
  • [7] Model-Based Approach for Automatic Generation of Hardware Architectures for Robotics
    Podlubne, Ariel
    Mey, Johannes
    Schoene, Rene
    Assmann, Uwe
    Goehringer, Diana
    [J]. IEEE ACCESS, 2021, 9 : 140921 - 140937
  • [8] Combining algebraic and model-based test case generation
    Dan, L
    Aichernig, BK
    [J]. THEORETICAL ASPECTS OF COMPUTING - ICTAC 2004, 2005, 3407 : 250 - 264
  • [9] Model-Based Test Case Generation for Web Applications
    Nabuco, Miguel
    Paiva, Ana C. R.
    [J]. COMPUTATIONAL SCIENCE AND ITS APPLICATIONS, PART VI - ICCSA 2014, 2014, 8584 : 248 - 262
  • [10] Model-based test case automatic generation of CTCS-3 train control system
    National Engineering Research Center of Rail Transportation Operation and Control System, Beijing Jiaotong University, Beijing
    100044, China
    不详
    100044, China
    不详
    100044, China
    [J]. Xinan Jiaotong Daxue Xuebao, 5 (917-927):