Skip to content

Functional tests

1.0 Basic movements:

Test case 1.0 Player Spawn

  • Prerequisite: Game or level is started.
  • Action: -.
  • Expected result: Player figure or both player figures are in their intended positions.

Test case 1.1: Horizontal movement left

  • Prerequisite: Game has started, playing figure is on the ground.
  • Action: Press A .
  • Expected result: The player runs to the left.

Test case 1.2: Horizontal movement to the right

  • Prerequisite: Level is started, character is standing .
  • Action: Press D .
  • Expected result: The player runs to the right.

Test case 1.3 . Jump

  • Prerequisite: Level is started, character is standing .
  • Action: Press SPACE BAR.
  • Expected result: The player jumps to the top.

Test case 1.4: Jumping while running

  • Prerequisite: Level is started, character is standing .
  • Action: Press SPACE BAR.
  • Expected result: Character jumps in the direction of travel (left or right).

Test case 1.5: Collision with an obstacle

  • Prerequisite:

    The game has been started and there is an obstacle in the level.

  • Action:

    Press the D or A button to move the character against the wall.

  • Expected result:

    The character stops and cannot cross the wall.


Test case 1.6: Platform jump

  • Prerequisite:

    The game has been started and there is an obstacle in the level.

  • Action:

    Press the D or A button to move the character against the wall.

  • Expected result:

    The character stops and cannot cross the wall.


2.0 Tests for boxes


Test case 2.0 : Box Spawn

  • Prerequisite:

    game is started

  • Action:

    check if boxes are spawned

  • Expected Result:

    all boxes are spawned and located at their supposed place spawned and located at their supposed place


Test case 2.2 : Box Movement

Prerequisite: game is started, Box is spawned

Action: check if boxes are movable

Expected Result: all boxes are movable in both directions

Test case 2.3 : Box on pressurePlate

Prerequisite: level startet, box and pressure Plate is available

Action: push box on pressure Plate also trigger other pressure Plate and see if Trapdoor opens

Expected Result: trigger plate be pushed down, if both plates are triggered, trapdoor should be openend

Test case 2.4 : Box Gravity shift

Prerequisite: game is started, Box is spawned

Action: push G for Gravity on both Players and see if Box behaves naturally to the Gravity.

Expected Result: box will move in the direction of the gravity and will stop when it hit the ground

Test case 2.5 : Box Hit Damage

Prerequisite: game is started, Box is spawned, Player must be hit by a box

Action: let a Playercharacter stand exactly over a box and then switch Gravity to hit him on porpuse

Expected Result: player losses 1 life when hit

Test case 2.6 : Box vs Absyss

Prerequisite: game is started, Box is spawned

Action: push box down an Whole

Expected Result: Box is falling down and dissapears


3.0 Tests Pressure Plates

Test case 3.1 :Trigger Pressure Plate by Player

Prerequisite: Protype Level startet

Action: stand on pressure Plate with Player, after that leave

Expected Result: Pressure Plate will be shown pushed down, it will goes back up when player leaves the plate.

Test case 3.2 :Trigger Pressure Plate by Box

Prerequisite: Protype Level startet, box spawned

Action: push box on pressure Plate with Player, after that push box away from pressure plate

Expected Result: Pressure Plate will be shown pushed down, it will goes back up when box leaves the plate.


Test case 3.3: trigger both boxes

Prerequisite: level startet, box available

Action: make sure both trigger plates are triggered, after leave trigger plate.

Expected Result: trapdoor opens when both plates are triggered and close if one trigger factors is moving away from trigger


**4.0 HUD **

Test case 4.1: Player Health Moot

Prerequisite: Level startet, HUD with Health is shown.

Action: Do a Action that harm Mood, like fall down a hole

Expected Result: Every Time Moot is taking damage he should lose life on the HUD

Test case 4.2 : Player Health Mayor Doom

Prerequisite: Level startet, HUD with Health is shown.

Action: Every Time Mayor Dom is taking damage he should lose life on the HUD

Expected Result: Level startet, HUD with Health is shown.