Automated Test Data Generation Based on Particle Swarm Optimisation with Convergence Speed Controller.
Fangqing Liu,Han Huang,Xueqiang Li,Zhifeng Hao
DOI: https://doi.org/10.1049/trit.2017.0004
IF: 7.985
2017-01-01
CAAI Transactions on Intelligence Technology
Abstract:Automated test data generation for path coverage (ATDG-PC) plays an important role in software testing. In this study, ATDG-PC is applied to the case of cloud computing such as Hadoop programmes which are more difficult to search for high-rate path coverage than the normal programmes. The search scale of ATDG-PC is usually enormous, while the relationship between the variables and the paths is unknown. First, a rapid metaheuristic algorithm particle swarm optimisation (PSO) was chosen to solve the problem of large-scale search. Second, the strategy of convergence speed controller was used to improve the performance of PSO by mining heuristic information from the found paths. The controller adjusts the convergence speed balance periodically by two conditions and rules. The first strategy slows the convergence speed when the algorithm is premature convergence and is trapped in a local optimum. The second strategy accelerates the convergence speed if the algorithm does not converge after many iterations. The effectiveness of the proposed algorithm is evaluated by classic Hadoop programmes of cloud computing. The experimental results indicate that the proposed algorithm can reduce a great number of test cases for path coverage, compared with other metaheuristic algorithms for automated test data generation.