-
Notifications
You must be signed in to change notification settings - Fork 9
Test Plan for CompanionPowerupActivationDisplay
The test plan for the CompanionPowerupActivationDisplay
component is designed to ensure the correct functionality and reliability of the UI element responsible for displaying and activating powerups in a game. The component interacts with the powerup inventory
and offers a user-friendly interface for powerup selection.
Verify that the UI component initialises correctly and sets up its components properly.
- Powerup Activation with the Available Powerup.
- Set the powerup inventory to be empty and verify the behavior of the UI component.
- Trigger the
powerupInventoryChange
event and verify that the UI updates in response to the event.
- Trigger the
powerupInventoryChange
event and verify that the UI updates in response to the event.
This test focuses on the event handling mechanism of the UI component. It ensures that when the powerupInventoryChange
event is triggered, the UI updates correctly to reflect changes in the powerup
inventory.
![Screenshot 2023-10-19 at 5 48 02 AM](https://private-user-images.githubusercontent.com/140461356/276439130-22af6e2b-b4a5-4883-98fd-a05d8da03c4f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjIxOTgsIm5iZiI6MTczOTQyMTg5OCwicGF0aCI6Ii8xNDA0NjEzNTYvMjc2NDM5MTMwLTIyYWY2ZTJiLWI0YTUtNDg4My05OGZkLWEwNWQ4ZGEwM2M0Zi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNDQ0NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zODk5ZmQzZjQ3OTdjOGJmYjlhM2Q4MTk1ZTdmOTYxZjcwZWVlYTMxY2IxOTM2MmQxYjFjMzQwNDM4ZTMzMzk2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.PuBSBYm25UxoF8ptKt1DIiyzOwbl7tH5N1DVqq6YpAg)
- Simulate an empty powerup inventory and attempt to activate a
powerup
using the UI component.
This test covers a scenario where there are no available powerups in the inventory. It checks that the UI component handles this situation gracefully without attempting to activate a non-existent powerup.
![Screenshot 2023-10-19 at 5 51 24 AM](https://private-user-images.githubusercontent.com/140461356/276439482-4bdcd642-df58-44ad-a5a9-1f3e3e62a9db.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjIxOTgsIm5iZiI6MTczOTQyMTg5OCwicGF0aCI6Ii8xNDA0NjEzNTYvMjc2NDM5NDgyLTRiZGNkNjQyLWRmNTgtNDRhZC1hNWE5LTFmM2UzZTYyYTlkYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNDQ0NThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iMzgyZjhlYjY2ODc4YjYyMTMyNzk3ZGMyMmEzZDI0YmU1ODliZDcwZDcxODM1ZjgyMWYyYmNmYWJmN2RlNmY1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.M_i5nvmEddx_d8zt9deXAzI7_mbfIhj4xO-Q36_ZhxU)
@Mock
private CompanionPowerupInventoryComponent powerupInventory;
The test plan for the CompanionPowerupActivationDisplay
component has been designed to comprehensively assess the functionality and reliability of the user interface (UI) element responsible for displaying and activating powerups in the game. The testing process covered various aspects, including initialization, powerup activation, event handling, boundary cases, performance, exception handling, usability, and documentation.
- Gaurika Diwan @gaurikadiwan
Escape Earth Game
Interaction Controller and Interactable Components
Game and Entity Configuration Files
Loading Game Configuration Files