Presentation is loading. Please wait.

Presentation is loading. Please wait.

With Mario! Test Plan Advanced Topics. Mario Basic States Small Mario Big Mario Fire Mario Starman Mario.

Similar presentations


Presentation on theme: "With Mario! Test Plan Advanced Topics. Mario Basic States Small Mario Big Mario Fire Mario Starman Mario."— Presentation transcript:

1 With Mario! Test Plan Advanced Topics

2 Mario Basic States Small Mario Big Mario Fire Mario Starman Mario

3 Mario Basic Moves Run Jump Throw Fireballs And Combinations: Run + Jump + Throw Fireballs Run + Jump Etc.

4 Objects in Mario Goombas Question Blocks Power Ups (Starman, Fireflower, Mushroom) Terrain (Ground, Pits, Pipes) List goes on!

5 Testing One Aspect Mario vs Goomba Collision Test each of Mario’s states Test each of Mario’s moves How can Mario interact with a Goomba?

6 Collision with Goomba as Small Mario CaseInputExpected Output Collide with the left side of a Goomba as Small Mario. Move to the right towards Goomba. Mario loses a life. Collide with the right side of a Goomba as Small Mario. Move to the left towards Goomba. Mario loses a life. Collide with the bottom of a Goomba as Small Mario. Stand under a falling Goomba. Mario loses a life. Collide with the top of a Goomba as Small Mario. Jump on top of a Goomba.Goomba is flattened.

7 Collision with Goomba as Big Mario CaseInputExpected Output Collide with the left side of a Goomba as Big Mario. Move to the right towards Goomba. Mario shrinks. Collide with the right side of a Goomba as Big Mario. Move to the left towards Goomba. Mario shrinks. Collide with the bottom of a Goomba as Big Mario. Stand under a falling Goomba. Mario shrinks. Collide with the top of a Goomba as Big Mario. Jump on top of a Goomba.Goomba is flattened.

8 Collision with Goomba as Fire Mario CaseInputExpected Output Collide with the left side of a Goomba as Fire Mario. Move to the right towards Goomba. Mario shrinks. Collide with the right side of a Goomba as Fire Mario. Move to the left towards Goomba. Mario shrinks. Collide with the bottom of a Goomba as Fire Mario. Stand under a falling Goomba. Mario shrinks. Collide with the top of a Goomba as Fire Mario. Jump on top of a Goomba.Goomba is flattened.

9 Eliminating Redundant Tests Two possible Normal results for hitting a Goomba:

10 Mario State Penalties CaseInputExpected Output Small Mario loses a lifeExperience Penalty Interaction with an enemy while Small Mario Mario loses a life Big Mario ShrinksExperience Penalty Interaction with an enemy while Big Mario Mario shrinks. Fire Mario ShrinksExperience Penalty Interaction with an enemy while Fire Mario Mario shrinks.

11 Collision with Goomba (Generalized) CaseInputExpected Output Collide with the left side of a Goomba. Move to the right towards Goomba. Mario experiences Penalty Interaction. Collide with the right side of a Goomba. Move to the left towards Goomba. Mario experiences Penalty Interaction. Collide with the bottom of a Goomba. Stand under a falling Goomba. Mario experiences Penalty Interaction. Collide with the top of a Goomba. Jump on top of a Goomba.Mario experiences Reward Interaction with Goomba.

12 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.

13 Introducing New Enemies What about the Piranha Plant?

14 Collision With Piranha Plant CaseInputExpected Output Collide with the left side of a Piranha Plant. Move to the right towards Piranha Plant. Mario experiences Penalty Interaction. Collide with the right side of a Piranha Plant. Move to the left towards Piranha Plant. Mario experiences Penalty Interaction. Collide with the bottom of a Piranha Plant. Glitch through the pipe.Mario experiences Penalty Interaction. Collide with the top of a Piranha Plant. Jump on top of a Piranha Plant. Mario experiences Penalty Interaction.

15 Collision With Piranha Plant CaseInputExpected Output Collide with the left side of a Piranha Plant. Move to the right towards Piranha Plant. Mario experiences Penalty Interaction. Collide with the right side of a Piranha Plant. Move to the left towards Piranha Plant. Mario experiences Penalty Interaction. Collide with the bottom of a Piranha Plant? Glitch through the pipe? Mario experiences Penalty Interaction? Collide with the top of a Piranha Plant. Jump on top of a Piranha Plant. Mario experiences Penalty Interaction.

16 Error Cases Stuff that shouldn’t happen, but could (likely glitches). Stuff that we know will cause runtime errors and can happen.

17 Test for Every Glitch? Time consuming. Not really possible. We don’t try to include glitches!

18 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.

19 Boundary Cases The razor’s edge between two states.

20 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)

21 Collision with Goomba (Boundaries) CaseInputExpected Output Collide with Goomba at top- left corner, 1 pixel to the right. Jump on top of Goomba and land precisely 1 pixel into the Reward Zone. Mario experiences Reward Interaction with Goomba. Collide with Goomba at top- left corner, 1 pixel to the left. Jump on top of Goomba and land precisely 1 pixel left of the Reward Zone. Mario experiences Penalty Interaction. Collide with Goomba at top- left corner exactly. Jump on top of Goomba and land precisely at the 0 axis between Reward and Penalty Zones. Mario experiences Penalty Interaction. Because the 80’s were unforgiving.

22 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.

23 What types of cases are these? CaseInputExpected Output Collide with Goomba while in Starman state. Run into Goomba while Mario has Star Power. Mario experiences Reward Interaction with Goomba. Collide with Goomba and Star simultaneously. Run into Goomba that is overlapped by Star. Mario experiences Penalty Interaction. Collide with Star.Run into Star.Mario’s state switches to Starman for 10 seconds. Collide with Goomba immediately after a Star. Run into Star, then proceed to the right 1 pixel and run into Goomba. Mario experiences Reward Interaction with Goomba. Collide with Goomba exactly 10 seconds after colliding with a Star. Run into Star, then touch a Goomba from the left side exactly 10 seconds later. Mario experiences Penalty Interaction. Collide with the top of pipe at the bottom left corner. Run to the right and jump into the pipe from the left. Mario passes through the pipe partially and gets stuck.

24 Questions? Email your professor!! mjspra2@uky.edu


Download ppt "With Mario! Test Plan Advanced Topics. Mario Basic States Small Mario Big Mario Fire Mario Starman Mario."

Similar presentations


Ads by Google