Acta Metallurgica Sinica(English letters) ›› 2014, Vol. 21 ›› Issue (2): 91-97.doi: 10.1016/S1005-8885(14)60291-0

• Others • Previous Articles     Next Articles

Intelligent test case generation based on branch and bound


  1. 1. State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunications, Beijing 100876, China 2. School of Electronic and Information Engineering, Liaoning Technical University, Huludao 125105, China 3. State Key Laboratory of Computer Architecture, Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100190, China
  • Received:2013-09-26 Revised:2013-12-31 Online:2014-04-30 Published:2014-04-30
  • Contact: Ying Xing


Path-oriented test case generation is in essence a constraint satisfaction problem (CSP) solved by search strategies, among which backtracking algorithms are widely used. In this article, the backtracking algorithm branch and bound (BB) is introduced to generate path-oriented test cases automatically. A model based on state space search is proposed to construct the search tree dynamically. The BB is optimized from two perspectives. Variable permutation with a heuristic rule to break ties is adopted for the branching operation, and interval computation with analysis on the monotony of branching conditions is utilized for the bounding operation. Empirical experiments show that the proposed method performs well with linear complexity, and reaches 100% coverage on some benchmark programs with an advantage over some static and dynamic algorithms.

Key words:

test case generation, constraint satisfaction problem, branch and bound, state space search