摘要
设计了一个通用的基于控制流和数据流的结构测试数据自动生成的工具。该工具根据控制流和数据流测试中所采用的覆盖标准来选取测试路径,并以改进后的迭代松弛法为核心,对所选取的路径生成测试数据。同时工具采用Fibonacci法优化选取路径,对不可达路径进行处理,并对测试数据的分支覆盖率、DCP覆盖率等进行了统计。实验结果表明该工具是可行的。
A path-based software tool on automatic test data generation is designed in this paper.The coverage criteria for control flow and data flow are used to optimize the selection of test path.Using improved iterative relaxation method,the tool on pathbased automatic test data generation is used to generate test data for the selected path.The infeasible path is processed with Fibonacci method.The rate of branch coverage and DCP coverage on test data are obtained through the tool.Test results show that the tool is feasible.
出处
《计算机工程与应用》
CSCD
北大核心
2010年第15期53-56,共4页
Computer Engineering and Applications
基金
湖南省教育厅重点科研项目资助(No.07A034)
关键词
路径
测试数据自动生成
覆盖率
path
automatic test data generation
coverage rate