Automatic test data generation for program paths using genetic algorithms

被引:43
作者
Bueno, PMS [1 ]
Jino, M [1 ]
机构
[1] Univ Estadual Campinas, Dept Comp Engn & Ind Automat, Sch Elect & Comp Engn, BR-13083970 Campinas, SP, Brazil
基金
巴西圣保罗研究基金会;
关键词
software testing; test data generation; dynamic technique; genetic algorithms; case-based reasoning;
D O I
10.1142/S0218194002001074
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
A new technique and tool are presented for test data generation for path testing. They are based on the dynamic technique and on a Genetic Algorithm, which evolves a population of input data towards reaching and solving the predicates along the program paths. We improve the performance of test data generation by using past input data to compose the initial population for the search. An experiment was done to assess the performance of the techniques compared to that of random data generation.
引用
收藏
页码:691 / 709
页数:19
相关论文
共 41 条
[1]  
AAMODT A, 1994, AI COMMUN, V7, P39
[2]  
[Anonymous], 1989, GENETIC ALGORITHM SE
[3]   AUTOMATIC-GENERATION OF PATH COVERS BASED ON THE CONTROL FLOW-ANALYSIS OF COMPUTER-PROGRAMS [J].
BERTOLINO, A ;
MARRE, M .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1994, 20 (12) :885-899
[4]  
BEUNO PMS, 2000, P IEEE INT C AUT SOF, P209
[5]   AUTOMATIC-GENERATION OF RANDOM SELF-CHECKING TEST CASES [J].
BIRD, DL ;
MUNOZ, CU .
IBM SYSTEMS JOURNAL, 1983, 22 (03) :229-245
[6]  
Boyer R. S., 1975, SIGPLAN Notices, V10, P234, DOI 10.1145/390016.808445
[7]  
Clarke L. A., 1976, IEEE Transactions on Software Engineering, VSE-2, P215, DOI 10.1109/TSE.1976.233817
[8]   CONSTRAINT-BASED AUTOMATIC TEST DATA GENERATION [J].
DEMILLO, RA ;
OFFUTT, AJ .
IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 1991, 17 (09) :900-910
[9]  
Ferguson R., 1996, ACM Transactions on Software Engineering and Methodology, V5, P63, DOI 10.1145/226155.226158
[10]  
Forgács I, 1997, LECT NOTES COMPUT SC, V1301, P378, DOI 10.1145/267896.267922