期刊文献+

基于输出域的测试用例自动生成方法研究 被引量:6

Output Domain Based Automatic Test Case Generation
下载PDF
导出
摘要 对大多数软件,很难根据规格说明自动产生期望的输出.而对于某些软件,输出域存在许多值得关注的检测点,适合于从输出域出发开发测试用例.但对于给定的输出,自动生成相应的输入也较为困难.提出了一种基于输出域的测试用例自动生成方法,首先利用BP神经网络构建被测软件的功能模型,然后在被测软件的功能模型上,对于给定的输出,利用遗传算法搜索相应的输入,实现基于输出域的测试用例自动生成.同时,对遗传算法进行了改进,提出了一种新的交叉算子和变异算子,以提高遗传算法生成测试用例效率,并在容错软件RSDIMU子模块和3个常用软件上进行了模型构建及测试生成实验.实验结果表明,利用遗传算法实现基于输出域的测试用例自动生成方法是行之有效的,改进的遗传算法能够提高测试生成的效率和成功率. For most software systems it is very hard to obtain expected output automatically on the basis of specifications.However,there exist many notable detection points in output domain of some software,so it may be more suitable to develop test cases from output domain than from input.In addition,even if an output is given,it is also difficult to find its input automatically.Therefore in this paper,we present an output domain based automatic test case generation method.At first,a back propagation neural network is used to create a model that can be taken as a function substitute for the software under test,and then according to the created function model,genetic algorithms are employed to search the corresponding inputs for given outputs.In order to improve the effectiveness of test case generation,a new crossover operation and a mutation operation are introduced in our genetic algorithm.Moreover,a number of experiments have been conducted on test generation based on the created function models over the fault tolerant software RSDIMU and three common used software.The experimental results show that the approach is promising and effective,and our genetic algorithm can distinctly enhance the efficiency and successful ratio to test case generation from output domains.
出处 《计算机研究与发展》 EI CSCD 北大核心 2016年第3期541-549,共9页 Journal of Computer Research and Development
基金 国家自然科学基金项目(61472025 61170082)~~
关键词 BP神经网络 软件功能模型 测试用例生成 输出域 遗传算法 BP neural network software function model test case generation output domain genetic algorithm
  • 相关文献

参考文献2

二级参考文献27

  • 1黄光燕,李晓维.软件的变量完整性测试方法[J].计算机辅助设计与图形学学报,2004,16(11):1584-1589. 被引量:3
  • 2薛云志,陈伟,王永吉,赵琛,王青.一种基于Messy GA的结构测试数据自动生成方法[J].软件学报,2006,17(8):1688-1697. 被引量:14
  • 3Alshraideh M,Bottaci L.Automatic software test data generation for string data using heuristic search with domain specific operators[C]//Proceedings of the 3rd Workshop on UK Software Testing Research,Sheffield,2005:137-149.
  • 4Kuhn D R,Gallo A M.Software fault interactions and implications for software testing[J].IEEE Transactions on Software Engineering,2004,30 (6):418-421.
  • 5Korel B.Automated software test data generation[J].IEEE Transactions on Software Engineering,1990,16(8):870-879.
  • 6Xu Shiyi.Build-in-self-test for software[C]//Proceedings of the Asian Test Symposium,Xi'an,2003:220-223.
  • 7Eckhardt D E,Caglavan A K,et al.An experimental evaluation of software redundancy as a strategy for improving reliability[R].Hampton:Langley Research Center,1990.
  • 8Lyu Michael R,Huang Zubin,Sze Sam K S,et al.An empirical study on testing and fault tolerance for software reliability engineering[C] //Proceedings of the 14th International Symposium on Software Reliability Engineering,Denver,2003:119-130.
  • 9Cai Xia,Lyu Michael R.An empirical study on reliability modeling for diverse software systems[C] //Proceedings of the 15th International Symposium on Software Reliability Engineering,Rennes and Saint-Malo,2004:125-136.
  • 10Beizer B. Software Testing Techniques [M]. 2nd ed. New York: Van Nostrand Reinhold Co, 1990.

共引文献3

同被引文献42

引证文献6

二级引证文献15

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部