Automated Test Data Generation Based on a Genetic Algorithm with Maximum Code Coverage and Population Diversity

Author:

Avdeenko TatianaORCID,Serdyukov KonstantinORCID

Abstract

In the present paper, we investigate an approach to intelligent support of the software white-box testing process based on an evolutionary paradigm. As a part of this approach, we solve the urgent problem of automated generation of the optimal set of test data that provides maximum statement coverage of the code when it is used in the testing process. We propose the formulation of a fitness function containing two terms, and, accordingly, two versions for implementing genetic algorithms (GA). The first term of the fitness function is responsible for the complexity of the code statements executed on the path generated by the current individual test case (current set of statements). The second term formulates the maximum possible difference between the current set of statements and the set of statements covered by the remaining test cases in the population. Using only the first term does not make it possible to obtain 100 percent statement coverage by generated test cases in one population, and therefore implies repeated launch of the GA with changed weights of the code statements which requires recompiling the code under the test. By using both terms of the proposed fitness function, we obtain maximum statement coverage and population diversity in one launch of the GA. Optimal relation between the two terms of fitness function was obtained for two very different programs under testing.

Funder

Ministry of Science and Higher Education of the Russian Federation

Publisher

MDPI AG

Subject

Fluid Flow and Transfer Processes,Computer Science Applications,Process Chemistry and Technology,General Engineering,Instrumentation,General Materials Science

Reference41 articles.

1. Software Testing Foundations: A Study Guide for the Certified Tester Exam;Spillner,2011

2. Automated software test data generation

3. Automatic generation of random self-checking test cases

4. Statistical testing data generation for UAS

Cited by 5 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Automated test data generation and stubbing method for C/C++ embedded projects;Automated Software Engineering;2024-06-10

2. Maximizing Test Coverage for Security Threats Using Optimal Test Data Generation;Applied Sciences;2023-07-16

3. Modified Evolutionary Test Data Generation Algorithm Based on Dynamic Change in Fitness Function Weights;INTELS’22;2023-06-13

4. Software Test Case Generation Tools and Techniques: A Review;International Journal of Mathematical, Engineering and Management Sciences;2023-04-01

5. Test Suites Generation using UML Modelling and Heuristic Techniques: A Systematic Study;Proceedings of the 4th International Conference on Information Management & Machine Intelligence;2022-12-23

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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