Efficient Path Coverage-based Test Data Generation using an Enhanced Pelican Algorithm

Author:

Salehi Mojtaba1,Parsa Saeed2,Joudaki Saba3

Affiliation:

1. Islamic Azad University Boroujerd Branch

2. Iran University of Science and Technology

3. Islamic Azad University, Khorramabad Branch

Abstract

Abstract White box test data generation typically relies on an optimized search through the program input space. Metaheuristic algorithms, such as Genetic Algorithms, Particle Swarm Optimization, and Simulated Annealing, are commonly utilized to address this problem. However, it is observed that existing algorithms often fall short in generating diverse test data. Their primary focus is identifying the optimal solution rather than a diverse set of reasonable solutions. This paper aims to address the issue of limited diversity in test data generation by proposing a modified version of the Pelican Optimization Algorithm (POA). The goal is to improve coverage and reduce the fitness evaluations required for generating test data. Additionally, the paper aims to tackle the challenge of minimizing test data volume while achieving high coverage, which is a significant concern in automatic test data generation. The proposed approach introduces the adapted POA to solve the diversity problem in test data generation. The modified algorithm outperforms eight well-known metaheuristic algorithms regarding coverage and the number of fitness evaluations needed. The approach also incorporates techniques to address the challenge of reducing test data volume while maintaining high coverage. Compared to similar well-known methods, our enhanced Pelican algorithm can improve test coverage by up to 83% when generating a thousand test data for benchmark programs. Without a doubt, the diversity in test data leads to less overlap between the paths covered by the test data, which in turn results in increased path coverage and improved test effectiveness. The superior performance of the adapted POA highlights its effectiveness in generating diverse and high-coverage test data.

Publisher

Research Square Platform LLC

Reference38 articles.

1. A systematic review of search-based testing for non-functional system properties;Afzal W;Information and Software Technology,2009

2. Arcuri, A., & Briand, L. (2011). A practical guide for using statistical tests to assess randomized algorithms in software engineering, Proceedings of the 33rd international conference on software engineering, pp. 1–10.

3. Formulation and research of new fitness function in the genetic algorithm for maximum code coverage;Avdeenko T;Procedia Computer Science,2021

4. Path-oriented test cases generation based adaptive genetic algorithm;Bao X;PloS one,2017

5. Augmenting ant colony optimization with adaptive random testing to cover prime paths;Bidgoli AM;Journal of Systems and Software,2020

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3