Diversity oriented test data generation using metaheuristic search techniques

被引:41
作者
Bueno, Paulo M. S. [1 ]
Jino, Mario [2 ]
Wong, W. Eric [3 ]
机构
[1] Informat Technol Ctr Renato Archer, Sao Paulo, Brazil
[2] Univ Estadual Campinas, Campinas, SP, Brazil
[3] Univ Texas Dallas, Dept Comp Sci, Richardson, TX 75083 USA
关键词
Software testing; Test data generation; Random testing; Simulated annealing; Genetic algorithms; Simulated repulsion; SOFTWARE TEST DATA; PARTITION; TOOL;
D O I
10.1016/j.ins.2011.01.025
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
We present a new test data generation technique which uses the concept of diversity of test sets as a basis for the diversity oriented test data generation - DOTG. Using DOTG we translate into an automatic test data generation technique the intuitive belief that increasing the variety, or diversity, of the test data used to test a program can lead to an improvement on the completeness, or quality, of the testing performed. We define the input domain perspective for diversity (DOTG-ID), which considers the distances among the test data in the program input domain to compute a diversity value for test sets. We describe metaheuristics which can be used to automate the generation of test sets for the DOTG-ID testing technique: simulated annealing; a genetic algorithm; and a proposed metaheuristic named simulated repulsion. The effectiveness of DOTG-ID was evaluated by using a Monte Carlo simulation, and also by applying the technique to test simple programs and measuring the data-flow coverage and mutation scores achieved. The standard random testing technique was used as a baseline for these evaluations. Results provide an understanding of the potential gains in terms of testing effectiveness of DOTG-ID over random testing and also reveal testing factors which can make DOTG-ID less effective. (C) 2011 Elsevier Inc. All rights reserved.
引用
收藏
页码:490 / 509
页数:20
相关论文
共 80 条
[1]  
Alexander Sloane Neil James., 1998, Proceedings of International Congress of Mathematicians, P387
[2]   Using program data-state scarcity to guide automatic test data generation [J].
Alshraideh, Mohammad ;
Bottaci, Leonardo ;
Mahafzah, Basel A. .
SOFTWARE QUALITY JOURNAL, 2010, 18 (01) :109-144
[3]   DATA DIVERSITY - AN APPROACH TO SOFTWARE FAULT TOLERANCE [J].
AMMANN, PE ;
KNIGHT, JC .
IEEE TRANSACTIONS ON COMPUTERS, 1988, 37 (04) :418-425
[4]   Is mutation an appropriate tool for testing experiments? [J].
Andrews, JH ;
Briand, LC ;
Labiche, Y .
ICSE 05: 27TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING, PROCEEDINGS, 2005, :402-411
[5]  
[Anonymous], TR0903 KINGS COLL DE
[6]  
[Anonymous], 1994, Encyclopedia of software Engineering
[7]   Search based software testing of object-oriented containers [J].
Arcuri, Andrea ;
Yao, Xin .
INFORMATION SCIENCES, 2008, 178 (15) :3075-3095
[8]  
Ayari K, 2007, GECCO 2007: GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE, VOL 1 AND 2, P1074
[9]  
Bache R., 1997, Software Testing, Verification and Reliability, V7, P139, DOI 10.1002/(SICI)1099-1689(199709)7:3<139::AID-STVR136>3.0.CO
[10]  
2-R