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 条
  • [1] STCG: State-Aware Test Case Generation for Simulink Models
    Su, Zhuo
    Yu, Zehong
    Wang, Dongyan
    Yang, Yixiao
    Wang, Rui
    Chang, Wanli
    Cui, Aiguo
    Jiang, Yu
    2023 60TH ACM/IEEE DESIGN AUTOMATION CONFERENCE, DAC, 2023,
  • [2] Optimal Test Case Generation for Simulink Models Using Slicing
    Jiang, Zhenying
    Wu, Xiao
    Dong, Zeqian
    Mu, Ming
    2017 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY COMPANION (QRS-C), 2017, : 363 - 369
  • [3] Case Generation Technique for Interoperability Test of Component Based Software from State Transition Model
    Byoun, Wan-Seob
    Yoo, Cheol-Jung
    Noh, Hye-min
    Chang, Ok-Bae
    INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND NETWORK SECURITY, 2007, 7 (05): : 151 - 157
  • [4] Test sequence generation of a communication protocol by an heuristic state configuration exploration
    Shu, Ting
    Sun, Shou-Qian
    Wang, Hai-Ning
    Xu, Wei-Qiang
    Li, Wen-Shu
    Beijing Youdian Daxue Xuebao/Journal of Beijing University of Posts and Telecommunications, 2009, 32 (06): : 120 - 124
  • [5] A New Strategy for Pairwise Test Case Generation
    Cui, Yingxia
    Li, Longshu
    Yao, Sheng
    2009 THIRD INTERNATIONAL SYMPOSIUM ON INTELLIGENT INFORMATION TECHNOLOGY APPLICATION, VOL 3, PROCEEDINGS, 2009, : 303 - 306
  • [6] Test-Case Generation for Embedded Simulink via Formal Concept Analysis
    He, Nannan
    Ruemmer, Philipp
    Kroening, Daniel
    PROCEEDINGS OF THE 48TH ACM/EDAC/IEEE DESIGN AUTOMATION CONFERENCE (DAC), 2011, : 224 - 229
  • [7] A model for test case design and generation
    Salem, AM
    SERP'04: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING RESEARCH AND PRACTICE, VOLS 1 AND 2, 2004, : 242 - 247
  • [8] Heuristic Test Case Generation Technique Using Extended Place/Transition Nets
    Takagi, Tomohiko
    Akagi, Akinori
    Katayama, Tetsuro
    APPLIED COMPUTING & INFORMATION TECHNOLOGY, 2018, 727 : 103 - 115
  • [9] Application of an Improved Combinatorial Test Strategy in Test Case Generation for Aviation Software
    Qiu, Xiaohan
    Jing, Hua
    Zhang, Wei
    PROCEEDINGS OF THE 6TH INTERNATIONAL CONFERENCE ON INFORMATION TECHNOLOGY: IOT AND SMART CITY (ICIT 2018), 2018, : 65 - 69
  • [10] Model-based, mutation-driven test case generation via heuristic-guided branching search
    Fellner, Andreas
    Krenn, Willibald
    Schlick, Rupert
    Tarrach, Thorsten
    Weissenbacher, Georg
    MEMOCODE 2017: PROCEEDINGS OF THE 15TH ACM-IEEE INTERNATIONAL CONFERENCE ON FORMAL METHODS AND MODELS FOR SYSTEM DESIGN, 2017, : 57 - 67