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 条
  • [41] Probabilistic Slope Stability Evaluation Using Hybrid Metaheuristic Approach
    Zeng, Xinhua
    Khajehzadeh, Mohammad
    Iraji, Amin
    Keawsawasvong, Suraparb
    PERIODICA POLYTECHNICA-CIVIL ENGINEERING, 2022, 66 (04): : 1309 - 1322
  • [42] The Hiking Optimization Algorithm: A novel human-based metaheuristic approach
    Oladejo, Sunday O.
    Ekwe, Stephen O.
    Mirjalili, Seyedali
    KNOWLEDGE-BASED SYSTEMS, 2024, 26
  • [43] Magnetorheological damper parameter identification using a novel metaheuristic algorithm
    Meybodi, Mehdi Rashidi
    Bahar, Arash
    Pozo, Francesc
    MATHEMATICAL METHODS IN THE APPLIED SCIENCES, 2022, 45 (17) : 10798 - 10827
  • [44] Optimal Power Flow Through Hybrid Power System Using Metaheuristic Hybrid Algorithm
    Kumar, Naveen
    Kumar, Ramesh
    ASIAN JOURNAL OF WATER ENVIRONMENT AND POLLUTION, 2022, 19 (05) : 103 - 112
  • [45] A Novel Hybrid Metaheuristic Algorithm for Optimization of Construction Management Site Layout Planning
    Prayogo, Doddy
    Cheng, Min-Yuan
    Wu, Yu-Wei
    Redi, A. A. N. Perwira
    Yu, Vincent F.
    Persada, Satria Fadil
    Nadlifatin, Reny
    ALGORITHMS, 2020, 13 (05)
  • [46] University Course Timetabling Using a Hybrid Harmony Search Metaheuristic Algorithm
    Al-Betar, Mohammed Azmi
    Khader, Ahamad Tajudin
    Zaman, Munir
    IEEE TRANSACTIONS ON SYSTEMS MAN AND CYBERNETICS PART C-APPLICATIONS AND REVIEWS, 2012, 42 (05): : 664 - 681
  • [47] Code Coverage of Adaptive Random Testing
    Chen, Tsong Yueh
    Kuo, Fei-Ching
    Liu, Huai
    Wong, W. Eric
    IEEE TRANSACTIONS ON RELIABILITY, 2013, 62 (01) : 226 - 237
  • [48] Feature Selection Using Hybrid Metaheuristic Algorithm for Email Spam Detection
    Al-Rawashdeh, Ghada Hammad
    Khashan, Osama A.
    Al-Rawashde, Jawad
    Al-Gasawneh, Jassim Ahmad
    Alsokkar, Abdullah
    Alshinwa, Mohammad
    CYBERNETICS AND INFORMATION TECHNOLOGIES, 2024, 24 (02) : 156 - 171
  • [49] A novel approach for b-value optimization in Intravoxel Incoherent Motion Imaging using Metaheuristic algorithm
    Raju, Jini
    Amma, Ushadevi C.
    John, Ansamma
    EXPERT SYSTEMS WITH APPLICATIONS, 2021, 168 (168)
  • [50] A Novel Coverage Enhancing Algorithm for Hybrid Wireless Sensor Networks
    Zhang, Qingguo
    He, Tingting
    AD HOC & SENSOR WIRELESS NETWORKS, 2018, 40 (1-2) : 1 - 22