Research on Automatic Generation of Abnormal Unit Tests Based on Genetic Algorithm and Log Analysis
Download as PDF
DOI: 10.23977/CNCI2020039
Corresponding Author
YuHao Liu
ABSTRACT
In order to improve the robustness of commercial software code, an automatic generation method of abnormal unit tests based on genetic algorithm and log analysis is proposed. Intelligently analyze the past program logs, select parameters with static parameter values and continuous parameter values, and construct a parameter database as the initial value and mutation value of the genetic algorithm. And use a reasonable fitness function and use genetic algorithms to generate test cases. Experimental results show that this method is superior in terms of code function coverage and recall of abnormal problems.
KEYWORDS
Code robustness; log analysis; abnormal unit testing; genetic algorithm; test data generation