• DocumentCode
    2372237
  • Title

    Cross-Entropy Based Testing

  • Author

    Chockler, Hana ; Farchi, Eitan ; Godlin, Benny ; Novikov, Sergey

  • fYear
    2007
  • fDate
    11-14 Nov. 2007
  • Firstpage
    101
  • Lastpage
    108
  • Abstract
    In simulation-based verification, we check the correctness of a given program by executing it on some input vectors. Even for medium-size programs, exhaustive testing is impossible. Thus, many errors are left undetected. The problem of increasing the exhaustiveness of testing and decreasing the number of undetected errors is the main problem of software testing. In this paper, we present a novel approach to software testing, which allows us to dramatically raise the probability of catching rare errors in large programs. Our approach is based on the cross-entropy method. We define a performance function, which is higher in the neighborhood of an error or a pattern we are looking for. Then, the program is executed many times, choosing input vectors from some random distribution. The starting distribution is usually uniform, and it is changed at each iteration based on the vectors with highest value of the performance function in the previous iteration. The crossentropy method was shown to be very efficient in estimating the probabilities of rare events and in searching for solutions for hard optimization problems. Our experiments show that the cross-entropy method is also very efficient in locating rare bugs and patterns in large programs.We show the experimental results of our cross-entropy based testing tool and compare them to the performance of ConTest and of Java scheduler.
  • Keywords
    Analytical models; Computational modeling; Computer bugs; Computer simulation; Design automation; Iterative methods; Java; Laboratories; Optimization methods; Software testing;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Formal Methods in Computer Aided Design, 2007. FMCAD '07
  • Conference_Location
    Austin, TX, USA
  • Print_ISBN
    978-0-7695-3023-9
  • Type

    conf

  • DOI
    10.1109/FAMCAD.2007.19
  • Filename
    4401988