240 likes | 392 Views
Test Plan Advanced Topics. With Mario!. Mario Basic States. Small Mario Big Mario Fire Mario Starman Mario. Mario Basic Moves. Run Jump Throw Fireballs And Combinations: Run + Jump + Throw Fireballs Run + Jump Etc. Objects in Mario. Goombas Question Blocks
E N D
Test Plan Advanced Topics With Mario!
Mario Basic States • Small Mario • Big Mario • Fire Mario • Starman Mario
Mario Basic Moves • Run • Jump • Throw Fireballs • And Combinations: • Run + Jump + Throw Fireballs • Run + Jump • Etc.
Objects in Mario • Goombas • Question Blocks • Power Ups (Starman, Fireflower, Mushroom) • Terrain (Ground, Pits, Pipes) • List goes on!
Testing One Aspect • Mario vsGoomba Collision • Test each of Mario’s states • Test each of Mario’s moves • How can Mario interact with a Goomba?
Eliminating Redundant Tests • Two possible Normal results for hitting a Goomba:
Safe Assumption? • If Penalty Interaction is independent of the source, yes! • Good coding will make this a good assumption. • Makes it easier to introduce additional elements, such as new enemies.
Introducing New Enemies • What about the Piranha Plant? PENALTY
Error Cases • Stuff that shouldn’t happen, but could (likely glitches). • Stuff that we know will cause runtime errors and can happen.
Test for Every Glitch? • Time consuming. • Not really possible. • We don’t try to include glitches!
Test for Likely Glitches • Most Mario enemies can be touched from any of four sides. • Piranha Plants should only be touched from three sides, since the bottom is attached to a pipe. • Should still test that fourth quadrant, as an error case, since this is an exception to the rule.
Boundary Cases • The razor’s edge between two states.
Boundary Cases are Precise • Exact Point which is the difference between one state (Stomp a Goomba) and another (Lose a Life). • Need Precise Values (Exact x,y coordinates)
Review: Types of Test Cases • Normal Cases • Test the normal states and interactions of objects. • Error Cases • Test known bugs and the effects of likely glitches. • Boundary Cases • Test the boundaries between normal states. • Also test boundaries from normal to error states.
Questions? • Email your professor!! • mjspra2@uky.edu