Multi-path Coverage Test Case Generation Combining Chained SVM and XGBoost

被引:0
|
作者
Qian, Zhong-Sheng [1 ]
Yu, Qing-Yuan [1 ]
Zhang, Ding [1 ]
Yao, Chang-Sen [1 ]
Qin, Lang-Yue [1 ]
Cheng, Yi-Wei [1 ]
机构
[1] School of Information Management, Jiangxi University of Finance and Economics, Nanchang,330013, China
来源
Ruan Jian Xue Bao/Journal of Software | 2024年 / 35卷 / 06期
关键词
D O I
10.13328/j.cnki.jos.006905
中图分类号
学科分类号
摘要
Machine learning methods can be well combined with software testing to enhance test effect, but few scholars have applied it to test data generation. In order to further improve the efficiency of test data generation, a chained model combining support vector machine (SVM) and extreme gradient boosting (XGBoost) is proposed, and multi-path test data generation is realized by a genetic algorithm based on the chained model. Firstly, this study uses certain samples to train several sub-models (i.e., SVM and XGBoost) for predicting the state of path nodes, filters the optimal sub-models based on the prediction accuracy value of the sub-models, and links the optimal sub-models in sequence according to the order of the path nodes, so as to form a chained model, namely chained SVM and XGBoost (C-SVMXGBoost). When using the genetic algorithm to generate test cases, the study makes use of the chained model that is trained instead of the instrumentation method to obtain the test data coverage path (i.e., predicted path), finds the path set with the predicted path similar to the target path, performs instrumentation verification on the predicted path with similar path sets, obtains accurate paths, and calculates fitness values. In the crossover and mutation process, excellent test cases with a large path level depth in the sample set are introduced for reuse to generate test data covering the target path. Finally, individuals with higher fitness during the evolutionary generation are saved, and C-SVMXGBoost is updated, so as to further improve the test efficiency. Experiments show that C-SVMXGBoost is more suitable for solving the path prediction problem and improving the test efficiency than other chained models. Moreover, compared with the existing classical methods, the proposed method can increase the coverage rate by up to 15%. The mean evolutionary algebra is also reduced, and the reduction percentage can reach 65% on programs of large size. © 2024 Chinese Academy of Sciences. All rights reserved.
引用
收藏
页码:2795 / 2820
相关论文
共 50 条
  • [1] Multi-path Coverage Strategy Combining Key Point Probability and Path Similarity
    Qian, Zhong-Sheng
    Zhu, Jie
    Zhu, Yi-Min
    Yu, Qing-Yuan
    Li, Duan-Ming
    Song, Jia
    [J]. Ruan Jian Xue Bao/Journal of Software, 2022, 33 (02): : 434 - 454
  • [2] Evolutionary Generation of Test Suites for Multi-Path Coverage of MPI Programs With Non-Determinism
    Sun, Baicai
    Gong, Dunwei
    Pan, Feng
    Yao, Xiangjuan
    Tian, Tian
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2023, 49 (06) : 3504 - 3523
  • [3] A Novel Algorithm for Multi-path Test Data Generation
    Wang Shitao
    Wu Hao
    [J]. 2013 FOURTH INTERNATIONAL CONFERENCE ON DIGITAL MANUFACTURING AND AUTOMATION (ICDMA), 2013, : 58 - 60
  • [4] Generating test data for both paths coverage and faults detection using genetic algorithms: multi-path case
    Zhang, Yan
    Gong, Dunwei
    [J]. FRONTIERS OF COMPUTER SCIENCE, 2014, 8 (05) : 726 - 740
  • [5] Generating test data for both paths coverage and faults detection using genetic algorithms: multi-path case
    Yan Zhang
    Dunwei Gong
    [J]. Frontiers of Computer Science, 2014, 8 : 726 - 740
  • [6] Multi-task modeling and multifactorial optimization for path coverage problem of automated test case generation
    Wang, Xupeng
    Hu, Zhongbo
    Shi, Lingyi
    Cai, Gaocheng
    Su, Qinghua
    [J]. APPLIED SOFT COMPUTING, 2024, 154
  • [7] Stealth Coverage Multi-path Corridors Planning for UAV Fleet
    He, Pingchuan
    Dai, Shuling
    [J]. PROCEEDINGS 2013 INTERNATIONAL CONFERENCE ON MECHATRONIC SCIENCES, ELECTRIC ENGINEERING AND COMPUTER (MEC), 2013, : 2922 - 2926
  • [8] Integrating DSGEO into test case generation for path coverage of MPI programs
    Sun, Baicai
    Gong, Dunwei
    Yao, Xiangjuan
    [J]. INFORMATION AND SOFTWARE TECHNOLOGY, 2023, 153
  • [9] Software Test Case Generation Based on the Fault Propagation Path Coverage
    Wang Kun
    Wang Yichen
    [J]. ANNUAL RELIABILITY AND MAINTAINABILITY SYMPOSIUM 2016 PROCEEDINGS, 2016,
  • [10] Generation and application of multi-path cat states of light
    Ishida, Natsuko
    Ota, Yukihiro
    Yamamoto, Yoshihisa
    [J]. NEW JOURNAL OF PHYSICS, 2009, 11