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.
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller OllieJ10. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for £3.99. You're not tied to anything after your purchase.