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 条
  • [41] Search-Based Algorithm With Scatter Search Strategy for Automated Test Case Generation of NLP Toolkit
    Liu, Fangqing
    Huang, Han
    Yang, Zhongming
    Hao, Zhifeng
    Wang, Jiangping
    IEEE TRANSACTIONS ON EMERGING TOPICS IN COMPUTATIONAL INTELLIGENCE, 2021, 5 (03): : 491 - 503
  • [42] Test Case Generation for Ethereum Smart Contract based on Data Dependency Analysis of State Variable
    Du, Jinhu
    Huang, Song
    Wang, Xingya
    Zheng, Changyou
    Sun, Jinlei
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY, QRS, 2022, : 710 - 720
  • [43] Incremental test case generation using bounded model checking: an application to automatic rating
    Anielak, Grzegorz
    Jakacki, Grzegorz
    Lasota, Slawomir
    INTERNATIONAL JOURNAL ON SOFTWARE TOOLS FOR TECHNOLOGY TRANSFER, 2015, 17 (03) : 339 - 349
  • [44] Incremental test case generation using bounded model checking: an application to automatic rating
    Grzegorz Anielak
    Grzegorz Jakacki
    Sławomir Lasota
    International Journal on Software Tools for Technology Transfer, 2015, 17 : 339 - 349
  • [45] Automating Test Case Generation for Android Applications using Model-based Testing
    Khan, Usman Habib
    Khan, Muhammad Naeem Ahmed
    Mirza, Aamir Mehmood
    Akram, Muhammad
    Fakhar, Shariqa
    Hussain, Shumaila
    Magsi, Irfan Ahmed
    Wagan, Raja Asif
    EMITTER-INTERNATIONAL JOURNAL OF ENGINEERING TECHNOLOGY, 2022, 10 (01) : 63 - 82
  • [46] Model-based automatic test case generation for automotive embedded software testing
    Shin, Ki-Wook
    Lim, Dong-Jin
    INTERNATIONAL JOURNAL OF AUTOMOTIVE TECHNOLOGY, 2018, 19 (01) : 107 - 119
  • [47] Model Based Test Case Generation from UML Sequence and Interaction Overview Diagrams
    Jena, Ajay Kumar
    Swain, Santosh Kumar
    Mohapatra, Durga Prasad
    COMPUTATIONAL INTELLIGENCE IN DATA MINING, VOL 2, 2015, 32 : 247 - 257
  • [48] Model-based automatic test case generation for automotive embedded software testing
    Ki-Wook Shin
    Dong-Jin Lim
    International Journal of Automotive Technology, 2018, 19 : 107 - 119
  • [49] A Model-based Test Case Generation Method for Function Testing of Train Control Systems
    Lv, Jidong
    Wang, Haifeng
    Liu, Hongjie
    Zhang, Lu
    Tang, Tao
    2016 IEEE INTERNATIONAL CONFERENCE ON INTELLIGENT RAIL TRANSPORTATION (ICIRT), 2016, : 334 - 346
  • [50] GUI and Usage Model-Based Test Case Generation for Android Applications with Change Analysis
    San Miguel, Jose Lorenzo
    Takada, Shingo
    MOBILE!'16: PROCEEDINGS OF THE 1ST INTERNATIONAL WORKSHOP ON MOBILE DEVELOPMENT, 2016, : 43 - 44