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 条
  • [21] Model Based Test Case Generation for Distributed Embedded Systems
    Chimisliu, Valentin
    Wotawa, Franz
    2012 IEEE INTERNATIONAL CONFERENCE ON INDUSTRIAL TECHNOLOGY (ICIT), 2012, : 656 - 661
  • [22] Test Case Generation for Event Driven Systems using 4-way Input Test Strategy
    Rahman, Mostafijur
    Othman, Rozmie Razif
    Ahmad, R. Badlishah
    Rahman, Md. Mijanur
    2015 IEEE STUDENT CONFERENCE ON RESEARCH AND DEVELOPMENT (SCORED), 2015, : 665 - 669
  • [23] Event Handler Tree Model for GUI Test Case Generation
    Wang, Bin
    Yin, Bei-Bei
    Cai, Kai-Yuan
    PROCEEDINGS 2016 IEEE 40TH ANNUAL COMPUTER SOFTWARE AND APPLICATIONS CONFERENCE WORKSHOPS (COMPSAC), VOL 2, 2016, : 58 - 63
  • [24] Automatic executable test case generation for extended finite state machine protocols
    Bourhfir, C
    Dssouli, R
    Aboulhamid, E
    Rico, N
    TESTING OF COMMUNICATING SYSTEMS, VOL 10, 1997, : 75 - 90
  • [26] An Implementation Framework for Optimizing Test Case Generation Using Model Checking
    Chang, Longhui
    Miao, Huaikou
    Lu, Gongzheng
    STRUCTURED OBJECT-ORIENTED FORMAL LANGUAGE AND METHOD, 2015, 8979 : 3 - 16
  • [27] A Model-Driven Methodology for Automotive Cybersecurity Test Case Generation
    Marksteiner, Stefan
    Priller, Peter
    2021 IEEE EUROPEAN SYMPOSIUM ON SECURITY AND PRIVACY WORKSHOPS (EUROS&PW 2021), 2021, : 129 - 135
  • [28] A unified framework for evaluating test criteria in model-checking-assisted test case generation
    Zeng, Bolong
    Tan, Li
    INFORMATION SYSTEMS FRONTIERS, 2014, 16 (05) : 823 - 834
  • [29] A unified framework for evaluating test criteria in model-checking-assisted test case generation
    Bolong Zeng
    Li Tan
    Information Systems Frontiers, 2014, 16 : 823 - 834
  • [30] Overview of Test Coverage Criteria for Test Case Generation from Finite State Machines Modelled as Directed Graphs
    Rechtberger, Vaclav
    Bures, Miroslav
    Ahmed, Bestoun S.
    2022 IEEE 15TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS (ICSTW 2022), 2022, : 207 - 214