-
Notifications
You must be signed in to change notification settings - Fork 9
Test Plan for Initial Screen
This test plan covers unit testing for the InitialScreen
class in the game. The purpose of these tests is to ensure that the InitialScreen
class behaves as expected, particularly with regard to asset loading and screen rendering.
The tests will be conducted in a headless environment using a mock application instance.
- Verify that asset loading in
InitialScreen
works correctly. - Confirm that rendering and resizing methods in
InitialScreen
function as expected. - Ensure that specific assets are loaded as intended.
Objective: Verify that asset loading in InitialScreen
is functioning correctly.
Test Steps:
- Create an instance of the
InitialScreen
class. - Simulate rendering and resizing operations.
- Verify that specific assets are loaded as expected, e.g., "images/menu/InitialScreenBG.png."
Objective: Ensure that the verifyAssetLoaded
method correctly verifies the loading of assets.
Test Steps:
- Call the
verifyAssetLoaded
method with known loaded and unloaded assets. - Verify that the method correctly identifies loaded assets and prints appropriate messages.
![image](https://private-user-images.githubusercontent.com/104201585/272786068-858d6950-4b8d-4506-88e0-d253e3f60b97.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjIxMzEsIm5iZiI6MTczOTQyMTgzMSwicGF0aCI6Ii8xMDQyMDE1ODUvMjcyNzg2MDY4LTg1OGQ2OTUwLTRiOGQtNDUwNi04OGUwLWQyNTNlM2Y2MGI5Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNDQzNTFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03NDQ5ZDU5ZjYyOTljZGJjY2FjMGNjN2VmMzRmN2YwY2QxM2VkODU3NmU3MTZlZTlhZDQ1ZDgyODU2YTNjOGM2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.uHBjRpmD_VghncwP2frc4J33jDq8z4mH5WnGGC8NtsY)
-
Application
(Mock): Used to simulate application behavior. -
GdxGame
(Mock): Represents the game instance. -
ResourceService
(Mock): Simulates resource loading. -
ServiceLocator
(Mock): Facilitates service registration and retrieval.
Before running the test cases, the necessary mock objects will be created and configured to isolate the InitialScreen
class.
This test plan ensures that the InitialScreen
class, responsible for asset loading and screen rendering behaves as intended. This ensures that the screen is correctly set up for use in the game by simulating various scenarios and verifying asset loading.
Escape Earth Game
Interaction Controller and Interactable Components
Game and Entity Configuration Files
Loading Game Configuration Files