Deep reinforcement learning (DRL) has attracted much attention in automated game testing. Early attempts rely on game internal information for game space exploration, thus requiring deep integration with games, which is inconvenient for practical applications. In this work, we propose using only screenshots/pixels as input for automated game testing and build a general game testing agent, Inspector, that can be easily applied to different games without deep integration with games. In addition to covering all game space for testing, our agent tries to take human-like behaviors to interact with key objects in a game, since some bugs usually happen in player-object interactions. Inspector is based on purely pixel inputs and comprises three key modules: game space explorer, key object detector, and human-like object investigator. Game space explorer aims to explore the whole game space by using a curiosity-based reward function with pixel inputs. Key object detector aims to detect key objects in a game, based on a small number of labeled screenshots. Human-like object investigator aims to mimic human behaviors for investigating key objects via imitation learning. We conduct experiments on two popular video games: Shooter Game and Action RPG Game. Experiment results demonstrate the effectiveness of Inspector in exploring game space, detecting key objects, and investigating objects. Moreover, Inspector successfully discovers two potential bugs in those two games. The demo video of Inspector is available at https://github.com/Inspector-GameTesting/Inspector-GameTesting.
翻译:深度强化学习( DRL) 已经在自动游戏测试中引起极大关注。 早期尝试依靠游戏内部信息进行游戏空间探索, 因而需要与游戏进行深度整合, 这对实际应用来说不方便。 在这项工作中, 我们建议只使用屏幕截图/ 像素作为自动游戏测试的输入, 并建立一个普通游戏测试代理器( 检查员), 可以在不与游戏进行深度整合的情况下很容易应用到不同的游戏中。 除了覆盖所有游戏空间进行测试之外, 我们的代理人还试图在游戏中采取类似人类的行为与关键对象进行互动, 因为有些错误通常发生在玩家- 对象互动中。 检查员基于纯像素输入, 并包含三个关键模块: 游戏空间探索者、 关键对象探测器探测器和像人一样的物体。 游戏空间探索者将使用一个基于好奇的奖励功能来探索整个游戏空间, 而无需与游戏进行深度整合。 关键对象检测者检测者的目标是在一游戏中以少量的标注的屏幕抓图为基础, 类似对象调查员旨在模拟人类行为, 通过模仿学习来调查关键对象。 我们在两个受欢迎的视频游戏游戏游戏实验中进行实验: 射击游戏中, 测试者游戏的游戏中, 测试者/ 测试者/ 测试者/ 可能 测试者 。