• DocumentCode
    1733017
  • Title

    A Fitness Function to Find Feasible Sequences of Method Calls for Evolutionary Testing of Object-Oriented Programs

  • Author

    Kim, Myoung Yee ; Cheon, Yoonsik

  • Author_Institution
    Dept. of Comput. Sci., Univ. of Texas at El Paso, El Paso, TX
  • fYear
    2008
  • Firstpage
    537
  • Lastpage
    540
  • Abstract
    In evolutionary testing of an object-oriented program, the search objective is to find a sequence of method calls that can successfully produce a test object of an interesting state. This is challenging because not all call sequences are feasible; each call of a sequence has to meet the assumption of the called method. The effectiveness of an evolutionary testing thus depends in part on the quality of the so-called fitness function that determines the degree of the fitness of a candidate solution. In this paper, we propose a new fitness function based on assertions such as method preconditions to find feasible sequences of method calls. We show through experiments that to obtain the best search result the fitness function should consider the structures of method call sequences, which are essentially trees of assertions. We also provide a framework for combining multiple fitness values and for analyzing different fitness functions.
  • Keywords
    object-oriented programming; program testing; evolutionary testing; fitness function; object-oriented programs; Computer science; Genetic algorithms; Genetic mutations; Runtime; Software testing; JML language; evolutionary testing; fitness function; genetic algorithms; object-oriented programming; pre and postconditions; test data generator;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Software Testing, Verification, and Validation, 2008 1st International Conference on
  • Conference_Location
    Lillehammer
  • Print_ISBN
    978-0-7695-3127-4
  • Type

    conf

  • DOI
    10.1109/ICST.2008.31
  • Filename
    4539588