一句话:提出 Wuji 框架,结合进化算法与深度强化学习进行在线游戏测试,平衡通关与探索以自动发现 bug。
游戏测试长期依赖人工试玩和脚本,自动化程度很低,其核心挑战在于测试过程需要按序决策,bug 往往要完成困难的中间任务后才能触发,要求一定的智能水平。深度强化学习(DRL)的最新进展为自动化游戏测试提供了新思路,但现有 DRL 主要关注赢得游戏而非测试。为弥补这一空白,本文首先深入分析了来自四个真实商业游戏产品的 1349 个真实 bug,据此提出四种 oracle 支持自动化游戏测试,并进一步提出 Wuji——一个在线游戏测试框架,利用进化算法、DRL 和多目标优化实现自动游戏测试。Wuji 在赢得游戏与探索游戏空间之间取得平衡:通关使智能体在游戏中取得进展,空间探索则增加发现 bug 的可能性。作者在一个简单游戏和两个流行商业游戏上进行了大规模评估,结果证明了 Wuji 在探索空间和检测 bug 方面的有效性,并在商业游戏中发现了 3 个此前未知、已被开发者确认的 bug。
Game testing has been long recognized as a notoriously challenging task, which mainly relies on manual playing and scripting based testing in game industry. Even until recently, automated game testing still remains to be largely untouched niche. A key challenge is that game testing often requires to play the game as a sequential decision process. A bug may only be triggered until completing certain difficult intermediate tasks, which requires a certain level of intelligence. The recent success of deep reinforcement learning (DRL) sheds light on advancing automated game testing, without human competitive intelligent support. However, the existing DRLs mostly focus on winning the game rather than game testing. To bridge the gap, in this paper, we first perform an in-depth analysis of 1349 real bugs from four real-world commercial game products. Based on this, we propose four oracles to support automated game testing, and further propose Wuji, an on-the-fly game testing framework, which leverages evolutionary algorithms, DRL and multi-objective optimization to perform automatic game testing. Wuji balances between winning the game and exploring the space of the game. Winning the game allows the agent to make progress in the game, while space exploration increases the possibility of discovering bugs. We conduct a large-scale evaluation on a simple game and two popular commercial games. The results demonstrate the effectiveness of Wuji in exploring space and detecting bugs. Moreover, Wuji found 3 previously unknown bugs, which have been confirmed by the developers, in the commercial games.
@inproceedings{paperbot5304,
title = {Wuji: Automatic Online Combat Game Testing Using Evolutionary Deep Reinforcement Learning},
author = {Yan Zheng and Xiaofei Xie and Ting Su and Lei Ma and Jianye Hao and Zhaopeng Meng and Yang Liu and Ruimin Shen and Yingfeng Chen and Changjie Fan},
booktitle = {ASE},
year = {2019},
doi = {10.1109/ase.2019.00077}
}