Abstract

Accurate software bug number prediction makes software test resource allocation, maintenance, and release time cost efficient. However, it is a challenge to accurately predict the number of software bugs when there fluctuations caused by many uncertain factors faced by the complex software. Considering this, a new method for software bug number prediction based on a panel data model from the perspective of complex networks is proposed in this article. Using complex network theory, we constructed the software code network and calculated the static metrics of the network structure, and the percolation threshold of change in the network structure based on percolation theory as a dynamic metric. These network metrics were then normalized as inputs and a panel data model was used for bug prediction. The proposed method can predict the number of bugs for both within-project and cross-project. Empirical studies were performed on data obtained from 120 releases of eight open-source software projects (Lua, SQLite, Redis, Linux kernel, ant, jmeter, poi, and tomcat), the experimental results indicated that network metrics are effective bug indicators, and the proposed method outperformed ten baseline methods (with an average improvement of 28.05%). This article is expected to provide insights into more smart software quality and reliability assurance.

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.