期刊文献+

用遗传算法的测试用例最小化 被引量:8

Test-Suite Minimization Using Genetic Algorithms
下载PDF
导出
摘要 回归测试就是验证对程序的修改是否达到了预期的目的,同时检查修改是否损害了程序原有的正常功能。随着程序新版本的不断推出,测试用例集不断扩大,回归测试成本越来越高。测试用例最小化就是从已有的用例集中,找到一个测试运行代价最小的用例子集用于回归测试,并保持原来的测试覆盖率。本文主要研究用遗传算法解决测试用例最小化问题:基于测试历史数据,设计基因编码并构建初始种群;利用测试覆盖率和测试运行代价设计适应度函数;通过遗传算子完成进化过程并找到最优或近似最优解。最后本文给出了对算法进行实例研究的结果。结果表明,本文提出的用例最小化技术能有效缩减回归测试用例集,大幅度降低回归测试费用。 Regression testing is an expensive process used to revalidate the modified program. As the software is modified and new test cases are added to the test suite, the test suite grows and the cost of regression testing increases. Regression test-suite minimization techniques attempt to reduce the cost of regression testing by identifying a minimized test-suite that provides the same coverage of the software according to some criterion as the original test-suite. This paper investigates the use of an evolutionary approach, called genetic algorithms, for test-suite minimization. The algorithm designs the gene codes of the individuals and builds the initial population based on the test history, calculates the fitness value of each individual using coverage and cost information, and then selectively breeds the successive generations using genetic operations. This generational process is repeated until a minimized test-suite is founded. Finally, some results of studies of this minimization algorithm are presented. The results show that, genetic algorithms can significantly reduce the size and the cost of the test-suite for regression testing, and achieves good cost-effectiveness.
出处 《计算机科学》 CSCD 北大核心 2007年第1期285-288,F0004,共5页 Computer Science
基金 国家自然科学基金资助项目(60073027) 浙江省教育厅科研基金(119034031) 浙江财经学院二○○五年度重大科研课题(YJZ0505)
关键词 回归测试 测试用例集 测试用例最小化 测试覆盖率 测试运行代价 Regression test, Test suite,Test suite minimization,Test coverage,Test execution cost
  • 相关文献

参考文献26

  • 1Chen T Y,Lau M F.Dividing Strategies for the Optimization of a Test Suite[J].Information Processing Letters,1996,60(3):135~141
  • 2Chen Y,Rosenblum D,Vo K.TestTube:A System for Selective Regression Testing[A].In:Proc.16th Int'l Conf Software Eng,May 1994.211~222
  • 3Jones J A,Harrold M J.Test-Suite Reduction and Prioritization for Modified Condition/Decesion Coverage[J].IEEE Trans on Software Engineering,Mar.2003,29(3):195~209
  • 4Onoma K,Tsai W-T,Poonawala M,et al.Regression Testing in an Industrial Environment[J].Communications of the ACM,May 1988,41(5):81~86
  • 5Back T.Optimal mutation rates in genetic search[A].In:Proceedings of the 5th International Conference on Genetic Algorithms (ICGA(93),Morgan Kaufmann.2~9
  • 6Baudry B,Fleurey F,Jézéquel J M,et al.Genes and bacteria for automatic test cases optimization in the.net environment[A].In:Proceedings of ISSRE02 (International Symposium on Software Reliability Engineering),Annapolis,USA,November2002.195~206
  • 7Harrold M J,Gupta R,Soffa M L.A Methodlogy for Controlling the Size of a Test Suite[J].ACM Trans.Software Eng and Methods,1993,2(3):270~285
  • 8Offutt J,Pan J,Voas J M.Procedures for Reducing the size of Coverage-Based Test Sets[A].In:Proc 12th int'l Conf Testing Computer Software.June 1995.111~123
  • 9Rothermel G,Harrold M J.A Safe,Efficient Regression Test Selection Techinique[J].ACM Trans Software Eng and Methods,Apr 1997,6(2):173~210
  • 10Rothermel G,Harrold M J,Ostria J,et al.An Empirical Study of the Effects of Minimization on the Fault Detection Capabilities of Test Suites[A].In:Proc.Int'l Conf Software Maintenance,Nov.1998.34~43

二级参考文献5

  • 1孙霆.软件测试工具的研究和实现[M].杭州:浙江大学,1999..
  • 2[4]Shaw M, Garlan D. Software Architecture. Englewood Cliffs,NJ: Prentice-Hall, 1996
  • 3孙霆,硕士学位论文,1999年
  • 4郑人杰,计算机软件测试技术,1992年
  • 5马雪英,陈卫东,杨建军,叶澄清.基于块的测试充分性度量准则及其测试复杂性度量[J].计算机科学,2002,29(5):141-143. 被引量:1

共引文献7

同被引文献66

引证文献8

二级引证文献28

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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