期刊文献+

方法级别的细粒度软件缺陷定位方法 被引量:10

Fine-grained Software Bug Location Approach at Method Level
下载PDF
导出
摘要 当软件缺陷报告在跟踪系统中被指派给开发人员进行缺陷修复之后,缺陷修复人员就需要根据提交的缺陷报告来进行软件缺陷定位,并做出相应的代码变更,以修复该软件缺陷.在缺陷修复的整个过程中,软件缺陷定位占用了开发人员大量的时间.提出了一种方法级别的细粒度软件缺陷定位方法MethodLocator,以提高软件修复人员的工作效率.MethodLocator首先对缺陷报告和源代码方法体利用词向量(word2vec)和TF-IDF结合的方法进行向量表示;然后,根据源代码文件中方法体之间的相似度对方法体进行扩充;最后,通过对扩充后的方法体和缺陷报告计算其余弦距离并排序,来定位为修复软件缺陷所需做出变更的方法.在4个开源软件项目Argo UML、Ant、Maven和Kylin上的实验结果表明,MethodLocator方法优于现有的缺陷定位方法,它能够有效地将软件缺陷定位到源代码的方法级别上. When a software bug report is assigned to a developer for bug resolution, the developer needs to locate the bug in a source code file and make code changes correspondingly to resolve the software bug. In fact, most of time of the developer is spent on bug location in the whole process of bug resolution. This study proposes a method level fine-grained bug location approach, called MethodLocator, to improve the efficiency of software bug resolution. Firstly, it takes the vector representation of the bug report and the source code method body using the word vector (Word2Vec) and TF-IDF. Secondly, MethodLocator augments method body of each method based on similarities among all method bodies in the source code files. Thirdly, MethodLocator locates methods for change to resolve the bug based on similarities between the bug report and the augmented methods. Experimental results on four open source software projects as ArgoUML, Ant, Maven, and Kylin demonstrate that MethodLocator is better than state-of-the-art techniques in method level bug location.
作者 张文 李自强 杜宇航 杨叶 ZHANG Wen;LI ZI-Qiang;DU Yu-Hang;YANG Ye(School of Economics and Management, Beijing University of Chemical Technology, Beijing 100029, China;College of Economics and Management, Beijing University of Technology, Beijing 100124, China)
出处 《软件学报》 EI CSCD 北大核心 2019年第2期195-210,共16页 Journal of Software
基金 国家自然科学基金(61379046 61432001) 西安市科技计划(2016CXWL21)~~
关键词 缺陷报告 MethodLocator 细粒度缺陷定位 方法级别 词向量表示 bug report methodLocator fine-grained bug location method level word vector representation
  • 相关文献

参考文献5

二级参考文献61

  • 1搜狗实验室.文本分类语料库[EB/OL].[2008-07-20].http://www.sogou.com/labs/dl/c.html.
  • 2Anvik J, Hiew L, Murphy GC. Who should fix this bug? Proc.of the 28th International Conference on SoftwareEngineering. May, 2006. 361-370.
  • 3Nguyen AT, Nguyen TT, Al-Kofahi 3,et al. A topic-basedapproach for narrowing the search space of buggy files froma bug report. Proc. of the 26th IEEE/ACM InternationalConference on Automated Software Engineering. Nov, 2011.263-272.
  • 4Abreu R, Zoeteweij P, Golsteijn R, et al. A practicalevaluation of spectrum-based fault localization. Journal ofSystems and Software, 2009,82(11): 1780-1792.
  • 5Jones JA, Harrold MJ. Empirical evaluation of the Tarantulaautomatic fault-localization technique. Proc. of the 20thIEEE/ACM International Conference on Automated SoftwareEngineering. 2005.273-282.
  • 6Jones JA, Harrold MJ? Stasko J. Visualization of testinformation to assist fault localization. Proc. of the 24thInternational Conference on Software Engineering. May,2002. 467477.
  • 7Liblit B, Naik M, Zheng AX, et al. Scalable statistical bugisolation. Proc. of the 2005 ACM SIGPLAN Conference onProgramming Language Design and Implementation. June,2005.15-26.
  • 8Liu C, Fei L, Yan X, et al. Statistical debugging: a hypothesistesting-based approach. IEEE Trans, on SoftwareEngineering, 2010,32 (10): 831-848.
  • 9Dallmeier V,Lihdig C, Zeller A. Lightweight bug localizationwith AMPLE. Proc. of the 6th International Symposium onAutomated Analysis-driven Debugging.
  • 10Renieres M,Reiss S. Fault localization with nearest neighborqueries. Proc. of the 18th IEEE Int. Conf. on AutomatedSoftware Engineering. 2003. 30-39.

共引文献160

同被引文献53

引证文献10

二级引证文献23

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部