Player's Health Testing - UQcsse3200/2023-studio-2 GitHub Wiki
Test Plan For HealthBar
The Objective to check whether the HealthBar is updating when the player's health get decreases after been attacked and increases after picking up the heathPowerUp.
Methodology
TestCase 1: updateHealthTest
Objective:- to Validate whether the HealthBar updates by ensuring
- PlayerStatsDisplay object creation in PlayerStatHealthTest class
- new
ProgressBar
assigned to healthBar field of PlayerStatsDisplay assertEquals
verifying thatinitialHealth
is equal to 100.