Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/1276958.1277178acmconferencesArticle/Chapter ViewAbstractPublication PagesgeccoConference Proceedingsconference-collections
Article

Applying particle swarm optimization to software testing

Published: 07 July 2007 Publication History
  • Get Citation Alerts
  • Abstract

    Evolutionary structural testing is an approach to automatically generating test cases that achieve high structural code coverage. It typically uses genetic algorithms (GAs) to search for relevant test cases. In recent investigations particle swarm optimization (PSO), an alternative search technique, often outperformed GAs when applied to various problems. This raises the question of how PSO competes with GAs in the context of evolutionary structural testing.In order to contribute to an answer to this question, we performed experiments with 25 small artificial test objects and 13 more complex industrial test objects taken from various development projects. The results show that PSO outperforms GAs for most code elements to be covered in terms of effectiveness and efficiency.

    References

    [1]
    B. Clow and T. White. An evolutionary race: A comparison of genetic algorithms and particle swarm optimization for training neural networks. In Proceedings of the International Conference on Artificial Intelligence, IC-AI '04, Volume 2, pages 582--588. CSREA Press, 2004.
    [2]
    R. C. Eberhart and J. Kennedy. A new optimizer using particle swarm theory. In Proceedings of the 6th International Symposium on Micromachine Human Science, pages 39--43, 1995.
    [3]
    Genetic and Evolutionary Algorithm Toolbox for use with Matlab. http://www.geatbx.com.
    [4]
    R. Hassan, B. Cohanim, and O. de Weck. A comparison of particle swarm optimization and the genetic algorithm. In Proceedings of the 46th AIAA/ASME/ASCE/AHS/ASC Structures, Structural Dynamics and Materials Conference, 2005.
    [5]
    R. J. W. Hodgson. Partical swarm optimization applied to the atomic cluster optimization problem. In GECCO, pages 68--73, 2002.
    [6]
    T. Huang and A. S. Mohan. A hybrid boundary condition for robust particle swarm optimization. IEEE Antennas and Wireless Propagation Letters, 4:112--117, 2005.
    [7]
    L. Oliva J. Horák, P. Chmela and Z. Raida. Global optimization of the dual-band planar antenna: Pso versus ga. In Radioelektronika, 2006.
    [8]
    B. F. Jones, H. Sthamer, and D. E. Eyres. Automatic test data generation using genetic algorithms. Software Engineering Journal, 11(5):299--306, September 1996.
    [9]
    K. O. Jones. Comparison of genetic algorithm and particle swarm optimization. In Proceedings of the International Conference on Computer Systems and Technologies, 2005.
    [10]
    J. Kennedy and R. C. Eberhart. Particle swarm optimization. In Proceedings of the IEEE International Conference on Neural Networks, volume 4, pages 1942--1948 vol.4. IEEE Press, 1995.
    [11]
    J. J. Liang, A. K. Qin, P. N. Suganthan, and S. Baskar. Comprehensive learning particle swarm optimizer for global optimization of multimodal functions. IEEE Transactions on Evolutionary Computation, 10:281--295, 2006.
    [12]
    R. P. Pargas, M. J. Harrold, and R. R. Peck. Test-data generation using genetic algorithms. Journal of Software Testing, Verification and Reliability, 9(4):263--282, 1999.
    [13]
    J. Robinson and Y. Rahmat-Samii. Particle swarm optimization in electromagnetics. IEEE Transactions on Antennas and Propagation, 52:397--407, Feb. 2004.
    [14]
    J. Wegener, A. Baresel, and H. Sthamer. Evolutionary test environment for automatic structural testing. Information and Software Technology, 43(1):841--854, 2001.
    [15]
    S. E. Xanthakis, C. C. Skourlas, and A.K. LeGall. Application of genetic algorithms to software testing. In Proceedings of the 5th International Conference on Software Engineering and its Applications, pages 625--636, 1992.

    Cited By

    View all
    • (2024)Improving Test Data Generation for MPI Program Path Coverage With FERPSO-IMPR and Surrogate-Assisted ModelsIEEE Transactions on Software Engineering10.1109/TSE.2024.335497150:3(495-511)Online publication date: Mar-2024
    • (2024)Software cost estimation predication using a convolutional neural network and particle swarm optimization algorithmScientific Reports10.1038/s41598-024-63025-814:1Online publication date: 7-Jun-2024
    • (2024)Automated test case generation for path coverage using Hierarchical Surrogate-Assisted Differential EvolutionApplied Soft Computing10.1016/j.asoc.2024.111586158(111586)Online publication date: Jun-2024
    • Show More Cited By

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Conferences
    GECCO '07: Proceedings of the 9th annual conference on Genetic and evolutionary computation
    July 2007
    2313 pages
    ISBN:9781595936974
    DOI:10.1145/1276958
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Sponsors

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 07 July 2007

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. automatic test case generation
    2. evolutionary testing
    3. genetic algorithm
    4. particle swarm optimization

    Qualifiers

    • Article

    Conference

    GECCO07
    Sponsor:

    Acceptance Rates

    GECCO '07 Paper Acceptance Rate 266 of 577 submissions, 46%;
    Overall Acceptance Rate 1,669 of 4,410 submissions, 38%

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • Downloads (Last 12 months)28
    • Downloads (Last 6 weeks)1
    Reflects downloads up to 11 Aug 2024

    Other Metrics

    Citations

    Cited By

    View all
    • (2024)Improving Test Data Generation for MPI Program Path Coverage With FERPSO-IMPR and Surrogate-Assisted ModelsIEEE Transactions on Software Engineering10.1109/TSE.2024.335497150:3(495-511)Online publication date: Mar-2024
    • (2024)Software cost estimation predication using a convolutional neural network and particle swarm optimization algorithmScientific Reports10.1038/s41598-024-63025-814:1Online publication date: 7-Jun-2024
    • (2024)Automated test case generation for path coverage using Hierarchical Surrogate-Assisted Differential EvolutionApplied Soft Computing10.1016/j.asoc.2024.111586158(111586)Online publication date: Jun-2024
    • (2023)FairRec: Fairness Testing for Deep Recommender SystemsProceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis10.1145/3597926.3598058(310-321)Online publication date: 12-Jul-2023
    • (2023)Evolutionary generation of test suites for multi-path coverage of MPI programs with non-determinismIEEE Transactions on Software Engineering10.1109/TSE.2023.3263509(1-16)Online publication date: 2023
    • (2023)An Experience Report on Regression-Free Repair of Deep Neural Network Model2023 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER)10.1109/SANER56733.2023.00090(778-782)Online publication date: Mar-2023
    • (2023)Integrating DSGEO into test case generation for path coverage of MPI programsInformation and Software Technology10.1016/j.infsof.2022.107068153(107068)Online publication date: Jan-2023
    • (2023)Prediction of Software Reliability Using Particle Swarm OptimizationInnovations in Intelligent Computing and Communication10.1007/978-3-031-23233-6_11(148-156)Online publication date: 1-Jan-2023
    • (2022)Metaheuristic Techniques for Test Case GenerationResearch Anthology on Agile Software, Software Development, and Testing10.4018/978-1-6684-3702-5.ch052(1043-1058)Online publication date: 2022
    • (2022)Software Release Planning Using Grey Wolf OptimizerResearch Anthology on Agile Software, Software Development, and Testing10.4018/978-1-6684-3702-5.ch026(508-541)Online publication date: 2022
    • Show More Cited By

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media