首页 | 本学科首页   官方微博 | 高级检索  
     


WAS: A weighted attribute-based strategy for cluster test selection
Affiliation:1. State Key Laboratory for Novel Software Technology, Nanjing University, China;2. Department of Computer Science, University of Texas at Dallas, USA;1. Campus Universitario – Lagoa Nova, Federal University of Rio Grande do Norte, Natal, RN 59078-970, Brazil;2. Federal University of Bahia, Brazil;3. Federal University of Minas Gerais, Brazil;4. State University of Rio Grande do Norte, Brazil;5. Pontifical Catholic University of Rio de Janeiro, Brazil;6. Federal University of Rio Grande do Norte, Brazil;1. Department of Mathematics and Computer Science, University of Oum el Bouaghi, LAMIS Laboratory, University of Tébessa, BP 358, Oum el Bouaghi 04000, Algeria;2. Department of Mathematics and Computer Science, Software Engineering Research Laboratory University of Quebec, Trois-Rivières, 3351, Boulevard Des Forges, Trois-Rivières, QC G9A 5H7, Canada;1. United Graduate School of Agriculture, Tottori University, Tottori, Japan;2. International Center for Agricultural Research in Dry Areas (ICARDA), Aleppo, Syria;3. National Agri-food Biotechnology Institute, Mohali, Punjab, India;4. Punjab Agricultural University, Ludhiana, Punjab, India;1. Département de Télécommunication, Faculté d’Electronique et Informatique, Université USTHB, BP. 32, Bab-Ezzouar 16111, Algeria;2. Laboratoire de Traitement du Signal, Département d’Electronique, Université Constantine, 1 Route Ain El-bey, Constantine 25000, Algeria
Abstract:In past decades, many techniques have been proposed to generate and execute test cases automatically. However, when a test oracle does not exist, execution results have to be examined manually. With increasing functionality and complexity of today's software, this process can be extremely time-consuming and mistake-prone. A CTS-based (cluster test selection) strategy provides a feasible solution to mitigate such deficiency by examining the execution results only with respect to a small number of selected test cases. It groups test cases with similar execution profiles into the same cluster and selects them from each cluster. Some well-known CTS-based strategies are one per cluster, n (a predefined value which is greater than 1) per cluster, adaptive sampling, and execution-spectra-based sampling (ESBS). The ultimate goal is to reduce testing cost by quickly identifying the executions that are likely to fail. However, improperly grouping the test cases will significantly diminish the effectiveness of these strategies (by examining results of more successful executions and fewer failed executions). To overcome this problem, we propose a weighted attribute-based strategy (WAS). Instead of clustering test cases based on the similarity of their execution profiles only once like the aforementioned CTS-based strategies, WAS will conduct more than one iteration of clustering using weighted execution profiles by also considering the suspiciousness of each program element (statement, basic block, decision, etc.), where the suspiciousness in terms of the likelihood of containing bugs can be computed by using various software fault localization techniques. Case studies using seven programs (make, ant, sed, flex, grep, gzip, and space) and four CTS-based strategies (one per cluster sampling, n per cluster sampling, adaptive sampling, and ESBS) were conducted to evaluate the effectiveness of WAS on 184 faulty versions containing either single or multiple bugs. Experimental results suggest that the proposed WAS strategy outperforms other four CTS-based strategies with respect to both recall and precision such that output verification is focused more strongly on failed executions.
Keywords:Weighted execution profile  Cluster test selection  Software fault localization
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号