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 条
  • [21] Overlapping community detection with a novel hybrid metaheuristic optimisation algorithm
    Messaoudi, Imane
    Kamel, Nadjet
    INTERNATIONAL JOURNAL OF DATA MINING MODELLING AND MANAGEMENT, 2020, 12 (01) : 118 - 139
  • [22] Hybrid Metaheuristic Algorithm for Clustering
    Oduntan, Olayinka Idowu
    Thulasiraman, Parimala
    2018 IEEE SYMPOSIUM SERIES ON COMPUTATIONAL INTELLIGENCE (IEEE SSCI), 2018, : 1 - 9
  • [23] Probabilistic Optimal Power Flow Solution Using a Novel Hybrid Metaheuristic and Machine Learning Algorithm
    Shaheen, Mohamed A. M.
    Hasanien, Hany M.
    Mekhamer, Said F.
    Qais, Mohammed H.
    Alghuwainem, Saad
    Ullah, Zia
    Tostado-Veliz, Marcos
    Turky, Rania A.
    Jurado, Francisco
    Elkadeem, Mohamed R.
    MATHEMATICS, 2022, 10 (17)
  • [24] A novel metaheuristic optimization algorithm: the monarchy metaheuristic
    Ahmia, Ibtissam
    Aider, Meziane
    TURKISH JOURNAL OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCES, 2019, 27 (01) : 362 - 376
  • [25] Binary Peacock Algorithm: A Novel Metaheuristic Approach for Feature Selection
    Banati, Hema
    Sharma, Richa
    Yadav, Asha
    JOURNAL OF CLASSIFICATION, 2024, 41 (02) : 216 - 244
  • [26] A novel hybrid metaheuristic optimization method: hypercube natural aggregation algorithm
    Oscar Maciel
    Arturo Valdivia
    Diego Oliva
    Erik Cuevas
    Daniel Zaldívar
    Marco Pérez-Cisneros
    Soft Computing, 2020, 24 : 8823 - 8856
  • [27] A novel hybrid metaheuristic optimization method: hypercube natural aggregation algorithm
    Maciel, Oscar
    Valdivia, Arturo
    Oliva, Diego
    Cuevas, Erik
    Zaldivar, Daniel
    Perez-Cisneros, Marco
    SOFT COMPUTING, 2020, 24 (12) : 8823 - 8856
  • [28] Goal programming using multiple objective hybrid metaheuristic algorithm
    Dhouib, S.
    Kharrat, A.
    Chabchoub, H.
    JOURNAL OF THE OPERATIONAL RESEARCH SOCIETY, 2011, 62 (04) : 677 - 689
  • [29] Approach to multispectral thermometry with Planck formula and hybrid metaheuristic optimization algorithm
    Zhao, Baolin
    Zhang, Kaihua
    Li, Longfei
    He, Yinxin
    Yu, Kun
    Liu, Yufang
    OPTICS EXPRESS, 2023, 31 (21) : 34169 - 34188
  • [30] SCANM: A Novel Hybrid Metaheuristic Algorithm and its Comparative Performance Assessment
    Kayri, Murat
    Ipek, Cengiz
    Izci, Davut
    Eker, Erdal
    ELECTRICA, 2022, 22 (02): : 143 - 159