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 条
  • [11] Model-based, Mutation-driven Test-case Generation Via Heuristic-guided Branching Search
    Fellner, Andreas
    Krenn, Willibald
    Schlick, Rupert
    Tarrach, Thorsten
    Weissenbacher, Georg
    ACM TRANSACTIONS ON EMBEDDED COMPUTING SYSTEMS, 2019, 18 (01)
  • [12] A Scalable Monte-Carlo Test-Case Generation Tool for Large and Complex Simulink Models
    Tomita, Takashi
    Ishii, Daisuke
    Murakami, Toru
    Takeuchi, Shigeki
    Aoki, Toshiaki
    2019 IEEE/ACM 11TH INTERNATIONAL WORKSHOP ON MODELLING IN SOFTWARE ENGINEERING (MISE 2019), 2019, : 39 - 46
  • [13] Testing with Fewer Resources: An Adaptive Approach to Performance-Aware Test Case Generation
    Grano, Giovanni
    Laaber, Christoph
    Panichella, Annibale
    Panichella, Sebastiano
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2021, 47 (11) : 2332 - 2347
  • [14] CyPhyTest: Cyber Physical Interaction Aware Test Case Generation to Identify Operational Changes
    Maity, Aranyak
    Banerjee, Ayan
    Lamrani, Imane
    Gupta, Sandeep K. S.
    2022 IEEE 5TH INTERNATIONAL CONFERENCE ON INDUSTRIAL CYBER-PHYSICAL SYSTEMS, ICPS, 2022,
  • [15] Model-Based Policy Synthesis and Test-Case Generation for Autonomous Systems
    Gu, Rong
    Enoiu, Eduard
    2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VERIFICATION AND VALIDATION WORKSHOPS, ICSTW, 2023, : 18 - 27
  • [16] Test case Generation from Cause-Effect Graph based on Model Transformation
    Son, Hyun Seung
    Kim, R. Young Chul
    Park, Young B.
    2014 INTERNATIONAL CONFERENCE ON INFORMATION SCIENCE AND APPLICATIONS (ICISA), 2014,
  • [17] Automatic test case generation strategy for system level based on components with constraints
    State Key Laboratory of Software Development Environment, Beihang University, Beijing, China
    J. Comput. Inf. Syst., 16 (5841-5851): : 5841 - 5851
  • [18] Test Case Generation from UML State Machine Diagram: A Survey
    Aggarwal, Manuj
    Sabharwal, Sangeeta
    2012 THIRD INTERNATIONAL CONFERENCE ON COMPUTER AND COMMUNICATION TECHNOLOGY (ICCCT), 2012, : 133 - 140
  • [19] Test Case Generation from Conjunctions of Predicates with Model Checking
    Tian Cong
    Liu Shaoying
    Duan Zhenhua
    CHINESE JOURNAL OF ELECTRONICS, 2014, 23 (02) : 271 - 277
  • [20] Test Case Generation from Conjunctions of Predicates with Model Checking
    TIAN Cong
    LIU Shaoying
    DUAN Zhenhua
    Chinese Journal of Electronics, 2014, 23 (02) : 271 - 277