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

用于软件测试任务的强化学习框架比较

A Comparison of Reinforcement Learning Frameworks for Software Testing Tasks

Polytechnique Montréal(蒙特利尔综合理工学院)

Paulina Stevia Nouwou Mindom, Amin Nikanjam, Foutse Khomh

AI总结:

本文实证评估了多种深度强化学习框架在测试用例优先级排序和游戏测试任务中的有效性与性能,发现Tensorforce等框架优于现有方法,且不同框架算法间存在显著性能差异。

摘要:

软件测试活动审查软件产品的工件和行为,以发现可能的缺陷并确保产品满足其预期需求。最近,深度强化学习(DRL)已被成功应用于游戏测试、回归测试和测试用例优先级排序等复杂测试任务中,以实现过程自动化并提供持续适应能力。从业者可以通过从头实现DRL算法或使用DRL框架来应用DRL。DRL框架提供维护良好的、已实现的最先进DRL算法,以促进和加速DRL应用的开发。开发者已广泛使用这些框架来解决包括软件测试在内的各个领域的问题。然而,据我们所知,目前没有研究对DRL框架中已实现算法的有效性和性能进行实证评估。此外,文献中缺乏一些指导原则来帮助从业者选择某个DRL框架而非另一个。在本文中,我们实证研究了精心挑选的DRL算法在两个重要软件测试任务上的应用:持续集成(CI)环境中的测试用例优先级排序和游戏测试。对于游戏测试任务,我们在一个简单游戏上进行实验,并使用DRL算法探索游戏以检测缺陷。结果表明,一些选定的DRL框架(如Tensorforce)的表现优于文献中的最新方法。为了对测试用例进行优先级排序,我们在CI环境中进行了实验,其中使用了来自不同框架的DRL算法对测试用例进行排序。我们的结果显示,在某些情况下,已实现算法之间的性能差异相当大,值得进一步研究。

英文摘要:

Software testing activities scrutinize the artifacts and the behavior of a software product to find possible defects and ensure that the product meets its expected requirements. Recently, Deep Reinforcement Learning (DRL) has been successfully employed in complex testing tasks such as game testing, regression testing, and test case prioritization to automate the process and provide continuous adaptation. Practitioners can employ DRL by implementing from scratch a DRL algorithm or using a DRL framework. DRL frameworks offer well-maintained implemented state-of-the-art DRL algorithms to facilitate and speed up the development of DRL applications. Developers have widely used these frameworks to solve problems in various domains including software testing. However, to the best of our knowledge, there is no study that empirically evaluates the effectiveness and performance of implemented algorithms in DRL frameworks. Moreover, some guidelines are lacking from the literature that would help practitioners choose one DRL framework over another. In this paper, we empirically investigate the applications of carefully selected DRL algorithms on two important software testing tasks: test case prioritization in the context of Continuous Integration (CI) and game testing. For the game testing task, we conduct experiments on a simple game and use DRL algorithms to explore the game to detect bugs. Results show that some of the selected DRL frameworks such as Tensorforce outperform recent approaches in the literature. To prioritize test cases, we run experiments on a CI environment where DRL algorithms from different frameworks are used to rank the test cases. Our results show that the performance difference between implemented algorithms in some cases is considerable, motivating further investigation.

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

↑