Abstract

Considering path coverage as the test adequacy criterion, a modified multiple paths test data generator based on particle swarm optimisation (MMPPSO) algorithm is proposed. During the particle swarm optimisation process, each particle tracks the individual best position and the global best position. For the multiple paths coverage problem, different fitness functions are applied to assess the individual best position and the global best position in MMPPSO. The weighted summation of those branch distance functions is designed as the single path fitness function. The fitness function for the individual best position is the minimum of those single path fitness functions, which guides particles converge to a specific path. The fitness function for the global best position is the summation of those single path fitness functions, which guides the population achieve multiple paths coverage and avoid the premature convergence. The experiments implemented on some benchmarks show that the authors’ approach is more effective and more efficient than other methods, especially for complicated programs and large target path sets.

Full Text
Paper version not known

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

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.