跳到主要导航 跳到搜索 跳到主要内容

SRTEF: Automatic Test Function Recommendation with Scenarios for Implementing Stepwise Test Case

  • Kaiqi Liu
  • , Ji Wu*
  • , Haiyan Yang
  • , Qing Sun
  • , Ruiyuan Wan
  • *此作品的通讯作者
  • Beihang University
  • Huawei Technologies Co., Ltd.

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Implementing test cases to automate test execution is a popular testing practice currently. A stepwise test case consists of several sequential test steps. Given a test function library, the typical way to implement a test case is calling the existing test functions in the library to reduce test cost. How to find the appropriate test function(s) to implement a test step in a given test case thus becomes an important problem. However, in current testing practices, test engineers usually select the appropriate test function manually by experience. It is time-consuming and could lead to invalid test results by selecting inappropriate or wrong test functions to call. In this paper, we propose an automatic test function recommendation approach with scenario named SRTEF (Scenario-based Recommendation of TEst Function). Given a test step, SRTEF uses two levels of similarities to recommend test functions, description similarity and scenario similarity. The description similarity measures the semantic relatedness between the test step and test function by their literal descriptions. To calculate the scenario similarity, SRTEF at first retrieves a set of historical test cases that contains test step(s) semantically similar to the given test step; then the scenario similarity between test step and test function is calculated according to the calling relation between retrieved test case and test function, and the co-occurrence relation among test functions. SRTEF has been successfully applied in Huawei. We evaluate SRTEF by using the dataset from Huawei and comparing with BIKER, reported as the best recommendation approach so far. The results show that SRTEF outperforms the BIKER approach by at least 49% in Mean Average Precision, 33% in Mean Reciprocal Rank, and 25% in Mean Recall.

源语言英语
主期刊名Proceedings - 2021 21st International Conference on Software Quality, Reliability and Security, QRS 2021
出版商Institute of Electrical and Electronics Engineers
1069-1078
页数10
ISBN(电子版)9781665458139
DOI
出版状态已出版 - 2021
已对外发布
活动21st International Conference on Software Quality, Reliability and Security, QRS 2021 - Hainan, 中国
期限: 6 12月 202110 12月 2021

出版系列

姓名IEEE International Conference on Software Quality, Reliability and Security, QRS
2021-December
ISSN(印刷版)2693-9177

会议

会议21st International Conference on Software Quality, Reliability and Security, QRS 2021
国家/地区中国
Hainan
时期6/12/2110/12/21

指纹

探究 'SRTEF: Automatic Test Function Recommendation with Scenarios for Implementing Stepwise Test Case' 的科研主题。它们共同构成独一无二的指纹。

引用此