Given a large body of code, how do we know where to focus our quality assurance effort? By mining the software’s defect history, we can automatically learn which code features correlated with defects in the past—and leverage these correlations for new predictions: “In the past, high inheritance depth was an indicator of a high number of defects. Since this new component also has a high inheritance depth, let us test it thoroughly”. Such history-based approaches work best if the new component is similar to the components learned from. But how does learning from history perform for projects with high variability between components? We ran a study on two SAP products involving a wide spectrum of functionality. We found that learning and predicting was accurate at package level, but not at product level. These results suggest that to learn from past defects, one should separate the product into component clusters with similar functionality, and make separate predictions for each cluster. Our initial approaches to form such clusters automatically, based on similarity of metrics, showed promising accuracy.

K. Herzig, R. Premraj, T. Zimmermann, A. Zeller, and J. Heymann, “Predicting defects in sap products: a replicated study,” Software Engineering Chair, Saarland University 2008.
[Bibtex]

@techreport{herzig-abap-prediction-2008,
title = {Predicting Defects in SAP Products: A Replicated Study},
author = {Kim Herzig and Rahul Premraj and Thomas Zimmermann and Andreas Zeller and Juergen Heymann},
institution = {Software Engineering Chair, Saarland University},
year = {2008},
pdf = {http://www.kim-herzig.de/wp-content/uploads/2009/04/esem08a1.pdf},
link={http://www.kim-herzig.de/2009/04/05/predicting-defects-in-sap-products-a-replicated-study/}
}

Download author PDF.

No Comment

Comments are closed.