An If-While-If Model-Based Performance Evaluation of Ranking Metrics for Spectra-Based Fault Localization

Spectra-based fault localization (SFL) is an automatic fault-localization technique which has received a lot of attention due to its simplicity and effectiveness. SFL uses ranking metric (RM) to rank the risk of fault existence in each program entity after dynamically collecting the necessary information. The evaluation of RMs for SFL has recently become a research focus. To evaluate the average performance of RMs for SFL with different single-fault types, an If-While-If (IWI) model-based approach is presented in this paper. Firstly, through investigating rankings of statements in the IWI model, this paper takes an optimal RM known as an example to analyze its localization effectiveness for five types of single-fault. Secondly, a generic hierarchical method is given in the IWI model to precisely calculate the average performance of RMs. Two experiments, that calculate the average performance of the optimal RM on the IWI model and actual programs, are conducted with five single-fault types. The experimental results agree with theoretical analyses. It is found that the average performance of the optimal RM is related to the number of test cases and the number of program cycles, and the fault type. The IWI model could function as large programs to effectively evaluate RMs for different fault types.

[1]  Rajiv Gupta,et al.  Fault localization using value replacement , 2008, ISSTA '08.

[2]  Mary Jean Harrold,et al.  Empirical evaluation of the tarantula automatic fault-localization technique , 2005, ASE.

[3]  Lee Naish,et al.  The effectiveness of using non redundant test cases with program spectra for bug localization , 2009, 2009 2nd IEEE International Conference on Computer Science and Information Technology.

[4]  Sudipto Ghosh,et al.  Proximity based weighting of test cases to improve spectrum based fault localization , 2011, 2011 26th IEEE/ACM International Conference on Automated Software Engineering (ASE 2011).

[5]  Kai-Yuan Cai,et al.  Effective Fault Localization using Code Coverage , 2007, 31st Annual International Computer Software and Applications Conference (COMPSAC 2007).

[6]  W. K. Chan,et al.  In quest of the science in statistical fault localization , 2013, Softw. Pract. Exp..

[7]  Peter Zoeteweij,et al.  A practical evaluation of spectrum-based fault localization , 2009, J. Syst. Softw..

[8]  A.J.C. van Gemund,et al.  On the Accuracy of Spectrum-based Fault Localization , 2007, Testing: Academic and Industrial Conference Practice and Research Techniques - MUTATION (TAICPART-MUTATION 2007).

[9]  Lee Naish,et al.  A model for spectra-based software diagnosis , 2011, TSEM.

[10]  Rui Abreu,et al.  A Topology-Based Model for Estimating the Diagnostic Efficiency of Statistics-Based Approaches , 2012, 2012 IEEE 23rd International Symposium on Software Reliability Engineering Workshops.

[11]  John T. Stasko,et al.  Visualization of test information to assist fault localization , 2002, ICSE '02.

[12]  Mary Jean Harrold,et al.  Debugging in Parallel , 2007, ISSTA '07.

[13]  Peter Zoeteweij,et al.  An Evaluation of Similarity Coefficients for Software Fault Localization , 2006, 2006 12th Pacific Rim International Symposium on Dependable Computing (PRDC'06).

[14]  Eric A. Brewer,et al.  Pinpoint: problem determination in large, dynamic Internet services , 2002, Proceedings International Conference on Dependable Systems and Networks.