A novel approach for code coverage testing using hybrid metaheuristic algorithm

被引:0
|
作者
Ahsan F. [1 ]
Anwer F. [1 ]
机构
[1] Department of Computer Science, Aligarh Muslim University, Aligarh
关键词
Code coverage; Genetic algorithm; Hybrid algorithm; Memetic algorithm; Particle swarm optimization; Path coverage; Software testing;
D O I
10.1007/s41870-024-01968-x
中图分类号
学科分类号
摘要
Testing is essential for the software’s success, but despite this, it is a time and resource-consuming activity. Therefore, researchers and practitioners continuously try to improve software testing automation to maximize test coverage and make it fast and reliable. Meta-heuristics are high-level frameworks that many researchers have used to generate test data for software testing. Maximizing test coverage would also indirectly help to find vulnerabilities in the code. In this paper, we have implemented an improved hybrid metaheuristic algorithm to generate test cases, utilizing particle swarm optimization (PSO) and genetic algorithm (GA) for path coverage testing criterion. The used fitness function is the combination of branch distance, approximation level and path distance. The proposed approach is a hybrid Particle Swarm Optimization and Genetic Algorithm (PSO-GA). We compared the meta-heuristics GA, PSO and Hybrid PSO-GA algorithm with different fitness functions. Moreover, the experimental result shows that the hybrid algorithm improves outcomes compared to GA and PSO for the combined fitness functions. This approach demonstrates noteworthy efficacy in addressing security vulnerabilities during testing, particularly due to its emphasis on comprehensive path testing. This methodology has yielded significant outcomes in the realm of security testing, highlighting its potential for practical application and exploration in research. Furthermore, more meta-heuristics can be incorporated into the hybrid approach. © Bharati Vidyapeeth's Institute of Computer Applications and Management 2024.
引用
收藏
页码:3691 / 3701
页数:10
相关论文
共 50 条
  • [1] Markov approach for quantifying the software code coverage using genetic algorithm in software testing
    Boopathi, M.
    Sujatha, R.
    Kumar, C. Senthil
    Narasimman, S.
    Rajan, A.
    INTERNATIONAL JOURNAL OF BIO-INSPIRED COMPUTATION, 2019, 14 (01) : 27 - 45
  • [2] Sepsis Prediction by Using a Hybrid Metaheuristic Algorithm: A Novel Approach for Optimizing Deep Neural Networks
    Kaya, Umut
    Yilmaz, Atinc
    Asar, Sinan
    DIAGNOSTICS, 2023, 13 (12)
  • [3] Improving Stress Search Based Testing using a Hybrid Metaheuristic Approach
    Bernardo Gois, Francisco Nauber
    Muniz de Farias, Pedro Porfirio
    Coelho, Andre L. V.
    Barbosa, Thiago Monteiro
    PROCEEDINGS OF THE 2016 XLII LATIN AMERICAN COMPUTING CONFERENCE (CLEI), 2016,
  • [4] Enhanced Code Coverage Approach for Regression Testing
    Fawzy, Mohamed Mamdouh
    EI-Mahallawy, Mohamed S.
    Ei-Deeb, Hesham
    2015 INTERNATIONAL CONFERENCE ON CONTROL, INSTRUMENTATION, COMMUNICATION AND COMPUTATIONAL TECHNOLOGIES (ICCICCT), 2015, : 438 - 442
  • [5] Demand-side management in microgrid using novel hybrid metaheuristic algorithm
    Masood Rizvi
    Bhanu Pratap
    Shashi Bhushan Singh
    Electrical Engineering, 2023, 105 : 1867 - 1881
  • [6] Demand-side management in microgrid using novel hybrid metaheuristic algorithm
    Rizvi, Masood
    Pratap, Bhanu
    Singh, Shashi Bhushan
    ELECTRICAL ENGINEERING, 2023, 105 (03) : 1867 - 1881
  • [7] A novel hybrid metaheuristic algorithm for model order reduction in the delta domain: a unified approach
    Ganguli, Souvik
    Kaur, Gagandeep
    Sarkar, Prasanta
    NEURAL COMPUTING & APPLICATIONS, 2019, 31 (10): : 6207 - 6221
  • [8] A novel hybrid metaheuristic algorithm for model order reduction in the delta domain: a unified approach
    Souvik Ganguli
    Gagandeep Kaur
    Prasanta Sarkar
    Neural Computing and Applications, 2019, 31 : 6207 - 6221
  • [9] Human urbanization algorithm: A novel metaheuristic approach
    Ghasemian, Hadi
    Ghasemian, Fahimeh
    Vahdat-Nejad, Hamed
    MATHEMATICS AND COMPUTERS IN SIMULATION, 2020, 178 : 1 - 15
  • [10] An Effective Hybrid Metaheuristic Approach Based on the Genetic Algorithm
    Roeva, Olympia
    Zoteva, Dafina
    Roeva, Gergana
    Ignatova, Maya
    Lyubenova, Velislava
    MATHEMATICS, 2024, 12 (23)