Abstract

Recently, Search Based Software Testing (SBST) research has gained much attention in producing the optimal solution for the optimization problem by automating the test data generation for the branch coverage criterion. Particle Swarm Optimization (PSO) has been emerged for obtaining optimal solution for the test data generation problem because of its easy implementation, fast convergence and few parameters. An attempt has been made in this paper to apply a weight based swarm intelligence algorithm called Weighted Particle Swarm Optimization (WPSO) to automate the test data generation for the branch coverage criterion. A fitness function including weight parameter is proposed to use in WPSO algorithm for evaluating the fitness using minimization approach. This fitness function aims to achieve high coverage and fast convergence. A benchmark program is used for the experimental analysis to compare the high coverage and fast convergence obtained from WPSO and PSO algorithms.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call