arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.10210cs.SEcs.LG
收藏

机器学习在自动化测试生成中的集成:一项系统映射研究

The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study

University of Gothenburg(哥德堡大学)

Afonso Fontes, Gregory Gay

AI总结:

本文通过系统映射124篇文献,梳理了机器学习在自动化测试生成中的应用现状、常用技术、评估方式及主要挑战,为该领域研究提供路线图。

摘要:

背景:机器学习(ML)可能实现有效的自动化测试生成。目标:我们刻画新兴研究,考察测试实践、研究者目标、所应用的机器学习技术、评估以及挑战。方法:我们对124篇出版物的样本进行了系统映射。结果:机器学习为系统、GUI、单元、性能和组合测试生成输入,或提升现有生成方法的性能。机器学习还被用于生成测试判定、基于属性的测试以及预期输出预言。监督学习——通常基于神经网络——和强化学习——通常基于Q学习——较为常见,一些出版物还采用了无监督或半监督学习。(半/无)监督方法同时使用传统测试指标和机器学习相关指标(例如准确率)进行评估,而强化学习通常使用与奖励函数相关的测试指标进行评估。结论:迄今为止的工作展现出巨大前景,但在训练数据、再训练、可扩展性、评估复杂性、所采用的机器学习算法及其应用方式、基准和可复现性方面仍存在开放挑战。我们的发现可作为该领域研究者的路线图和灵感来源。

英文摘要:

Context: Machine learning (ML) may enable effective automated test generation. Objective: We characterize emerging research, examining testing practices, researcher goals, ML techniques applied, evaluation, and challenges. Methods: We perform a systematic mapping on a sample of 124 publications. Results: ML generates input for system, GUI, unit, performance, and combinatorial testing or improves the performance of existing generation methods. ML is also used to generate test verdicts, property-based, and expected output oracles. Supervised learning - often based on neural networks - and reinforcement learning - often based on Q-learning - are common, and some publications also employ unsupervised or semi-supervised learning. (Semi-/Un-)Supervised approaches are evaluated using both traditional testing metrics and ML-related metrics (e.g., accuracy), while reinforcement learning is often evaluated using testing metrics tied to the reward function. Conclusion: Work-to-date shows great promise, but there are open challenges regarding training data, retraining, scalability, evaluation complexity, ML algorithms employed - and how they are applied - benchmarks, and replicability. Our findings can serve as a roadmap and inspiration for researchers in this field.

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

↑