Fault Localization Using TrustRank Algorithm
-
Published:2023-11-15
Issue:22
Volume:13
Page:12344
-
ISSN:2076-3417
-
Container-title:Applied Sciences
-
language:en
-
Short-container-title:Applied Sciences
Author:
Fan Xin123, Wu Kaisheng23, Zhang Shuqing23, Yu Li1, Zheng Wei23, Ge Yun23
Affiliation:
1. College of Aerospace Engineering, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China 2. School of Software, Nanchang Hangkong University, Nanchang 330063, China 3. Software Testing and Evaluation Center, Nanchang Hangkong University, Nanchang 330063, China
Abstract
Spectrum-based fault localization (SBFL), a widely recognized technique in automated fault localization, has limited effectiveness due to its disregard for the internal information of the program under test suites. To overcome this limitation, a novel TrustRank-based fault localization (TRFL) technique is introduced. TRFL enhances traditional SBFL by incorporating internal data dependencies of the program under the test suite, thereby providing a more comprehensive analysis. It constructs a node-weighted program execution network and employs the TrustRank algorithm to analyze network centrality and re-rank program entities based on their suspiciousness. Furthermore, a bidirectional TrustRank algorithm (Bi-TRFL) is extended that takes into account the influence relationship between network nodes for more accurate fault localization. When applied to large-scale datasets with real faults, such as Defects4J, TRFL, and Bi-TRFL, it significantly outperforms traditional SBFL methods in fault localization. They demonstrate up to 40% and 13% improvement in Top-1 and Top-5 rankings, respectively, proving their robustness and efficiency with minimal sensitivity to related parameters.
Funder
The National Natural Science Foundation of China the Youth Fund of the National Natural Science Foundation of China
Subject
Fluid Flow and Transfer Processes,Computer Science Applications,Process Chemistry and Technology,General Engineering,Instrumentation,General Materials Science
Reference37 articles.
1. The Economic Impacts of Inadequate Infrastructure for Software Testing;Tassey;Natl. Inst. Stand. Technol.,2002 2. Pearson, S., Campos, J., Just, R., Fraser, G., Abreu, R., Ernst, M.D., Pang, D., and Keller, B. (2017, January 20–28). Evaluating and improving fault localization. Proceedings of the 2017 IEEE/ACM 39th International Conference on Software Engineering (ICSE), IEEE 2017, Buenos Aires, Argentina. 3. PAFL: Probabilistic Automaton-based Fault Localization for Recurrent [4] Neural Networks;Ishimoto;Inf. Softw. Technol.,2023 4. An empirical study of fault localization families and their combinations;Zou;IEEE Trans. Softw. Eng.,2019 5. Jones, J.A., Harrold, M.J., and Stasko, J. (2002, January 19–25). Visualization of test information to assist fault localization. Proceedings of the 24th International Conference on Software Engineering, Orlando, FL, USA.
|
|