计算机与现代化

• 应用与开发 • 上一篇    下一篇

基于对数几率回归的函数级软件缺陷定位

  

  1. (南京航空航天大学计算机科学与技术学院,江苏南京211106)
  • 收稿日期:2017-11-23 出版日期:2018-08-23 发布日期:2018-08-27
  • 作者简介:周明泉(1993-),男,江苏泰兴人,南京航空航天大学计算机科学与技术学院硕士研究生,研究方向:软件缺陷定位;江国华(1963-),男,江苏南京人,副教授,硕士,研究方向:软件工程,软件测试,嵌入式系统及应用。

LogisticRegression-basedSoftwareFaultLocalizationinFunctionLevel

  1. (CollegeofComputerScienceandTechnology,NanjingUniversityofAeronauticsandAstronautics,Nanjing211106,China)
  • Received:2017-11-23 Online:2018-08-23 Published:2018-08-27

摘要: 现有的基于程序频谱的缺陷定位方法是通过利用语句覆盖信息计算可疑度从而确定其检查次序的,但在系统测试时,待定位对象代码量庞大,导致这类方法效果不佳。针对以上情况,提出一种基于对数几率回归的函数级别软件定位方法,其主要是分析失败测试用例的子系统和模块的执行信息,区分缺陷根源互异的失败测试用例,缩小定位范围;依次进行模块级别和函数级别的缺陷定位,计算每个模块和函数与失败测试用例的关联度,根据可疑值确定检查次序。实验表明,提出的方法能够有效缩小缺陷定位范围,提高缺陷函数的定位效率。

关键词: 缺陷定位, 系统测试, 对数几率回归

Abstract: Themethodoffaultlocalizationbasedonspectrumdeterminesthecheckorderbycalculatingthesuspicious
ofthecoverageinformationofstatements.However,duringthesystemtest,thesizeoftheobjecttobelocatedislarge,whichleadstothepooreffectofthosemethods.Thispaperproposedamethodtolocatethefunctionsfaultsduringsystemtest.Inordertonarrowtherangeoflocation,weanalyzedtheexecutioninformationoffailedtestcasessubsystemandmodule,anddistinguishedthefailedtestcaseswithdifferentfaults.Thecorrelationdegreeiscalculatedforeachmoduleandfunction,andtheorderoffunctionstobecheckedisdeterminedbylocatingthefaultsatmodulelevelandfunctionlevelinsequence.Theexperimentsshowthattheproposedmethodcanreducetherangeoffaultlocalizationandimprovetheefficiencyoffaultlocalization.

Key words: faultlocalization, systemtest, logisticregression

中图分类号: