Requirement traceability is an important and costly task that creates trace links from requirements to different software artifacts.These trace links can help engineers reduce the time and complexity of software maint...Requirement traceability is an important and costly task that creates trace links from requirements to different software artifacts.These trace links can help engineers reduce the time and complexity of software maintenance.The information retrieval(IR)technique has been widely used in requirement traceability.It uses the textual similarity between software artifacts to create links.However,if two artifacts do not share or share only a small number of words,the performance of the IR can be very poor.Some methods have been developed to enhance the IR by considering relations between target artifacts,but they have been limited to code rather than to other types of target artifacts.To overcome this limitation,we propose an automatic method that combines the IR method with the close relations between target artifacts.Specifically,we leverage close relations between target artifacts rather than just text matching from requirements to target artifacts.Moreover,the method is not limited to the type of target artifacts when considering the relations between target artifacts.We conduct experiments on five public datasets and take account of trace links between requirements and different types of software artifacts.Results show that under the same recall,the precisions on the five datasets improve by 40%,8%,20%,4%,and6%,respectively,compared with the baseline method.The precision on the five datasets improves by an average of15.6%,showing that our method outperforms the baseline method when working under the same conditions.展开更多
基金the National Key Research and Development Program,China(No.2018YFB1003902)the National Natural Science Foundation of China(No.61772270)the Funding of the Key Laboratory of Safety-Critical Software(No.1015-XCA1816403)。
文摘Requirement traceability is an important and costly task that creates trace links from requirements to different software artifacts.These trace links can help engineers reduce the time and complexity of software maintenance.The information retrieval(IR)technique has been widely used in requirement traceability.It uses the textual similarity between software artifacts to create links.However,if two artifacts do not share or share only a small number of words,the performance of the IR can be very poor.Some methods have been developed to enhance the IR by considering relations between target artifacts,but they have been limited to code rather than to other types of target artifacts.To overcome this limitation,we propose an automatic method that combines the IR method with the close relations between target artifacts.Specifically,we leverage close relations between target artifacts rather than just text matching from requirements to target artifacts.Moreover,the method is not limited to the type of target artifacts when considering the relations between target artifacts.We conduct experiments on five public datasets and take account of trace links between requirements and different types of software artifacts.Results show that under the same recall,the precisions on the five datasets improve by 40%,8%,20%,4%,and6%,respectively,compared with the baseline method.The precision on the five datasets improves by an average of15.6%,showing that our method outperforms the baseline method when working under the same conditions.