ISSN 1000-1239 CN 11-1777/TP

计算机研究与发展 ›› 2015, Vol. 52 ›› Issue (3): 729-737.doi: 10.7544/issn1000-1239.2015.20131308

• 软件技术 • 上一篇    下一篇

一种基于句法分析的跟踪关系恢复方法

王金水1,翁伟2,彭鑫3   

  1. 1(福建工程学院 福州 350108) ; 2(厦门理工学院 福建厦门 361024); 3(复旦大学软件学院 上海 201203) (ymkscom@gmail.com)
  • 出版日期: 2015-03-01
  • 基金资助: 
    基金项目:国家自然科学基金项目(61402108);福建省中青年教师教育科研项目(JA14221,JA13238);福建工程学院科研启动基金项目(GY-Z13113,GY-Z14068)

Recovering Traceability Links Using Syntactic Analysis

Wang Jinshui1, Weng Wei2, Peng Xin3   

  1. 1(Fujian University of Technology, Fuzhou 350108); 2(Xiamen University of Technology, Xiamen, Fujian 361024); 3(Software School, Fudan University, Shanghai 201203)
  • Online: 2015-03-01

摘要: 软件需求跟踪已被公认为影响软件项目成败的一个关键因素.针对大多数基于信息检索的需求跟踪方法都严重依赖于软件制品中的文本质量,提出了一种基于句法分析的动态需求跟踪方法.该方法能够从制品中抽取最有可能刻画自身特征的标引词,并减少制品中噪音对需求跟踪带来的不利影响.为了验证该方法的有效性,在多个来自不同项目且类型不同的软件制品上,比较了基于不同标引词集合的动态需求跟踪方法所建立的跟踪关系.实验结果表明,基于句法分析的动态需求跟踪方法能够有效地提高跟踪关系的准确性.

关键词: 需求跟踪, 动态需求跟踪, 语义聚类, 句法分析, 自然语言处理

Abstract: Software requirement traceability has been globally recognized as a key factor of affecting the success of software projects. The generated traceability links are vital to many software engineering and software verification and validation (V&V) activities such as change impact analysis, software reuse and consistency checking. Addressing most existing requirement traceability approaches based on information retrieval are strongly affected by the quality of the documentation of different types of software artifacts, this paper presents a dynamic requirement traceability approach based on syntactic analysis. The proposed approach is able to extract terms which are most likely to characterize itself from text-based software artifacts such as source code and requirement document, and then reduce the adverse effects of noise in artifacts to the requirement tracing process. In order to verify the effectiveness of the proposed approach, we have compared the quality of the trace links produced by several dynamic requirement traceability approaches on three open source software systems and six types of software artifacts. The result suggests that the dynamic requirement traceability approach based on syntactic analysis can effectively improve the accuracy of the produced trace links.

Key words: trace requirement, dynamic requirement traceability, semantic cluster, syntactic analysis, natural language process

中图分类号: