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

软件测试与代码重构:一项面向从业者的调研

Software Testing and Code Refactoring: A Survey with Practitioners

Danilo Leandro Lima, Ronnie de Souza Santos, Guilherme Pires Garcia, Sildemir S. da Silva, Cesar Franca, Luiz Fernando Capretz

AI总结:

本研究面向软件测试从业者开展调研,探究其代码重构实践的收益与局限,发现重构可助力自动化测试维护、提升团队绩效,但存在管理层重视不足等障碍,为测试人员提升编码能力提供参考。

摘要:

如今,软件测试从业者通常被要求培养编码技能以开展测试自动化工作。对编码人员而言,一项核心必备技能是实施代码重构的能力,这是软件开发中备受重视的质量维度;然而,软件开发者在成功应用这一实践时往往会遇到阻碍。在此背景下,本研究旨在探究软件测试从业者(如软件测试员、测试工程师、测试分析师和软件QA人员)如何处理代码重构,以明确该实践在软件测试场景下的收益与局限。我们遵循软件工程领域的调研实施指南,采用便利抽样、目的抽样和滚雪球抽样三种抽样技术,从测试从业者处收集数据。我们共收到80名受访者的回答,他们分享了自身对自动化测试代码进行重构的经验。研究结论表明,在软件测试场景中,重构具备多项益处,例如支撑自动化测试的维护工作、提升测试团队的绩效;但从业者在有效落地这一实践时可能遭遇障碍,尤其是管理者和领导层缺乏兴趣的问题。本研究引发了关于让测试从业者对自动化测试代码实施重构的重要性的讨论,这一举措有助于提升他们的编码能力。

英文摘要:

Nowadays, software testing professionals are commonly required to develop coding skills to work on test automation. One essential skill required from those who code is the ability to implement code refactoring, a valued quality aspect of software development; however, software developers usually encounter obstacles in successfully applying this practice. In this scenario, the present study aims to explore how software testing professionals (e.g., software testers, test engineers, test analysts, and software QAs) deal with code refactoring to understand the benefits and limitations of this practice in the context of software testing. We followed the guidelines to conduct surveys in software engineering and applied three sampling techniques, namely convenience sampling, purposive sampling, and snowballing sampling, to collect data from testing professionals. We received answers from 80 individuals reporting their experience refactoring the code of automated tests. We concluded that in the context of software testing, refactoring offers several benefits, such as supporting the maintenance of automated tests and improving the performance of the testing team. However, practitioners might encounter barriers in effectively implementing this practice, in particular, the lack of interest from managers and leaders. Our study raises discussions on the importance of having testing professionals implement refactoring in the code of automated tests, allowing them to improve their coding abilities.

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

↑