首页> 中文期刊> 《光学精密工程》 >用智能规划解空间树法生成测试数据

用智能规划解空间树法生成测试数据

         

摘要

讨论了软件测试中常用的两因素组合覆盖测试方法.针对该方法求解困难,并考虑系统中各种因素以及因素间的制约关系对解空间树法生成测试数据产生的影响,提出了采用基于智能规划的解空间树法来生成测试数据.该方法将所有的可用测试数据生成为一棵解空间树,通过搜索找到一条从根节点到叶节点的路径即一条测试数据.实验结果表明,该方法可以更好地生成覆盖面大且规模较小的测试用例集,实现对测试参数的两因素组合覆盖,从而解决了传统解空间树法由于不考虑参数间的制约关系而无法求得最简测试数据集或得到的数据集不完全的问题.将该数据生成方法应用于空间相机软件测试中提高了生成有效测试用例的效率和准确度,对测试起到了很好的指导作用.%Pairwise combinatorial coverage testing which is a significant method for test data generation in functional test fields was discussed. As the method is difficult of solution, a improved method of test data generation for the solution space tree based on intelligent planning was proposed according to the relationship of different factors in the system. The method generates all the available data into a solution space tree,then searches a path from a root node to a leaf node to produce a test data. Experimental results show that this method can test adequately and cover more effect factors of software system by using less test data and can achieve the combinatorial corerage of two factors for test data. As compared with traditional methods,it can obtain the simplest and more complete data sets. In conclusion,it improves the efficiency and veracity of generating test data when this method is taken to a bear space camera software test.

著录项

相似文献

  • 中文文献
  • 外文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号