Intelligent test case generation based on branch and bound

被引:2
作者
XING Ying [1 ,2 ]
GONG Yun-zhan [1 ]
WANG Ya-wen [1 ,3 ]
ZHANG Xu-zhou [1 ]
机构
[1] State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunications
[2] School of Electronic and Information Engineering, Liaoning Technical University
[3] State Key Laboratory of Computer Architecture, Institute of Computing Technology, Chinese Academy of Sciences
基金
中国国家自然科学基金;
关键词
test case generation; constraint satisfaction problem; branch and bound; state space search;
D O I
暂无
中图分类号
TP311.55 [];
学科分类号
081202 ; 0835 ;
摘要
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.
引用
收藏
页码:91 / 97 +103
页数:8
相关论文
共 9 条
  • [1] 基于区间必然集的测试用例生成方法
    王雅文
    宫云战
    肖庆
    [J]. 计算机辅助设计与图形学学报, 2013, (04) : 550 - 556+563
  • [2] 扩展区间运算的变量值范围分析技术
    王雅文
    宫云战
    肖庆
    杨朝红
    [J]. 北京邮电大学学报, 2009, 32 (03) : 36 - 41
  • [3] 面向路径的测试数据自动生成方法述评
    单锦辉
    王戟
    齐治昌
    [J]. 电子学报, 2004, (01) : 109 - 113
  • [4] Advancing the Backtrack Optimization Technique to Obtain Forecasts of Potential Crisis Periods[J] . E. G. Lisgara,G. I. Karolidis,G. S. Androulakis. Applied Mathematics . 2012 (10)
  • [5] An extension of branch-and-bound algorithm for solving sum-of-nonlinear-ratios problem
    Gao, Lianbo
    Mishra, Shashi K.
    Shi, Jianming
    [J]. OPTIMIZATION LETTERS, 2012, 6 (02) : 221 - 230
  • [6] Observations in using parallel and sequential evolutionary algorithms for automatic software testing[J] . Enrique Alba,Francisco Chicano. Computers and Operations Research . 2007 (10)
  • [7] Automated test data generation using an iterative relaxation method[J] . Neelam Gupta,Aditya P. Mathur,Mary Lou Soffa. ACM SIGSOFT Software Engineering Notes . 1998 (6)
  • [8] Automated program flaw finding using simulated annealing[J] . Nigel Tracey,John Clark,Keith Mander. ACM SIGSOFT Software Engineering Notes . 1998 (2)
  • [9] SYMBOLIC EXECUTION AND PROGRAM TESTING
    KING, JC
    [J]. COMMUNICATIONS OF THE ACM, 1976, 19 (07) : 385 - 394