期刊文献+

Generating test data for both path coverage and fault detection using genetic algorithms 被引量:4

Generating test data for both path coverage and fault detection using genetic algorithms
原文传递
导出
摘要 The aim of software testing is to find faults in a program under test, so generating test data that can expose the faults of a program is very important. To date, current stud- ies on generating test data for path coverage do not perform well in detecting low probability faults on the covered path. The automatic generation of test data for both path coverage and fault detection using genetic algorithms is the focus of this study. To this end, the problem is first formulated as a bi-objective optimization problem with one constraint whose objectives are the number of faults detected in the traversed path and the risk level of these faults, and whose constraint is that the traversed path must be the target path. An evolution- ary algorithm is employed to solve the formulated model, and several types of fault detection methods are given. Finally, the proposed method is applied to several real-world programs, and compared with a random method and evolutionary opti- mization method in the following three aspects: the number of generations and the time consumption needed to generate desired test data, and the success rate of detecting faults. The experimental results confirm that the proposed method can effectively generate test data that not only traverse the target path but also detect faults lying in it. The aim of software testing is to find faults in a program under test, so generating test data that can expose the faults of a program is very important. To date, current stud- ies on generating test data for path coverage do not perform well in detecting low probability faults on the covered path. The automatic generation of test data for both path coverage and fault detection using genetic algorithms is the focus of this study. To this end, the problem is first formulated as a bi-objective optimization problem with one constraint whose objectives are the number of faults detected in the traversed path and the risk level of these faults, and whose constraint is that the traversed path must be the target path. An evolution- ary algorithm is employed to solve the formulated model, and several types of fault detection methods are given. Finally, the proposed method is applied to several real-world programs, and compared with a random method and evolutionary opti- mization method in the following three aspects: the number of generations and the time consumption needed to generate desired test data, and the success rate of detecting faults. The experimental results confirm that the proposed method can effectively generate test data that not only traverse the target path but also detect faults lying in it.
出处 《Frontiers of Computer Science》 SCIE EI CSCD 2013年第6期822-837,共16页 中国计算机科学前沿(英文版)
基金 Acknowledgements This study was jointly funded by Fundamental Research Funds for Central Universities (2013XK09), the National Natural Science Foundation of China (Grant No. 61075061), the Excellent Young Scholars of Higher University of Heilongjiang Province (1252G063), the Natural Science Foundation of Jiangsu Province (BK2012566), the Specialized Research Fund for the Doctoral Program of Higher Education (20100095110006), the Excellent Creative Team Foundation of China University of Mining and Technology (2011ZCX002), and the Key Advanced Research Program of Mudanjiang Normal University (SY201216).
关键词 software testing path coverage fault detection test data multi-objective optimization genetic algorithms software testing, path coverage, fault detection, test data, multi-objective optimization, genetic algorithms
  • 相关文献

参考文献3

二级参考文献23

  • 1邱晓康,李宣东.一个面向路径的软件测试辅助工具[J].电子学报,2004,32(F12):231-234. 被引量:11
  • 2夏辉,宋昕,王理.基于Z路径覆盖的测试用例自动生成技术研究[J].现代电子技术,2006,29(6):92-94. 被引量:11
  • 3Chen Y,Zhong Y.Automatic path-oriented test data generation using a multi-population genetic algorithm[A].Proceedings of the 4th International Conference on Natural Computation[C].Jinan,China:IPICNC,2008.566-570.
  • 4Sofokleous A A,Andreou A S.Automatic,evolutionary test data generation for dynamic software testing[J].The Journal of Systems and Software,2008,81(11):1883-1898.
  • 5Pajappa V,Biradar A,Panda S.Efficient software test case generation using genetic algorithm based graph theory[A].Proceedings of the 1st International Conference on Emerging Trends in Engineering and Technology[C].Nagpur,India:IPICETET.2008.298-303.
  • 6Bouchachia A.An immune genetic algorithm for software test data generation[A].Proceedings of the 7th International Conference on Hybrid Intelligent Systems[C].Washington,DC,USA:IP IC HIS,2007.84-89.
  • 7Ahmed M A,Hermadi I.GA-based multiple paths test data generator[J].Computer & Operations Research,2008,35(10):3107-3124.
  • 8David W Binkley.FlagRemover:A testability transfor-mation for transforming loop assigned flags[J].ACM Transactions on Software Engineering and Method-ology,2009,2(3):110-146.
  • 9Ahmed M A, Hermadi I. GA-based multiple paths test data generator[ J ]. Computers and Operations Research, 2008, 35 (10) :3107 - 3124.
  • 10Bueno P M S, Jino M. Automatic test data generation for pro- gram paths using genetic algorithms[ J]. International Journal of Software Engineering and Knowledge Engineering, 2002, 12 (6) :691 - 709.

共引文献80

同被引文献15

引证文献4

二级引证文献8

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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