自动化测试的游戏 [英] Automated testing a game

查看:140
本文介绍了自动化测试的游戏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你会如何去增加自动化测试到游戏?

How would you go adding automated testing to a game?

我相信你可以进行单元测试了很多游戏引擎的功能(网络,对象创建,内存管理,等等),但是它可以自动检测实际游戏本身?

I believe you can unit test a lot of the game engine's functionality (networking, object creation, memory management, etc), but is it possible to automate test the actual game itself?

我不是在谈论游戏元素(如神族将在映射X击败虫族),但我说的是游戏和引擎之间的互动。

I'm not talking about gameplay elements (like Protoss would beat Zerg in map X), but I'm talking about the interaction between the game and the engine.

简介

在游戏开发中,发动机是只为游戏的平台。你能想到的游戏引擎作为一个操作系统和游戏作为软件的操作系统将运行。本场比赛可能是脚本的集合或游戏引擎内部的实际子程序。

In game development, the engine is just a platform for the game. You could think of the game engine as an OS and the game as a software the OS would run. The game could be a collection of scripts or an actual subroutine inside the game engine.

可能的解答

我的想法是这样的:

您将需要一个引擎,是确定性的。这意味着,给定的一组输入,输出将是完全一样的。这将inlude随机发生器被接种以相同的输入

You would need an engine that is deterministic. This means that given one set of input, the output would be exactly the same. This would inlude the random generator being seeded with the same input.

然后,创建一个包含几个对象的化身/用户可以交互的裸骨的水平。从小事做起,然后添加对象到水平更交互的发展。

Then, create a bare-bone level which contains a couple of objects the avatar/user can interact with. Start small and then add objects into the level as more interactions are developed.

创建它遵循的路径(测试寻路)的脚本,并与不同的对象(存储结果或预期的行为)进行交互。这个脚本会是您的自动化测试。 (比如一周)一定时间后,用您的发动机单元测试以及运行该脚本。

Create a script which follows a path (tests pathfinding) and interact with the different objects (store the result or expected behavior). This script would be your automated test. After a certain amount of time (say, one week), run the script along with your engine's unit tests.

推荐答案

这个职位在Games从内部可能是相关的/有趣。

This post at Games From Within might be relevant/interesting.

这篇关于自动化测试的游戏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆