Testing Tables- P5
Black Box Testing
Test Test Results (Expected) Test Results (Actual) Fix
Game Load. I expect the game to load. The game did not load To fix this issue I
due to adding an incompatible removed the
asset. incompatible asset.
Start Button. I expect that the game will The game did not begin due to I removed the error in the
begin after start button an error in the code which made code by editing a piece
pressed. the game frozen on the main of code to contain the
menu screen. correct syntax.
Spacebar I expect that a wrench will When spacebar is pressed a No fix required.
control. be released. wrench is released.
Game Over. I expect the game to end The game ended when all lives No fix required.
after all lives are lost. were lost.
Collision I expect that collisions will Collisions were occurring every To fix this issue I had to
Detection. trigger whenever two time an enemy passed the shrink the size of the
hitboxes collide with each players character due to the image which was being
other. hitboxes being much larger than used to display the
they should have been. playable character,
Enemy I expect enemies to spawn Enemies only spawned once To fix this issue I had to
Spawned. at random intervals in every 10 seconds. decrease the range of
randomised positions. numbers which was
being used to spawn an
enemy every time a
specific number was
randomly generated.
Enemy I expect that some enemies All enemies moved at the same I had to add an Integer
Movement. will move quicker than other speed. range for the value of the
enemies. enemies velocity rather
than have a fixed value.
Character I expect that the character The playable character moved No fix required.
Movement. will move left/right when the whenever the player pressed
left/right arrow keys are either the left or right arrows.
pressed.
Scoring. I expect the score to Every time a player killed an To fix this issue I had to
increase whenever an enemy they would lose points change a “-” to a “+”.
enemy is killed. instead of gain due to a logical
error.
Timer. I expect the timer to infinitely The timer increased without any No fix required.
increase going up by one problems.
second every second.
Enemy Off I expect that when enemies When the enemies went off No fix required.
Screen. are off screen they are killed screen they were killed and no
and no points are given. points were awarded to the
player.
Lives. I expect a life to be lost A life was lost every time a To fix this issue I had to
every time the player player collided with a new life change a “-” to a “+”.
collides with an enemy and power up.
Black Box Testing
Test Test Results (Expected) Test Results (Actual) Fix
Game Load. I expect the game to load. The game did not load To fix this issue I
due to adding an incompatible removed the
asset. incompatible asset.
Start Button. I expect that the game will The game did not begin due to I removed the error in the
begin after start button an error in the code which made code by editing a piece
pressed. the game frozen on the main of code to contain the
menu screen. correct syntax.
Spacebar I expect that a wrench will When spacebar is pressed a No fix required.
control. be released. wrench is released.
Game Over. I expect the game to end The game ended when all lives No fix required.
after all lives are lost. were lost.
Collision I expect that collisions will Collisions were occurring every To fix this issue I had to
Detection. trigger whenever two time an enemy passed the shrink the size of the
hitboxes collide with each players character due to the image which was being
other. hitboxes being much larger than used to display the
they should have been. playable character,
Enemy I expect enemies to spawn Enemies only spawned once To fix this issue I had to
Spawned. at random intervals in every 10 seconds. decrease the range of
randomised positions. numbers which was
being used to spawn an
enemy every time a
specific number was
randomly generated.
Enemy I expect that some enemies All enemies moved at the same I had to add an Integer
Movement. will move quicker than other speed. range for the value of the
enemies. enemies velocity rather
than have a fixed value.
Character I expect that the character The playable character moved No fix required.
Movement. will move left/right when the whenever the player pressed
left/right arrow keys are either the left or right arrows.
pressed.
Scoring. I expect the score to Every time a player killed an To fix this issue I had to
increase whenever an enemy they would lose points change a “-” to a “+”.
enemy is killed. instead of gain due to a logical
error.
Timer. I expect the timer to infinitely The timer increased without any No fix required.
increase going up by one problems.
second every second.
Enemy Off I expect that when enemies When the enemies went off No fix required.
Screen. are off screen they are killed screen they were killed and no
and no points are given. points were awarded to the
player.
Lives. I expect a life to be lost A life was lost every time a To fix this issue I had to
every time the player player collided with a new life change a “-” to a “+”.
collides with an enemy and power up.