Harnessing Test-Oriented Knowledge Graphs for Enhanced Test Function Recommendation
-
Published:2024-04-18
Issue:8
Volume:13
Page:1547
-
ISSN:2079-9292
-
Container-title:Electronics
-
language:en
-
Short-container-title:Electronics
Author:
Liu Kaiqi1ORCID, Wu Ji1, Sun Qing1, Yang Haiyan1, Wan Ruiyuan2
Affiliation:
1. School of Computer Science and Engineering, Beihang University, Beijing 100191, China 2. CLOUD BU, Huawei Technologies Co., Ltd., Beijing 100191, China
Abstract
Application Programming Interfaces (APIs) have become common in contemporary software development. Many automated API recommendation methods have been proposed. However, these methods suffer from a deficit of using domain knowledge, giving rise to challenges like the “cold start” and “semantic gap” problems. Consequently, they are unsuitable for test function recommendation, which recommends test functions for test engineers to implement test cases formed with various test steps. This paper introduces an approach named TOKTER, which recommends test functions leveraging test-oriented knowledge graphs. Such a graph contains domain concepts and their relationships related to the system under test and the test harness, which is constructed from the corpus data of the concerned test project. TOKTER harnesses the semantic associations between test steps (or queries) and test functions by considering literal descriptions, test function parameters, and historical data. We evaluated TOKTER with an industrial dataset and compared it with three state-of-the-art approaches. Results show that TOKTER significantly outperformed the baseline by margins of at least 36.6% in mean average precision (MAP), 19.6% in mean reciprocal rank (MRR), and 1.9% in mean recall (MR) for the top-10 recommendations.
Reference54 articles.
1. Understanding the API usage in Java;Qiu;Inf. Softw. Technol.,2016 2. A theory of robust API knowledge;Thayer;ACM Trans. Comput. Educ. (TOCE),2021 3. Thung, F., Wang, S., Lo, D., and Lawall, J. (2013, January 11–15). Automatic recommendation of API methods from feature requests. Proceedings of the 2013 28th IEEE/ACM International Conference on Automated Software Engineering (ASE), Silicon Valley, CA, USA. 4. Huang, Q., Xia, X., Xing, Z., Lo, D., and Wang, X. (2018, January 3–7). API method recommendation without worrying about the task-API knowledge gap. Proceedings of the 2018 33rd IEEE/ACM International Conference on Automated Software Engineering (ASE), Montpellier, France. 5. Wei, M., Harzevili, N.S., Huang, Y., Wang, J., and Wang, S. (2022, January 21–29). Clear: Contrastive learning for api recommendation. Proceedings of the 44th International Conference on Software Engineering, Pittsburgh, PA, USA.
Cited by
1 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
|
|