节点文献
一种路径测试数据自动生成方法
Data Automatic Generation Approach for Path Test
【摘要】 适应值函数的设计是决定测试数据生成质量和效率的关键,为此提出一种重叠路径结构,对程序路径进行描述,并设计基于遗传算法全路径比较的路径测试数据生成适应值函数。为测试数据生成算法定义生成时间期望的综合性能评价指标,以该指标与对照组算法进行比较实验。结果显示,该适应值函数能较好地平衡算法收敛性和消耗时间之间的矛盾。
【Abstract】 A structure of overlapped paths is proposed to extract the information of control flow and describe paths of a program.Two fitness functions are constructed to generate test data for path test based on genetic algorithms with whole path’s comparison.An indicator is defined to evaluate the synthesis performance of different fitness functions,and several other methods are selected for comparison with experiment.Results show that the two fitness functions balance the convergence and time consumption well.
【关键词】 软件测试;
路径测试;
测试数据生成;
遗传算法;
适应值函数;
【Key words】 software test; path test; test data generation; genetic algorithm; fitness function;
【Key words】 software test; path test; test data generation; genetic algorithm; fitness function;
【基金】 国家科技支撑计划基金资助项目(2009BAI79B03);国家自然科学基金资助项目(60906050/F040604);航天医学基础与应用国家重点实验室开放基金资助项目(SMFA09K08)
- 【文献出处】 计算机工程 ,Computer Engineering , 编辑部邮箱 ,2011年09期
- 【分类号】TP311.52
- 【被引频次】13
- 【下载频次】156