Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automated testing a game

Question

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?

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.

Introduction

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.

Possible Answers

My idea is this:

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.

like image 614
MrValdez Avatar asked Aug 18 '08 01:08

MrValdez


People also ask

What is automated testing for games?

With the automated test, testers can reach and test certain levels of the game which can consume a lot of manual effort and time. In some cases, there might be some scenarios or conditions due to which they might fail to achieve using their manual efforts.

Can you automate games?

Android Game Automation Instead it is a Windows key sender and auto clicker that is used alongside an Android emulator such as Nox or BlueStacks. Simply install Chimpeon and an Android emulator, open your favorite Android game, configure Chimpeon and you're done. Android game automation achieved in a matter of minutes!

Can we automate games using selenium?

Multiplayer online games nowadays heavily rely on small repetitive tasks to regulate the pace in which you proceed in your competition with other players. Duel a player once and win to earn a point. You have enough energy to duel 10 times.


1 Answers

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

like image 115
Anthony Cramp Avatar answered Sep 22 '22 04:09

Anthony Cramp