Quick answer: A game test case is a repeatable check with an ID, a title, preconditions, numbered steps, one expected result, a priority and the platforms it applies to. Write them for the critical path, for bugs that already escaped once, and for platform requirements, and explore everything else. Keep each case to one expected behaviour and about seven steps, store them in a spreadsheet with one result column per build, and delete cases that no longer earn their place.

Test case tutorials are usually written around a login form: enter a valid email, expect the dashboard. Games do not work like that. State carries over from an hour ago, input arrives from three devices at once, the player can pause, alt-tab or unplug a controller at any frame, and “expected result” has to describe something on screen that a tester can judge in a second. This guide shows how to write cases for those conditions, with eight worked examples from a made-up 2D action RPG, a smoke suite you can run on every build, and a template to paste into a spreadsheet.

What a test case is

A test case is a check written so that two different people, on two different days, perform it the same way and agree on whether it passed. It has these fields:

It is one of three ways to write down testing work, and each suits a different job.

FormExampleUse it when
Checklist item“Saving works”The tester knows the game well and you need a fast reminder, not a procedure
Test casePreconditions, four steps, one expected resultThe result must be the same whoever runs it, and a failure blocks something
Exploratory charter“Spend 30 minutes in the shop with a nearly full inventory, looking for ways to lose or duplicate items”You do not yet know what the failure looks like

When a small team should write them

Written cases cost time twice: once to write and again every time the feature changes. A team of one to five should write them only where repeatability pays for that.

  1. The critical path. Launch, new game, the first ten minutes, save and load, anything that takes money. If one of these breaks, the build cannot ship.
  2. Anything that broke before. A bug that reached players once will come back. One case per escaped bug is the cheapest regression suite there is.
  3. Platform requirements. Controller disconnect handling, suspend and resume, store and console checks. These are pass or fail by nature and someone else will test them if you do not.

For everything else, exploration is the better use of an hour: a feature that still changes weekly, game feel, balance, a new level. Script what must not break and explore what is new. A bug bash is the group version of exploring.

Four techniques, with game examples

Boundary values

Bugs live at the edges of ranges. For every number in the design, test the last valid value, the limit, and one step past it: an inventory with one free slot, a full one, and a pickup while full; 1 HP taking exactly 1 damage; gold exactly equal to the price; gaining XP at the maximum level; a stack of 99 receiving one more; a name field left empty and filled to its limit.

State transitions

List the states the game can be in, then force a change at the worst moment: pause during a cutscene, alt-tab during a save, disconnect the controller mid-fight, open the inventory during the death animation, skip dialogue on the line that grants an item, quit while the autosave icon is showing. Each pair of “state” and “interruption” is a candidate case.

Negative tests

Give the game what it should refuse and check that it refuses politely: a save file truncated to zero bytes, a save from a newer version, no network at launch, the network dropping during a leaderboard submit, a full disk, a missing audio device. The expected result is a clear message and a playable game, never a crash or a silently reset profile.

Combinations

You cannot test every platform with every setting. Pick a small matrix in which each value appears at least once and the risky pairs appear together:

RunPlatformDisplayInputLanguage
AWindows 11, mid-range GPU1080p fullscreenKeyboard and mouseEnglish
BWindows 10, integrated graphicsUltrawide, borderlessControllerGerman
CSteam DeckNative handheld screenBuilt-in controlsJapanese
DmacOS, Apple siliconWindowed, resizedControllerEnglish

Four runs of the smoke suite cover every value here once.

Eight worked test cases

These are illustrations for an invented game. The names and numbers are placeholders for your own.

SAVE-003  Loading a save made mid-dungeon restores player and world state
Area: Save/Load   Priority: P1   Platforms: all
Preconditions: test save "mine_entrance" (37/50 HP, 2 potions, 120 gold)
Steps:
  1. Load the save. Kill the two rats in the first room. Drink one potion.
  2. Pause and choose Save.
  3. Quit to desktop. Relaunch. Choose Continue.
Expected: player is in the first room with the HP shown before saving,
  1 potion and 120 gold. Both rats stay dead. Play time continues from
  the saved value.

COMBAT-011  A hit for exactly the remaining HP kills the player once
Area: Combat   Priority: P1   Platforms: all
Preconditions: debug command sets HP to 1; a rat (1 damage) is in range
Steps:
  1. Let the rat hit the player.
  2. Press attack and move during the death animation.
Expected: HP shows 0, never a negative number. The death animation plays
  once, input is ignored, and the game over screen appears.

UI-007  The pause menu is fully usable with a controller alone
Area: UI   Priority: P1   Platforms: PC, Steam Deck
Preconditions: controller connected before launch; mouse not touched
Steps:
  1. Press Start in gameplay.
  2. Move through every item with the D-pad, then again with the stick.
  3. Open Options, change the music volume, press B.
Expected: one item is always visibly highlighted. Focus never lands on a
  hidden or disabled item. B goes back exactly one level. Button glyphs
  match the connected controller.

SHOP-004  Buying with exactly enough gold leaves zero and cannot repeat
Area: Shop   Priority: P2   Platforms: all
Preconditions: 120 gold; Iron Sword costs 120; one free inventory slot
Steps:
  1. Talk to the merchant. Buy the Iron Sword.
  2. Try to buy it again.
Expected: gold is 0 and one sword is in the inventory. The second attempt
  is refused with the "not enough gold" message. Gold is still 0.

LOC-002  The longest strings fit in menus and the HUD
Area: Localisation   Priority: P2   Platforms: PC
Preconditions: language set to German
Steps:
  1. Open the main menu, Options, the inventory and the shop.
  2. Accept the quest with the longest title.
Expected: no text is clipped, overlaps another element or leaves its
  button. No raw keys (MENU_START) or missing-glyph boxes appear.

ACH-005  "First Blood" unlocks once, on the first kill
Area: Achievements   Priority: P2   Platforms: Steam
Preconditions: achievements reset for the test account
Steps:
  1. Start a new game. Kill the first enemy. Kill a second.
  2. Quit, relaunch, kill another enemy.
Expected: the unlock appears after the first kill only and shows as
  unlocked in the platform overlay. No popup on later kills.

PERF-001  The heaviest scene stays inside the frame budget
Area: Performance   Priority: P1   Platforms: minimum-spec PC
Preconditions: release build; default settings at 1080p; save "collapse"
Steps:
  1. Load the save with the frame-time overlay on.
  2. Play the scripted fight for 60 seconds.
Expected: average frame time is at or under your budget (16.7 ms for
  60 fps). No hitch longer than the limit you set after the first seconds.

BOOT-001  First launch on a machine with no save data
Area: Startup   Priority: P1   Platforms: all
Preconditions: fresh install; save folder and settings file deleted
Steps:
  1. Launch the game and wait at the title screen.
  2. Start a new game.
Expected: the title screen appears with no error. There is no Continue
  option. Language follows the system language or falls back to English.
  Gameplay starts, and the save folder and settings file now exist.

Notice what makes them work. Preconditions name a prepared save file, so setup takes seconds. Each case checks one behaviour. Expected results are things a tester can see, with numbers where numbers exist.

A ten-case smoke suite for every build

A smoke suite answers one question: is this build worth anyone’s time? It should take about fifteen minutes, and a single failure rejects the build.

  1. The game launches to the title screen from a clean install.
  2. A new game starts and the player can move.
  3. The first objective can be completed.
  4. Save, quit to desktop, relaunch, load: the state is restored.
  5. A save made by the last released build still loads.
  6. An option changed in the menu (volume) persists after a restart.
  7. Keyboard and controller both work from the title screen into gameplay.
  8. The core loop runs once: fight, take damage, die, retry.
  9. Lose focus (alt-tab, or background the app) and return: the game resumes with audio.
  10. Quit from the menu: the process exits with no error, and the build number shown was the expected one.

Case 5 is the one small teams skip and regret. For a shorter version, see the five-minute smoke test.

A paste-ready template

ID:             AREA-000
Title:          [Action or condition] [expected behaviour]
Area:
Priority:       P1 blocks release / P2 fix before launch / P3 nice to have
Platforms:
Preconditions:  [save file, settings, hardware, account state]
Steps:
  1.
  2.
  3.
Expected:       [one observable result]
Notes:          [linked bug IDs, why this case exists]

As a spreadsheet header row:

ID | Title | Area | Priority | Platforms | Preconditions | Steps | Expected | Notes | Build 0.9.1 | Build 0.9.2 | Build 0.9.3

Organising cases and recording results

Naming. Use an area prefix and a number (SAVE-003), and never renumber: bug reports and chat messages will refer to the ID for years. Write titles as the behaviour that should hold (“Loading a save made mid-dungeon restores player and world state”), so a failed row reads as a statement that is currently false.

One sheet, one row per case. Sort by priority so the P1 rows at the top are your smoke suite. Keep prepared save files in a folder named after the case IDs.

One column per build. Each cell holds Pass, Fail, Blocked (could not be run, with the reason) or stays empty for not run. Reading across a row shows when a case started failing. Reading down a column shows whether the build is fit to release.

A failure becomes a bug report straight away. The case already holds the steps and the expected result. Add what happened instead, the build, the platform, how often it reproduces and a screenshot or clip, then put the bug’s ID in the failing cell. How to write steps to reproduce a game bug and these good and bad bug report examples cover the report itself.

Keeping the suite alive

Filing failures from inside the build

Bugnet is not a test case manager: it has no pass or fail grid, and the spreadsheet above stays. Where it helps is the step after a failure. With the SDK in the build, the tester opens the in-game report form at the moment the case fails, and the report arrives with the platform, OS version, CPU, GPU, RAM, game version and recent log lines attached, plus a screenshot when screenshot capture is on. Put the case ID in the title (“SAVE-003: potion count not restored after load”). Reports with an identical title stack into one entry with an occurrence count, so the same failure on three machines is one bug.

Automatic error capture also catches the case that “passed” while an exception was logged in the background. See how bug reports work and the getting started guide.

Frequently asked questions

What is a test case in game testing?

A test case is a repeatable check with an ID, a title, preconditions, numbered steps and one expected result, plus a priority and the platforms it applies to. It is written so that any tester performs it the same way and reaches the same pass or fail verdict.

How many test cases does an indie game need?

Far fewer than a large studio writes. Start with a smoke suite of about ten cases covering launch, new game, save and load, input and quitting, then add one case for every bug that reaches players. Explore everything else instead of scripting it.

What is the difference between a test case and a checklist?

A checklist item is a one-line reminder such as “saving works” that relies on the tester knowing how to check it. A test case spells out the starting state, the steps and the expected result, so the outcome does not depend on who runs it.

How do I write a good expected result for a game test case?

Describe one thing the tester can observe, with numbers where they exist: the player has 1 potion and 120 gold, the game over screen appears once, no text leaves its button. Avoid “works correctly”, which two testers will judge differently.

Should I write test cases or do exploratory testing?

Both, for different things. Write cases for what must never break and for bugs that already escaped once. Use exploratory sessions for new features, game feel and balance, where you do not yet know what a failure looks like.

Script the ten things that must never break, give each a prepared save file, and add one case every time a bug reaches players. Everything else is better explored than written down.