skip to main content
10.1145/1068009.1068187acmconferencesArticle/Chapter ViewAbstractPublication PagesgeccoConference Proceedingsconference-collections
Article

Using evolutionary algorithms for the unit testing of object-oriented software

Published:25 June 2005Publication History

ABSTRACT

As the paradigm of object orientation becomes more and more important for modern IT development projects, the demand for an automated test case generation to dynamically test object-oriented software increases. While search-based test case generation strategies, such as evolutionary testing, are well researched for procedural software, relatively little research has been done in the area of evolutionary object-oriented software testing.This paper presents an approach with which to apply evolutionary algorithms for the automatic generation of test cases for the white-box testing of object-oriented software. Test cases for testing object-oriented software include test programs which create and manipulate objects in order to achieve a certain test goal. Strategies for the encoding of test cases to evolvable data structures as well as ideas about how the objective functions could allow for a sophisticated evaluation are proposed. It is expected that the ideas herein can be adapted for other unit testing methods as well.The approach has been implemented by a prototype for empirical validation. In experiments with this prototype, evolutionary testing outperformed random testing. Evolutionary algorithms could be successfully applied for the white-box testing of object-oriented software.

References

  1. A. Baresel, H. Sthamer, and M. Schmidt. Fitness function design to improve evolutionary structural testing. In Proceedings of the Genetic and Evolutionary Computation Conference (GECCO), pages 1329--1336, July 2002. 9-13th July. Google ScholarGoogle ScholarDigital LibraryDigital Library
  2. R. Ferguson and B. Korel. The chaining approach for software test data generation. ACM Transactions on Software Engineering and Methodology, 5(1):63--86, January 1996. Google ScholarGoogle ScholarDigital LibraryDigital Library
  3. Genetic and Evolutionary Algorithm Toolbox for use with Matlab. http://www.geatbx.com.Google ScholarGoogle Scholar
  4. S. Kim, J. A. Clark, and J. A. McDermid. Investigating the applicability of traditional test adequacy criteria for object-oriented programs. In Proceedings of the ObjectDays 2000, October 2000.Google ScholarGoogle Scholar
  5. P. McMinn. Search-based test data generation: A survey. Journal on Software Testing, Verification and Reliability, 14(2):105--156, June 2004. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. P. McMinn and M. Holcombe. Hybridizing evolutionary testing with the chaining approach. Genetic and Evolutionary Computation Conference (GECCO), pages 1363--1374, June 2004. June 26-30.Google ScholarGoogle ScholarCross RefCross Ref
  7. H. Sthamer, J. Wegener, and A. Baresel. Using evolutionary testing to improve efficiency and quality in software testing. In Proceedings of the 2nd Asia-Pacific Conference on Software Testing Analysis and Review (AsiaSTAR), July 2002. 22-24th July.Google ScholarGoogle Scholar
  8. P. Tonella. Evolutionary testing of classes. International Symposium on Software Testing and Analysis (ISSTA), pages 119--128, 2004. July 11-14. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. S. Wappler. Using evolutionary algorithms for the test of object-oriented systems. Master's thesis, Hasso-Plattner-Institute for Software Systems Engineering at University of Potsdam, September 2004.Google ScholarGoogle Scholar

Index Terms

  1. Using evolutionary algorithms for the unit testing of object-oriented software

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Conferences
      GECCO '05: Proceedings of the 7th annual conference on Genetic and evolutionary computation
      June 2005
      2272 pages
      ISBN:1595930108
      DOI:10.1145/1068009

      Copyright © 2005 ACM

      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]

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 25 June 2005

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • Article

      Acceptance Rates

      Overall Acceptance Rate1,669of4,410submissions,38%

      Upcoming Conference

      GECCO '24
      Genetic and Evolutionary Computation Conference
      July 14 - 18, 2024
      Melbourne , VIC , Australia

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader