arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.16992cs.SE
收藏

消除自然语言测试坏味的转换目录

A Catalog of Transformations to Remove Smells From Natural Language Tests

Manoel Aranda, Naelson Oliveira, Elvys Soares, Márcio Ribeiro, Davi Romão, Ullyanne Patriota, Rohit Gheyi, Emerson Souza, Ivan Machado

AI总结:

本文提出了一组消除七种自然语言测试坏味的转换目录及基于NLP的配套自动化工具,经专业人员调查和Ubuntu OS真实测试样本评估,验证了其有效性和83.70%的精确度。

摘要:

测试坏味会给测试活动带来困难,如可维护性差、非确定性行为和不完整的验证。现有研究已广泛涉及自动化软件测试中的测试坏味,但对自然语言测试中的坏味关注甚少。尽管已有研究识别并分类了此类坏味,但缺乏系统性的消除方法。因此,也缺乏自动识别和消除自然语言测试坏味的工具。本文提出了一组转换目录,旨在消除七种自然语言测试坏味,并使用自然语言处理(NLP)技术实现了一个配套工具。我们的工作旨在提升软件开发过程中自然语言测试的质量和可靠性。本研究采用双重实证策略来评估其贡献。首先,一项涉及15名软件测试专业人员的调查评估了目录转换的接受度和实用性。其次,一项实证研究通过分析来自Ubuntu OS的真实实践测试样本来评估我们的工具。结果表明,软件测试专业人员认为这些转换很有价值。此外,自动化工具展现出良好的精确度,其F-Measure达到83.70%。

英文摘要:

Test smells can pose difficulties during testing activities, such as poor maintainability, non-deterministic behavior, and incomplete verification. Existing research has extensively addressed test smells in automated software tests but little attention has been given to smells in natural language tests. While some research has identified and catalogued such smells, there is a lack of systematic approaches for their removal. Consequently, there is also a lack of tools to automatically identify and remove natural language test smells. This paper introduces a catalog of transformations designed to remove seven natural language test smells and a companion tool implemented using Natural Language Processing (NLP) techniques. Our work aims to enhance the quality and reliability of natural language tests during software development. The research employs a two-fold empirical strategy to evaluate its contributions. First, a survey involving 15 software testing professionals assesses the acceptance and usefulness of the catalog's transformations. Second, an empirical study evaluates our tool to remove natural language test smells by analyzing a sample of real-practice tests from the Ubuntu OS. The results indicate that software testing professionals find the transformations valuable. Additionally, the automated tool demonstrates a good level of precision, as evidenced by a F-Measure rate of 83.70%

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑