Evolutionary generation of unique input/output sequences for class behavioral testing

  • Authors:
  • Jinhua Li;Wensheng Bao;Yun Zhao;Zhibing Ma;Huangzhen Dong

  • Affiliations:
  • College of Information Engineering, Qingdao University, 266071, Qingdao, China;Normal College of Qingdao University, 266071, Qingdao, China;College of Information Engineering, Qingdao University, 266071, Qingdao, China;College of Information Engineering, Qingdao University, 266071, Qingdao, China;College of Information Engineering, Qingdao University, 266071, Qingdao, China

  • Venue:
  • Computers & Mathematics with Applications
  • Year:
  • 2009

Quantified Score

Hi-index 0.09

Visualization

Abstract

Object-oriented software is composed of classes. Their behaviors are usually modeled with state diagrams or finite state machines (FSMs). Testing classes is regarded as testing FSMs in which unique input/output (UIO) sequences are widely applied. The generation of UIO sequences is shown to be an undecidable problem. For these problems, genetic algorithms (GAs) may offer much promise. This paper reports some primary results of on-going research on evolutionary testing classes. First, we explain how to define UIO sequence generation as a search problem, and then describe adapting genetic algorithms to generating UIO sequences. Special issues of using genetic algorithms such as solution representation, validity checking and fitness definition are discussed in detail. Primary experiments confirm the applicability and feasibility of applying GAs to UIO sequence generation.