Skip to content
Bidi92 edited this page Jan 2, 2018 · 4 revisions

Some potions may not work for varied reasons. They are marked.


Setup Test

  1. Download or update the Potions Module
  2. Create a new world with only Potions and it's dependencies activated Module
  3. Check that the world is created and loads without crashes or hanging

Potion Tests

Each potion has a subtly different test procedure but the majority is the same. In the below plan see the potion's specific section for it's Pre-Use and Post-Use steps. The command box can be opened by pressing f1 or by pressing fnandf1 jointly. A list of all potion names can be found in the source(TODO LINKY) and in game by running the command search Potions

Icon

  1. Spawn in the potion using give Potions:name
  2. Verify it spawned in and that it's texture and name exist
  3. Check the name and description for errors (eg, spelling)
  4. Perform the potions Pre-Use steps (See that potion's specific section)
  5. Use the potion by selecting it and right clicking
  6. Verify the potion's item is removed
  7. Verify the use sound is played
  8. Perform the Post-Use steps (See that potion's specific section)

AllSpeedPotion (May not work)

Pre-Use

  1. Record the Jump Speed, Swim Speed and Walk Speed

Post-Use

  1. Verify that the Jump Speed, Swim Speed and Walk Speed have doubled
  2. Verify that the effects last for 10 seconds

CombatPotion (May not work)

Physical Damage Resistence & Walk Speed

Pre-Use

  1. Note the Walk Speed
  2. Use healthMax to heal yourself fully
  3. Use setRegenRate 0 to reduce regeneration rate
  4. Use damage 60 to harm yourself
  5. Use showHealth and note the max health and current health
  6. Use give Core:Dirt and stand on a pillar of 5 blocks

Post-Use

Combat

  1. Use show health and verify that 30 points of health have been healed, the max health has increased by 50% and regeneration rate is 2
  2. Check that the Walk Speed has been tripled
  3. Walk off the pillar and veirfy it damages
  4. Verify it lasts for 15 seconds

CureAllPotion (Untestable)

Requires an ailment

CurePoisonPotion (Untestable)

Requires poison

DoubleJumpPotion

Pre-Use

  1. Press space to jump and whilst in mid-air attempt to jump again
  2. Verify the second jump doesn't occur

Post-Use

  1. Press space to jump and whilst in mid-air attempt to jump again
  2. Verify a second in-air jump is performed
  3. Verify a third mid air jump doesn't suceed
  4. Verify it lasts for 15 seconds

ExplosivePotion (Potion not working)

GluePotion

Pre-Use

  1. Attempt to jump and check it works

Post-Use

  1. Attempt to jump and verify it doesn't work
  2. Verify there is a sound played (TODO: Check this is intended)
  3. Verify it lasts for 15 seconds

HarmPotion

Pre-Use

  1. Heal yourself using healthMax
  2. Remove all health regen with setRegenRate 0
  3. Use showHealth and note your current health level

Post-Use

Harm

  1. Use showHealth and check your health has gone down by 40 points

HealPotion

Pre-Use

  1. Use healthMax to heal yourself fully
  2. Use setRegenRate 0 to remove all health regen
  3. Use damage 25 to reduce health by 25
  4. Use showHealth and note your current health

Post-Use

Heal

  1. Use showHealth and check your health has gone up by 20 points

HealthBoostPotion (May not work)

maxHealth Pre-Use

  1. Use showHealth and note the health level

Post-Use

  1. Use showHealth and check your max health has increased by 50%
  2. Verify the effect ends after 30 seconds

ItemUseSpeed (Untestable)

Item speed effects negligable

JumpSpeedPotion (May not work)

Jump Speed

Pre-Use

  1. Press space to jump and note the speed

Post-Use

  1. Press space to jump and verify the speed has doubled
  2. Verify the effect lasts 10 seconds

MobilityPotion (May not work)

Item Use Speed
Walk, Swim and Jump Speeds

Pre-Use

  1. Note the current Walk, Jump and Swim Speeds
  2. Press space to jump and attempt to jump again whilst in mid air. Verify it fails

Post-Use*

  1. Check the Walk, Jump and Swim speeds have all doubled.
  2. Press space to jump and attempt to jump again whilst in mid air.
  3. Verify the second jump suceeds but a third fails
  4. Verify the effect lasts for 15 seconds

PoisonPotion (Potion not working)

Poison

RagePotion (May not work)

Jump, Swim & Walk Speeds and Poison

Pre-Use

  1. Note the Jump Speed, Swim Speed and Walk Speed

Post-Use

  1. Verify that the Jump Speed, Swim Speed and Walk Speed have doubled
  2. Verify that the effects last for 15 seconds

RegenPotion (Potion not working)

Regen Rate

ResistPhysicalPotion (Potion not working)

Resist Physical Damage

SlowWalkPotion (May not work)

Walk Speed

Pre-Use

  1. Note the Walk Speed

Post-Use

  1. Verify the Walk Speed is halved
  2. Verify the effect lasts for 10 seconds

SwimSpeedPotion (May not work)

Swim Speed

Pre-Use

  1. Note the current Swim Speed

Post-Use

  1. Verify the Swim Speed has doubled
  2. Verify it lasts for 10 seconds

UltimatePotion (May not work)

Walk Speed

Pre-Use

  1. Use setMaxHealth 200 to double your health
  2. Use setRegenRate 0 to turn off regen
  3. Use damage 150 to harm yourself
  4. Note the Walk Speed

Post-Use

Ultimate

  1. Use showHealth and verify that 100 points is healed.
  2. Verify that the walk speed is doubled
  3. Verify the effect lasts for 10 seconds