Education, Science, Technology, Innovation and Life
Open Access
Sign In

Research on Automatic Generation of Abnormal Unit Tests Based on Genetic Algorithm and Log Analysis

Download as PDF

DOI: 10.23977/CNCI2020039

Author(s)

YuHao Liu

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

All published work is licensed under a Creative Commons Attribution 4.0 International License.

Copyright © 2016 - 2031 Clausius Scientific Press Inc. All Rights Reserved.