A Multi-Objective Particle Swarm Optimization for Test Case Selection Based on Functional Requirements Coverage and Execution Effort

被引:27
作者
de Souza, Luciano S. [1 ]
de Miranda, Pericles B. C. [1 ]
Prudencio, Ricardo B. C. [1 ]
Barros, Flavia de A. [1 ]
机构
[1] Fed Univ Pernambuco UFPE, Ctr Informat CIn, Recife, PE, Brazil
来源
2011 23RD IEEE INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE (ICTAI 2011) | 2011年
关键词
Software testing; Test case selection; Multi-objective optimization; PSO; Particle Swarm Optimization;
D O I
10.1109/ICTAI.2011.45
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Although software testing is a central task in the software lifecycle, it is sometimes neglected due to its high costs. Tools to automate the testing process minor its costs, however they generate large test suites with redundant Test Cases (TC). Automatic TC Selection aims to reduce a test suite based on some selection criterion. This process can be treated as an optimization problem, aiming to find a subset of TCs which optimizes one or more objective functions (i.e., selection criteria). The majority of search-based works focus on single-objective selection. In this light, we developed a mechanism for functional TC selection which considers two objectives simultaneously: maximize requirements' coverage while minimizing cost in terms of TC execution effort. This mechanism was implemented as a multi-objective optimization process based on Particle Swarm Optimization (PSO). We implemented two multi-objective versions of PSO (BMOPSO and BMOPSO-CDR). The experiments were performed on two real test suites, revealing very satisfactory results (attesting the feasibility of the proposed approach). We highlight that execution effort is an important aspect in the testing process, and it has not been used in a multi-objective way together with requirements coverage for functional TC selection.
引用
收藏
页码:245 / 252
页数:8
相关论文
共 28 条
[1]   Test adequacy criteria for UML design models [J].
Andrews, A ;
France, R ;
Ghosh, S ;
Craig, G .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2003, 13 (02) :95-127
[2]  
[Anonymous], 1999, EVOLUTIONARY ALGORIT
[3]  
[Anonymous], 2005, Software Testing and Analysis: Process, Principles and Techniques
[4]  
Aranha Eduardo, 2007, 2007 First International Symposium on Empirical Software Engineering and Measurement, P107
[5]  
Borba P., 2007, MOT 2007 INN C IC 20
[6]  
Borba P., 2010, LECT NOTES COMPUTER, V6153
[7]   A new heuristic for test suite reduction [J].
Chen, TY ;
Lau, MF .
INFORMATION AND SOFTWARE TECHNOLOGY, 1998, 40 (5-6) :347-354
[8]  
Chvatal V., 1979, Mathematics of Operations Research, V4, P233, DOI 10.1287/moor.4.3.233
[9]   Handling multiple objectives with particle swarm optimization [J].
Coello, CAC ;
Pulido, GT ;
Lechuga, MS .
IEEE TRANSACTIONS ON EVOLUTIONARY COMPUTATION, 2004, 8 (03) :256-279
[10]  
Deb K., 2010, MULTIOBJECTIVE OPTIM