HSTCG: State-Aware Simulink Model Test Case Generation With Heuristic Strategy

被引:0
作者
Su, Zhuo [1 ]
Yu, Zehong [1 ]
Wang, Dongyan [2 ]
Yang, Yixiao [3 ]
Wang, Rui [3 ]
Chang, Wanli [4 ]
Cui, Aiguo [5 ]
Jiang, Yu [1 ]
机构
[1] Tsinghua Univ, Sch Software, Key Lab Informat Software Secur, BNRist, Beijing 100084, Peoples R China
[2] Renmin Univ China, Informat Technol Ctr, Beijing 100872, Peoples R China
[3] Capital Normal Univ, Informat Engn Coll, Beijing 100089, Peoples R China
[4] Univ York, Dept Comp Sci, York YO10 5GH, England
[5] Huawei Technol Co Ltd, Shanghai 200120, Peoples R China
关键词
Task analysis; Software packages; Computational modeling; Data models; Testing; Logic; Codes; Test case generation; Simulink; constraint solving; heuristic strategy;
D O I
10.1109/TSE.2024.3428528
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Simulink has gained widespread recognition as a valuable tool for system design. As systems grow increasingly complex, particularly in terms of their internal states, this complexity poses new challenges for existing model testing methodologies. Traditional techniques such as constraint solving and random search encounter difficulties when attempting to explore the intricate logic embedded within these models. In this paper, we introduce HSTCG, a state-aware test case generation method for Simulink models with heuristic strategy. HSTCG solves only one iteration of the model each time to get the test input that can cover a target branch, then executes the model once to obtain and update the new model state based on the solved input dynamically. Then, it solves the remaining branches based on the new model state iteratively until all the coverage requirements are satisfied. To improve the efficiency of test case generation, we also designed a heuristic strategy containing heuristic branch searching, repeated state filter and unreached branch filter to minimize the times of constraint solving. We implemented HSTCG and evaluated it on several benchmark Simulink models. Compared to the built-in Simulink Design Verifier and state-of-the-art academic work SimCoTest, HSTCG achieves an average improvement of 55% and 103% on Decision Coverage, 53% and 62% on Condition Coverage and 192% and 201% on Modified Condition Decision Coverage, respectively. We also validated the significant improvement of the heuristic strategy, which can improve the efficiency of test case generation by 62.2% on average.
引用
收藏
页码:3088 / 3103
页数:16
相关论文
共 50 条
  • [31] ESBMC 6.1: automated test case generation using bounded model checking
    Mikhail R. Gadelha
    Rafael S. Menezes
    Lucas C. Cordeiro
    International Journal on Software Tools for Technology Transfer, 2021, 23 : 857 - 861
  • [32] Model-based test case generation and prioritization: a systematic literature review
    Mohd-Shafie, Muhammad Luqman
    Kadir, Wan Mohd Nasir Wan
    Lichter, Horst
    Khatibsyarbini, Muhammad
    Isa, Mohd Adham
    SOFTWARE AND SYSTEMS MODELING, 2022, 21 (02) : 717 - 753
  • [33] Class hierarchical test case generation algorithm based on expanded EMDPN model
    Jun-yi Li
    Hong-fang Gong
    Ji-ping Hu
    Bei-ji Zou
    Jia-guang Sun
    Journal of Central South University of Technology, 2006, 13 : 717 - 721
  • [34] Model-based test case generation and prioritization: a systematic literature review
    Muhammad Luqman Mohd-Shafie
    Wan Mohd Nasir Wan Kadir
    Horst Lichter
    Muhammad Khatibsyarbini
    Mohd Adham Isa
    Software and Systems Modeling, 2022, 21 : 717 - 753
  • [35] Research on Fuzzing Test Case Generation Method Based on Gaussian Mixture Model
    Fu Jingqi
    Cao Yifan
    Yi Mubai
    PROCEEDINGS OF THE 2019 31ST CHINESE CONTROL AND DECISION CONFERENCE (CCDC 2019), 2019, : 2674 - 2678
  • [36] ESBMC 6.1: automated test case generation using bounded model checking
    Gadelha, Mikhail R.
    Menezes, Rafael S.
    Cordeiro, Lucas C.
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2021, 23 (06) : 857 - 861
  • [37] Class hierarchical test case generation algorithm based on expanded EMDPN model
    李军义
    龚红仿
    胡积平
    邹北骥
    孙家广
    Journal of Central South University of Technology(English Edition), 2006, (06) : 717 - 721
  • [38] Threat Model-based Security Test Case Generation Framework and Tool
    Fu, Chang-Lan
    Zhang, He
    Li, Feng-Long
    Kuang, Hong-Yu
    Ruan Jian Xue Bao/Journal of Software, 2024, 35 (10): : 4573 - 4603
  • [39] Class hierarchical test case generation algorithm based on expanded EMDPN model
    Li Jun-yi
    Gong Hong-fang
    Hu Ji-ping
    Zou Bei-ji
    Sun Jia-guang
    JOURNAL OF CENTRAL SOUTH UNIVERSITY OF TECHNOLOGY, 2006, 13 (06): : 717 - 721
  • [40] Model Based Test Case Generation and Optimization Using Intelligent Optimization Agent
    Mahali, Prateeva
    Acharya, Arup Abhinna
    Mohapatra, Durga Prasad
    INFORMATION SYSTEMS DESIGN AND INTELLIGENT APPLICATIONS, VOL 1, 2015, 339 : 479 - 488