Using improved genetic algorithm for software fault localization aided test case generation

被引:0
作者
Yang B. [1 ,2 ,3 ]
He Y. [3 ]
Xu F. [1 ,2 ]
Chen Z. [1 ,2 ]
机构
[1] School of Information, Beijing Forestry University, Beijing
[2] Engineering Research Center for Forestry Goriented Intelligent Information Processing, National Forestry and Grassland Administration, Beijing
[3] School of Information, North China of Science and Technology, Beijing
来源
Beijing Hangkong Hangtian Daxue Xuebao/Journal of Beijing University of Aeronautics and Astronautics | 2023年 / 49卷 / 09期
基金
中国国家自然科学基金;
关键词
fault localization; fitness function; genetic algorithm; random test; test case generation;
D O I
10.13700/j.bh.1001-5965.2022.0524
中图分类号
学科分类号
摘要
The ranking of suspected faults in the process of automatic software fault localization will be continuously created and is determined after the execution of existing test cases. Sometimes the program units corresponding to the fault are ranked lower in the ranking of suspected failures based on the existing test cases. If it is necessary to improve the suspected fault ranking of the program unit corresponding to the fault, supplementary test cases are a feasible method. This article suggests a technique for creating test cases based on a genetic algorithm that can make use of knowledge about the location of software faults. The paper analyzes and analyzes the methods used. Based on the joint experiment of the paper on 6 C programs and 2 Python programs, experimental results show that the test cases automatically generated by this method can effectively help improve the efficiency of fault location. © 2023 Beijing University of Aeronautics and Astronautics (BUAA). All rights reserved.
引用
收藏
页码:2279 / 2288
页数:9
相关论文
共 28 条
[1]  
TRACEY N J., A search-based automated test-data generation framework for safety-critical software, (2001)
[2]  
HARMAN M, JONES B F., Search-based software engineering, Information and Software Technology, 43, 14, pp. 833-839, (2001)
[3]  
RUAN H, ZHANG J, YAN J., Test data generation for C programs with string-handling functions, 2008 2nd IFIP/IEEE International Symposium on Theoretical Aspects of Software Engineering, pp. 219-226, (2008)
[4]  
DEMILLI R A, OFFUTT A J., Constraint-based automatic test data generation, IEEE Transactions on Software Engineering, 17, 9, pp. 900-910, (1991)
[5]  
PENG C, RAJAN A., Automated test generation for OpenCL kernels using fuzzing and constraint solving, Proceedings of the 13th Annual Workshop on General Purpose Processing Using Graphics Processing Unit, (2020)
[6]  
YANG F, FAN Y, XIAO P, Et al., Test data generation method based on multiple convergence direction adaptive PSO, Software Quality Journal, 31, pp. 279-303, (2022)
[7]  
YANG B, WU J, XU L, Et al., An approach of modeling software testing requirements and generating test case, Chinese Journal of Computers, 37, 3, pp. 522-538, (2014)
[8]  
BOYER R S, ELSPAS B, LEVITT K N., SELECT—a formal system for testing and debugging programs by symbolic execution, ACM SIGPLAN Notices, 10, 6, pp. 234-245, (1975)
[9]  
MARCINIAK J J., Encyclopedia of software engineering, (2002)
[10]  
HARMAN M, MCMINN P., A theoretical & empirical analysis of evolutionary testing and hill climbing for structural test data generation, Proceedings of the 2007 International Symposium on Software Testing and Analysis, pp. 73-83, (2007)