Skip to Main content Skip to Navigation
Conference papers

Using Swarm Intelligence to Generate Test Data for Covering Prime Paths

Abstract : Search-based test data generation methods mostly consider the branch coverage criterion. To the best of our knowledge, only two works exist which propose a fitness function that can support the prime path coverage criterion, while this criterion subsumes the branch coverage criterion. These works are based on the Genetic Algorithm (GA) while scalability of the evolutionary algorithms like GA is questionable. Since there is a general agreement that evolutionary algorithms are inferior to swarm intelligence algorithms, we propose a new approach based on swarm intelligence for covering prime paths. We utilize two prominent swarm intelligence algorithms, i.e., ACO and PSO, along with a new normalized fitness function to provide a better approach for covering prime paths. To make ACO applicable for the test data generation problem, we provide a customization of this algorithm. The experimental results show that PSO and the proposed customization of ACO are both more efficient and more effective than GA when generating test data to cover prime paths. Also, the customized ACO, in comparison to PSO, has better effectiveness while has a worse efficiency.
Document type :
Conference papers
Complete list of metadata

https://hal.inria.fr/hal-01760865
Contributor : Hal Ifip <>
Submitted on : Friday, April 6, 2018 - 5:21:19 PM
Last modification on : Friday, April 6, 2018 - 5:22:18 PM

File

459025_1_En_9_Chapter.pdf
Files produced by the author(s)

Licence


Distributed under a Creative Commons Attribution 4.0 International License

Identifiers

Citation

Atieh Monemi Bidgoli, Hassan Haghighi, Tahere Zohdi Nasab, Hamideh Sabouri. Using Swarm Intelligence to Generate Test Data for Covering Prime Paths. 7th International Conference on Fundamentals of Software Engineering (FSEN), Apr 2017, Teheran, Iran. pp.132-147, ⟨10.1007/978-3-319-68972-2_9⟩. ⟨hal-01760865⟩

Share

Metrics

Record views

264

Files downloads

116