论文标题

测试案例优先级的强化学习

Reinforcement Learning for Test Case Prioritization

论文作者

Lousada, João, Ribeiro, Miguel

论文摘要

在现代软件工程中,连续集成(CI)已成为系统地管理软件开发的生命周期的必不可少的一步。大型公司努力在有用的时间内更新管道更新和运行,这是由于大量的变化和功能的增加,这些功能彼此之间建立并有几个开发人员,并在不同的平台上工作。与此类软件更改相关联,测试总是有很大的组成部分。随着团队和项目的增长,详尽的测试迅速变得可抑制,坚决选择最相关的测试用例,而不会损害软件质量。本文扩展了有关应用强化学习以优化测试策略的最新研究。我们通过通过网络近似器和测试案例故障奖励来测试其适应新环境的能力,通过从金融机构中提取的新数据进行测试,从而产生超过0.6 $的故障检测(NAPFD)的标准化百分比。此外,我们研究了使用决策树(DT)作为存储器表示模型的影响,该模型与人工神经网络相对于人工神经网络没有显着改进。

In modern software engineering, Continuous Integration (CI) has become an indispensable step towards systematically managing the life cycles of software development. Large companies struggle with keeping the pipeline updated and operational, in useful time, due to the large amount of changes and addition of features, that build on top of each other and have several developers, working on different platforms. Associated with such software changes, there is always a strong component of Testing. As teams and projects grow, exhaustive testing quickly becomes inhibitive, becoming adamant to select the most relevant test cases earlier, without compromising software quality. This paper extends recent studies on applying Reinforcement Learning to optimize testing strategies. We test its ability to adapt to new environments, by testing it on novel data extracted from a financial institution, yielding a Normalized percentage of Fault Detection (NAPFD) of over $0.6$ using the Network Approximator and Test Case Failure Reward. Additionally, we studied the impact of using Decision Tree (DT) Approximator as a model for memory representation, which failed to produce significant improvements relative to Artificial Neural Networks.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源