Test Plan Advanced Topics

Click here to load reader

download Test Plan Advanced Topics

of 24

description

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 - PowerPoint PPT Presentation

Transcript of Test Plan Advanced Topics

Writing a Test Plan

With Mario!Test Plan Advanced TopicsMario Basic StatesSmall MarioBig MarioFire MarioStarman MarioMario Basic MovesRunJumpThrow FireballsAnd Combinations:Run + Jump + Throw FireballsRun + JumpEtc.

Objects in MarioGoombasQuestion BlocksPower Ups (Starman, Fireflower, Mushroom)Terrain (Ground, Pits, Pipes)List goes on!Testing One AspectMario vs Goomba CollisionTest each of Marios statesTest each of Marios movesHow can Mario interact with a Goomba?Collision with Goomba as Small MarioCaseInputExpected OutputCollide 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. Collision with Goomba as Big MarioCaseInputExpected OutputCollide 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. Collision with Goomba as Fire MarioCaseInputExpected OutputCollide 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. Eliminating Redundant TestsTwo possible Normal results for hitting a Goomba:

Mario State PenaltiesCaseInputExpected OutputSmall Mario loses a lifeExperience Penalty Interaction with an enemy while Small MarioMario loses a lifeBig Mario ShrinksExperience Penalty Interaction with an enemy while Big MarioMario shrinks.Fire Mario ShrinksExperience Penalty Interaction with an enemy while Fire MarioMario shrinks.Collision with Goomba (Generalized)CaseInputExpected OutputCollide 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.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 EnemiesWhat about the Piranha Plant?

PENALTYCollision With Piranha PlantCaseInputExpected OutputCollide 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.Collision With Piranha PlantCaseInputExpected OutputCollide 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.Error CasesStuff that shouldnt 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 dont try to include glitches!Test for Likely GlitchesMost 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 CasesThe razors edge between two states.

Boundary Cases are PreciseExact Point which is the difference between one state (Stomp a Goomba) and another (Lose a Life).Need Precise Values (Exact x,y coordinates)Collision with Goomba (Boundaries)CaseInputExpected OutputCollide 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 80s were unforgiving. Review: Types of Test CasesNormal CasesTest the normal states and interactions of objects.Error CasesTest known bugs and the effects of likely glitches.Boundary CasesTest the boundaries between normal states.Also test boundaries from normal to error states.What types of cases are these?CaseInputExpected OutputCollide 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.Marios 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.Questions?Email your [email protected]