目前自动化需求跟踪的研究广泛使用文本信息检索技术.然而信息检索会遗漏一些文本不相似但是实际相关的软件制品,导致自动化跟踪的精度不高.针对上述问题,提出利用开发者协作关系来进行优化,研发了基于开发者协作关系和信息检索的需求跟踪系统.该系统在进行需求跟踪时,首先用信息检索推荐与需求文本上相似的代码,然后从代码提交日志中挖掘开发者协作关系,根据开发者协作关系再推荐相关代码,用户根据两次推荐的结果确定正确的需求代码跟踪关系.试验结果表明该系统能够找到信息检索遗漏的需求跟踪关系,能够提高自动化跟踪的准确性,节省跟踪时间.
Information retrieval (IR) is widely used in automatically discovering requirement traceability. However IR will miss some correct artifacts which have low text similarity with the requirement. There are accuracy issues in requirement traceability based on IR. To solve the problem, we propose an approach of using the developer collaborative relationship to improve the accuracy of the traceability links recovery between requirement and source code. Meanwhile, we develop a requirement-to-code traceability system. When the system is tracing, it retrieves the source code artifacts of the highest text similarity with the requirement and extracts the developer collaborative relationship from code commit logs. Then the system recommends some relevant code artifacts by developer collaboration relationship. Users can choose the correct code artifacts from the recommend result. The experiment shows that the requirement traceability system could improve the accuracy and the efficiency and reduce errors.