It really does matter how you normalize the branch distance in search-based software testing

被引:55
作者
Arcuri, Andrea [1 ]
机构
[1] Simula Res Lab, Lysaker, Norway
关键词
branch distance; search-based software testing; theory; Simulated Annealing; Genetic Algorithms; test data generation; TEST DATA GENERATION; EMPIRICAL-EVALUATION; OPTIMIZATION;
D O I
10.1002/stvr.457
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
The use of search algorithms for test data generation has seen many successful results. For structural criteria like branch coverage, heuristics have been designed to help the search. The most common heuristic is the use of approach level (usually represented with an integer) to reward test cases whose executions get close (in the control flow graph) to the target branch. To solve the constraints of the predicates in the control flow graph, the branch distance is commonly employed. These two measures are linearly combined. Since the approach level is more important, the branch distance is normalized, often in the range [0, 1]. In this paper, different types of normalizing functions are analyzed. The analyses show that the one that is usually employed in the literature has several flaws. The paper presents a different normalizing function that is very simple and does not suffer from these limitations. Empirical and analytical analyses are carried out to compare these two functions. In particular, their effect is studied on commonly used search algorithms, such as Hill Climbing, Simulated Annealing and Genetic Algorithms. Copyright (c) 2011 John Wiley & Sons, Ltd.
引用
收藏
页码:119 / 147
页数:29
相关论文
共 36 条
[1]  
[Anonymous], CSR0904 U BIRM
[2]  
[Anonymous], 2010, Proceedings of the 19th International Symposium on Software Testing and Analysis, ISSTA'10
[3]  
Arcuri Andrea, 2010, Proceedings of the Third IEEE International Conference on Software Testing, Verification and Validation (ICST 2010), P205, DOI 10.1109/ICST.2010.17
[4]  
Arcuri Andrea, 2008, 2008 IEEE International Conference on Software Testing Verification and Validation Workshop (ICSTW), P161, DOI 10.1109/ICSTW.2008.48
[5]  
Arcuri A., 2009, GECCO '09: Proceedings of the 11th Annual Conf. on Genetic and evolutionary computation, P1649
[6]   Search based software testing of object-oriented containers [J].
Arcuri, Andrea ;
Yao, Xin .
INFORMATION SCIENCES, 2008, 178 (15) :3075-3095
[7]  
Arcuri A, 2009, LECT NOTES COMPUT SC, V5792, P156, DOI 10.1007/978-3-642-04944-6_13
[8]   Full Theoretical Runtime Analysis of Alternating Variable Method on the Triangle Classification Problem [J].
Arcuri, Andrea .
1ST INTERNATIONAL SYMPOSIUM ON SEARCH BASED SOFTWARE ENGINEERING, PROCEEDINGS, 2009, :113-121
[9]  
Baresel A., 2000, THESIS HUMBOLDT U BE
[10]   Adaptive random testing based on distribution metrics [J].
Chen, Tsong Yueh ;
Kuo, Fei-Ching ;
Liu, Huai .
JOURNAL OF SYSTEMS AND SOFTWARE, 2009, 82 (09) :1419-1433