基于改进花朵授粉算法的测试数据自动生成研究
[Abstract]:As the core factor in software testing, test data generation efficiency directly affects the effect of software testing. In this paper, the automatic generation method of test data is studied. As a new intelligent algorithm with good optimization ability, flower pollination algorithm has been successfully applied to various multi-objective optimization problems because of its simple parameters and easy implementation. This paper studies the application of this algorithm in the field of automatic generation of test data. Firstly, a series of improvement measures are put forward in view of its defects, and then the superiority of the improved algorithm in automatic generation of test data is verified by a large number of experiments. The contents and innovations of this paper mainly include the following aspects: (1) aiming at the defects of the basic flower pollination algorithm, the search speed is slow, the searching accuracy is not high and the local extremum is easy to fall into in the middle and late period. An adaptive hybrid flower pollination algorithm is proposed by improving the basic flower pollination algorithm by adjusting the parameters of the algorithm and introducing other intelligent algorithms into the hybrid algorithm. Firstly, the particle swarm optimization algorithm is introduced. Based on the advantages of high convergence accuracy and high speed in the initial stage of searching, a group of better quality solutions are obtained as the initial solution of the flower pollination algorithm to continue the iterative optimization operation. Secondly, a security function is proposed to reflect the discrete degree of the population. Finally, an adaptive mechanism is adopted to update the solution. The adaptive mechanism consists of two parts: adaptive Cauchy mutation and adaptive step size factor. According to the size of the population dispersion and the location of the solution, the adaptive search is carried out adaptively. In order to improve the ability of optimization. (2) the theoretical basis of basic flower pollination algorithm applied to test data generation is analyzed. On this basis, we study how to apply the adaptive hybrid flower pollination algorithm to the automatic generation of test data, and establish a test data generation model based on adaptive hybrid flower pollination algorithm. At the same time, an improved fitness function construction method is proposed to assign the corresponding weight parameter values to each branch according to the difficulty and ease of each branch, so as to reflect the coverage of each branch more accurately. In order to further improve the efficiency of test data generation. (3) finally, the feasibility and efficiency of adaptive hybrid flower pollination algorithm in automatic generation of test data are verified. Four typical test programs with different degrees of complexity are selected to generate test data automatically with the help of MATLAB platform. Compared with the other two intelligent algorithms that have been applied in the field of automatic generation of test data, the average time consumption is obtained. The average iteration times and the average branch coverage ratio were compared and analyzed.
【学位授予单位】:江西理工大学
【学位级别】:硕士
【学位授予年份】:2017
【分类号】:TP311.53;TP18
【参考文献】
相关期刊论文 前10条
1 肖辉辉;万常选;段艳明;;一种基于复合形法的花朵授粉算法[J];小型微型计算机系统;2015年06期
2 肖辉辉;万常选;段艳明;;一种改进的新型元启发式花朵授粉算法[J];计算机应用研究;2016年01期
3 肖辉辉;万常选;段艳明;钟青;;基于模拟退火的花朵授粉优化算法[J];计算机应用;2015年04期
4 邵楠;周雁舟;惠文涛;严亚伟;;基于自适应变异粒子群优化算法的测试数据生成[J];计算机应用研究;2015年03期
5 毛澄映;喻新欣;薛云志;;基于粒子群优化的测试数据生成及其实证分析[J];计算机研究与发展;2014年04期
6 毛汝君;徐蔚鸿;逯燕玲;;基于粒子群-蚁群混合算法的软件测试数据生成方法研究[J];硅谷;2013年01期
7 于博;姜淑娟;张艳梅;;基于复杂系统遗传算法的多路径覆盖测试用例生成方法[J];计算机科学;2012年04期
8 周绮;姜淑娟;赵雪峰;;改进的量子遗传算法及其在测试数据生成中的应用[J];计算机应用;2012年02期
9 田甜;毛明志;;基于DWSPSO的软件测试数据自动生成[J];计算机工程与设计;2011年06期
10 曹晓燕;邵定宏;;基于混合遗传算法的测试数据自动生成研究[J];计算机工程与设计;2010年21期
相关硕士学位论文 前6条
1 戴玉倩;基于混合动态粒子群算法的软件测试数据自动生成研究[D];江西理工大学;2015年
2 刘树荣;基于分层遗传算法的测试数据自动生成方法研究[D];北京理工大学;2015年
3 彭叶苹;基于遗传算法的测试数据自动生成方法研究[D];广东工业大学;2013年
4 白凯;基于遗传算法的测试数据自动生成技术的应用研究[D];太原理工大学;2010年
5 王晖;基于柯西变异的混合粒子群算法研究[D];中国地质大学;2008年
6 毛颖;测试用例自动生成系统研究与实现[D];电子科技大学;2007年
,本文编号:2299961
本文链接:https://www.wllwen.com/kejilunwen/zidonghuakongzhilunwen/2299961.html