高级检索
王倩, 尤枫, 赵瑞莲. 一种二叉树结构型测试数据自动生成方法[J]. 计算机辅助设计与图形学学报, 2012, 24(6): 734-740.
引用本文: 王倩, 尤枫, 赵瑞莲. 一种二叉树结构型测试数据自动生成方法[J]. 计算机辅助设计与图形学学报, 2012, 24(6): 734-740.
Wang Qian, You Feng, Zhao Ruilian. An Automatic Test Data Generation for Binary Tree Structures[J]. Journal of Computer-Aided Design & Computer Graphics, 2012, 24(6): 734-740.
Citation: Wang Qian, You Feng, Zhao Ruilian. An Automatic Test Data Generation for Binary Tree Structures[J]. Journal of Computer-Aided Design & Computer Graphics, 2012, 24(6): 734-740.

一种二叉树结构型测试数据自动生成方法

An Automatic Test Data Generation for Binary Tree Structures

  • 摘要: 目前关于软件测试数据自动生成的研究主要集中于数值和字符串型数据,对于指针和动态数据结构的测试生成研究较少.二叉树是一种广泛使用并具有代表性的动态数据结构,文中提出一种针对二叉树结构的测试数据自动生成方法,使用遗传搜索算法生成二叉树形态,同时利用约束求解确定其数据域的值.实验结果表明,该方法是行之有效的,其测试生成效果明显优于随机生成方法.

     

    Abstract: Nowadays most research in software test generation has been focused on numeric data and string data.However,there are a few studies on test generation with respect to binary tree data structure,a widely used dynamic data structure.This paper proposes an automatic test generation approach for programs with binary tree structures.The shape of binary tree structure is created using genetic algorithm,and simultaneously the values in their data fields are generated by means of constraint solving.The experimental results show that the proposed method is promising and effective,and it is obviously superior to random test generation.

     

/

返回文章
返回