首页> 外文会议>IEEE International Conference on Software Testing, Verification and Validation Workshops >A learning-based method for detecting defective classes in object-oriented systems
【24h】

A learning-based method for detecting defective classes in object-oriented systems

机译:一种基于学习的面向对象系统中缺陷类的检测方法

获取原文

摘要

Code or design problems in software classes reduce understandability, flexibility and reusability of the system. Performing maintenance activities on defective components such as adding new features, adapting to the changes, finding bugs, and correcting errors, is hard and consumes a lot of time. Unless the design defects are corrected by a refactoring process these error-prone classes will most likely generate new errors after later modifications. Therefore, these classes will have a high error frequency (EF), which is defined as the ratio between the number of errors and modifications. Early estimate of error-prone classes helps developers to focus on defective modules, thus reduces testing time and maintenance costs. In this paper, we propose a learning-based decision tree model for detecting error-prone classes with structural design defects. The main novelty in our approach is that we consider EFs and change counts (ChC) of classes to construct a proper data set for the training of the model. We built our training set that includes design metrics of classes by analyzing numerous releases of real-world software products and considering EFs of classes to mark them as error-prone or non-error-prone. We evaluated our method using two long-standing software solutions of Ericsson Turkey. We shared and discussed our findings with the development teams. The results show that, our approach succeeds in finding error-prone classes and it can be used to decrease the testing and maintenance costs.
机译:软件类中的代码或设计问题降低了系统的易懂性,灵活性和可重用性。对有缺陷的组件执行维护活动(例如添加新功能,适应更改,查找错误和更正错误)非常困难,并且会花费大量时间。除非通过重构过程纠正了设计缺陷,否则这些易于出错的类很可能在以后的修改后会产生新的错误。因此,这些类别将具有较高的错误频率(EF),其定义为错误次数与修改次数之间的比率。早期估计容易出错的类有助于开发人员将精力集中在有缺陷的模块上,从而减少了测试时间和维护成本。在本文中,我们提出了一种基于学习的决策树模型,用于检测具有结构设计缺陷的易错类。我们方法的主要新颖之处在于,我们考虑了EF和类的变更计数(ChC),以构建用于训练模型的适当数据集。我们通过分析大量实际软件产品的发布并考虑类的EF以将其标记为容易出错或不容易出错的方式,构建了包含类设计指标的培训集。我们使用爱立信土耳其的两个长期软件解决方案评估了我们的方法。我们与开发团队分享并讨论了我们的发现。结果表明,我们的方法成功地找到了容易出错的类,可用于降低测试和维护成本。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号