Skip to content

Player's Health Testing

aman-86 edited this page Sep 14, 2023 · 1 revision

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 that initialHealth is equal to 100.
Clone this wiki locally